int &f = d
次のコードのステートメントを理解するのに苦労しています。誰かがこれをクリアできれば幸いです
int main()
{
int d = 13 ;
int &f = d ;
std::cout << f;
}
編集:私は参考文献の概念に精通していますが、十分な背景を説明できませんでした。私がこのようなことをすれば、私はそれを知っています
int a = 12
std::cout << &a //this gives the address of a and not the content of the address which is 12
今私 int &f = d
の問題私の問題は、fがアドレスを必要とするように見えるのに対し、dはアドレスではなく値を与えていることです。