src/sample/reference.cpp (
7
lines of code) (
raw
):
// Copyright 2018 Futa HIRAKOBA // C++言語流に、関数内で実変数の値が変わるコードを書け # include <iostream> // 関数funcを作成する。 int main(){ int x = 0; func; std::cout << x << std::endl; // xの値が1になっている return 0; }