/*
文件放在桌面上,在终端中运行:
ping@ubuntu:~$ cd /home/ping/桌面/
ping@ubuntu:~/桌面$ g++ 123.cpp
ping@ubuntu:~/桌面$ ./a.out
3 4
7
5 6
11
0 0
*/
#include<iostream>
using namespace std;
int main(){
int a,b;
while(cin>>a>>b,a&&b){
cout<<a+b<<endl;
}
}
ubuntu环境下C++编程小例
最新推荐文章于 2024-06-28 15:53:24 发布