add forward declaration examples

add classes
This commit is contained in:
2025-09-15 12:39:48 +02:00
parent 478a876e37
commit 33af26ed44
19 changed files with 643 additions and 1 deletions
+15
View File
@@ -1,11 +1,26 @@
#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;
}