子非鱼,焉知鱼之乐.
#include<iostream> using namespace std; int main() { cout<<"第一个程序\n"; int x; cin>>x; cout<<x; system("pause"); return 0; }
其中 cin为输入 >> 后为输入的数据存放的变量名
count为输出 <<后的内容将被输出 如果<<后为变量则将变量名输出。
posted on 2012-11-10 14:44 我最亲爱的说 阅读(131) 评论(0) 收藏 举报
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3