Getting the “no type named cout in namespace std” even though I included iostream.
#include <iostream>
std::cout << "test" << std::endl;
bool running = true;
void test() {
while (running == true) {
std::cout << "game runningn";
}
}
here is my code.
I searched up the error and all I got were posts saying to include iostream in order to fix. In case this helps, this is on a second file, the first one is running fine.
New contributor
cheese is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.