I was wondering if
1. Does a void basically just place code in from a different section and you can call it whenever you want?
2. Is it possible or is it ethical to do something like:
1. void means it does not return a value. Nothing more, nothing less. You can call any function at any time, and you are never forced to assign the value it returns to a variable. void just means you can't assign it to a variable, because there is nothing returned...it's like x = /*nothing*/;
2. No, because C++ is case sensitive and you wrote Main instead of main on line 6.
3. They are typically frowned upon, mostly because they don't care about scope and can cause issues when used wrongly.
The only thing you need to know about a void function is it doesn't return a value. You can still use it to set values using references though, for example...