0、vc++6.0 工程---win32控制台程序 文件---c++
1、建立结构体
1 #include <iostream.h> 2 struct Point 3 { 4 5 int x; 6 int y; 7 }; 8 9 void main () 10 { 11 Point pt; 12 pt.x=5; 13 pt.y=5; 14 //cout << pt.x << endl << pt.y << endl; 15 16 }
0、vc++6.0 工程---win32控制台程序 文件---c++
1、建立结构体
1 #include <iostream.h> 2 struct Point 3 { 4 5 int x; 6 int y; 7 }; 8 9 void main () 10 { 11 Point pt; 12 pt.x=5; 13 pt.y=5; 14 //cout << pt.x << endl << pt.y << endl; 15 16 }
相关文章: