I previously practiced the Java language and I started learning C++ as of last night. I've briefly tried to look it up and had no luck. Are there "methods" in C++ like there is in java? if so, what are they called and are they used/called just like in java? (link would be helpful, if possible)
In java, for example, I could write
public static void main(String[] args){
gameboard();
}
public static void gameboard(){
//gameboard code
}
I experimented in C++ and couldn't get the compiler to compile error free.
using:
int main()
{
gameBoard();
}
int gameboard(){
//gameboard code
}