Print to screen command not working in c++

**Question: Why command of “cout” is not working? **

Repl link: https://replit.com/@YigitMutlu/PrettyFirmVoxels#main.cpp

code snippet

You need a main function to start the program. C++ doesn’t run top down like javascript/python.

int main() {
     cout << "...";
}

the variable declarations can stay there but its better to have it all in the main function when they aren’t needed by other functions too.

2 Likes