Added: C++ projects

This commit is contained in:
2026-09-29 22:09:02 +02:00
parent 11929bad68
commit 0af79b3686
32 changed files with 1397 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#include "functions.h"
void functionB() {} // declared & defined
void functionC(); // declared
void functionD(); // declared
int main()
{
// functionA(); // compiler error, because functionA is declared & defined after it is called
functionB(); // no error
// functionC(); // linker error, because functionC is declared but not defined
functionD(); // no error
functionE(); // no error
return 0;
}
void functionA() {} // declared & defined
void functionD() {} // defined
// void functionE() {} // linker error, because functionE is defined multiple times