0%

Cpp_Firstclass

Cpp第一个Cpp程序

1
2
3
4
5
6
7
8
9
#include <iostrem>
using namespace std;

int main()
{
cout << "Hello, World I am" << 18 << "Today!" << endl;

return 0;
}

读输入

1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>
using namespace std;

int main(){
int number;

cout << "Enter a demical number: ";
cin >> number;
cout << "The number you entered is " << number << "." << endl;

return 0;
}