<>->
-> For pointers
-> Pointer to structure
-> Pointer to structure , Represents an element within a structure
#include<stdio.h> struct role // Define a structure { char name[8]; // full name int level; //
Grade int HP; // Blood volume int MP; // Blue quantity int gold; // Gold coin }; void main() { struct role *w;
// Define a structure pointer char str[]="kuangzhan"; w->name = str; // For member variables in a structure name Assign values
w->level = 46; // For member variables in a structure level Assign values w->HP = 3100; // For member variables in a structure HP Assign values w->MP =
3100; // For member variables in a structure MP Assign values w->gold = 475233; // For member variables in a structure gold Assign values }
<>::
Call variable
Scope :: variable
If a The scope of is global , call a Time use
::a
If a The scope of is class ww Time , call a Time use
class ww { public: int a(); } int ww::a()// express test It belongs to A Of { return 0; }
Technology