W-what are namespaces meant to do in C++? How do they work? What is up with headers and function declarations?? WHAT IS GOING ON WITH STATIC FUNCTIONS????
@Fenreliania Namespaces are just an organizational thing, you don't need to use them if you don't want, or you can put everything in the same namespace.
Header declarations are a legacy from C, and are needed for the compiler building one file to know the functions in another file.
"static" can mean one of three things, depending on context. In a class, it's just like C# or Java, common to all instances. In a function, it's a variable in static memory. Outside either, it's local to the file.
@impiaaa @Fenreliania static in a class, static in a function, and static on a _variable_ in a namespace (e.g. a "global" variable) all mean "allocate this variable in static memory when the program is executed"
static as a function modifier is...basically unrelated, i think C overloaded the keyword because they wanted to avoid adding more keywords to the language early on
@lifning @chr see, that's my point, I know of all of those, and none of them are anything like C