我写的第二个hello word!!没什么特别,做个记录而已。
//my second hello word
#include <iostream>
int main() {
using namespace std;
int number;
cout < < "hello word !\n\n";
cout << "Enter a number :";
cin >> number;
cout < < endl;
int i;
int e;
for (i=0;i<number;i++) {
e=i+1;
cout << e << " hello word!\n";
if(i==99)
i=number;
if(i>100)
cout < < "\nMost number is 100 !\n";
}
cout << "\nThat's all !\n\n";
return 0;
}
#include <iostream>
int main() {
using namespace std;
int number;
cout < < "hello word !\n\n";
cout << "Enter a number :";
cin >> number;
cout < < endl;
int i;
int e;
for (i=0;i<number;i++) {
e=i+1;
cout << e << " hello word!\n";
if(i==99)
i=number;
if(i>100)
cout < < "\nMost number is 100 !\n";
}
cout << "\nThat's all !\n\n";
return 0;
}
写起c++了啊,不错,做些acm的题目倒是挺有趣的
就是在windows下没编译成功过
楼主写得不错呀,支持~~~~~ 希望楼主去我网站做做。。。。无限顶