This is a clip of my code
void start_hang(){
cout << "*********************\n";
cout << " \n";
cout << " \n";
cout << " \n";
cout << " \n";
cout << " \n";
cout << " \n";
cout << "*********************\n";
cout << "=====================\n";
}
But here is my output
*********************
*********************=====================
Here is my other attempt to make it work:
- Not using namespace
- Put
std::
in front of every output
void start_hang(){
std::cout << "*********************\n";
std::cout << " \n";
std::cout << " \n";
std::cout << " \n";
std::cout << " \n";
std::cout << " \n";
std::cout << " \n";
std::cout << "*********************\n";
std::cout << "=====================\n";
}
And still does not work.
Maybe I'm using class wrong?
Here is my full code:
Here is my compiler:
g++ (tdm64-1) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.