Mian2.cpp 287 B

12345678910111213141516
  1. #include <iostream>
  2. int main2()
  3. {
  4. //创建变量:数据类型 变量名称 = 变量初始值
  5. //不要用关键字给变量或者常量起名称
  6. int a = 10;
  7. //int int = 10; 错误,第二个int是关键字,不可以作为变量的名称
  8. system ("pause");
  9. return 0;
  10. }