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 }
View Code

相关文章:

  • 2022-12-23
  • 2021-07-04
  • 2021-05-07
  • 2021-10-09
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2022-02-06
猜你喜欢
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
相关资源
相似解决方案