Files
2025-09-15 18:17:50 +02:00

31 lines
579 B
C++

#include <iostream>
using namespace std;
int main()
{
// console output
std::cout << "Hello World" << std::endl;
std::cout << 1234 << std::endl;
std::cout << "Another test!\n";
cout << "Is also working std::" << endl;
int number = 10;
cout << "number: " << number << endl;
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;
}