Monday, December 1, 2008

C++

Today, I want to talk about C++ this kind of computer language.
My CSIE teacher teach me how to use “FOR”
#include
Using namespace std;
int main()
{
int k;
int num;
cout<<"Input the integer:"; cin>>num;
for(k=1;k<=num;k十十) cout<<"Hi"<<return 0;
}
You can input a number. Then, they will show the "Hi" which you want
For example, if you input 3, they will show that
HiHiHi

No comments: