add forward declaration
add classes
This commit is contained in:
@@ -4,6 +4,7 @@ using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
// console output
|
||||
std::cout << "Hello World" << std::endl;
|
||||
std::cout << 1234 << std::endl;
|
||||
std::cout << "Another test!\n";
|
||||
@@ -15,5 +16,16 @@ int main()
|
||||
|
||||
cout << L"Hello World" << endl; // wide character string literal, can not be handled by cout
|
||||
|
||||
// console input
|
||||
cin >> number;
|
||||
cout << "input: " << number << endl;
|
||||
|
||||
char c;
|
||||
cin >> c;
|
||||
cout << "input: " << c << endl;
|
||||
|
||||
cin >> c >> number;
|
||||
cout << c << ": " << number << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user