Files
gpd-924/CPlusPlus/Intro/main.cpp
T
2025-09-15 12:39:48 +02:00

26 lines
497 B
C++

#include <iostream>
using namespace std;
int main()
{
// console output
std::cout << "Hello World" << std::endl;
std::cout << 1234 << std::endl;
std::cout << L"Noch ein Test!\n"; // wide string literal, cout can not handle this
std::cout << "Hello World" - 1234 << std::endl; // see pointer
int number = 10;
cout << "number: " << number << endl;
// console input
cin >> number;
cout << "input: " << number << endl;
char c;
cin >> c;
cout << "input: " << c << endl;
return 0;
}