【发布时间】:2021-10-28 09:47:48
【问题描述】:
当我点击运行时,在第一行之后,程序终止而不打印'age'的值。
# include<iostream>
using namespace std;
int main(){
int age = 4;
cout<<"dbcuhdihidh"<<age<<"ashsbcjsahcij"<<endl;
}
【问题讨论】:
-
我不习惯你的设置,但看起来你运行的是旧版本的程序。重新编译。
-
# 和 iostream 之间有一个空格