Hello,
I am trying to create a program that will ultimately output a snake coiled around a stick . Here is part of my code:
The problem occurs when I am trying to create the line where the snake will rest, I end up with a mess like this:Code:#include <iostream> #include <iomanip> using namespace std; int main() { cout << "\n\n\n"; cout << "\t\t\t\t__ __ __ __ \n"; cout << "\t\t\t / " << "\\"<<" / " << "\\" << " / "<<"\\"<<" / "<<"\\"; cout <<"\n"; cout << "\t\t\t / "<< " \\"<<"/ " << " \\" << "/ "<<" \\"<<"/ "<<" \\"; cout <<"__________________"; cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; return 0; }
Is there a way to have the line output the line so it can stretch across the whole length of the snake? Thanks in advance.