我正在学习C和我仍然不知道如果我的理解之间的差异&和*呢.
请允许我试着解释一下:
int a; // Declares a variable
int *b; // Declares a pointer
int &c; // Not possible
a = 10;
b = &a; // b gets the address of a
*b = 20; // a now has the value 20
Run Code Online (Sandbox Code Playgroud)
我得到了这些,但后来变得令人困惑.
void funct(int a) // A declaration of a function, a is declared
void funct(int *a) // a is declared as a pointer
void funct(int &a) // a now receives only pointers (address)
funct(a) …Run Code Online (Sandbox Code Playgroud) 我正在尝试创建一个基本的libgdx应用程序,并且没有显示广告.我正在关注这些指南:https: //developers.google.com/android/guides/setup
https://developers.google.com/admob/android/eclipse
https://github.com/libgdx/libgdx/wiki/Admob-in-libgdx
代码非常基本,只是从libgdx指南中复制的代码.代码有效,但广告未显示.