Answer to Question #14452 in C++ for Damion

Question #14452
I need to display /\/\Computer science rules/\/\ in cmd..
I am using code blocks.
this is what i have so far

#include <iostream>
using namespace std;

int main()
{
cout << "'/\/\Computer science rules!/\/\'" << endl;
}

But all that shows up is //computer science rules!//
1
Expert's answer
2012-09-07T11:01:22-0400
#include <iostream>
using namespace std;

int main()
{
cout << "'/"<< char(92) << "/"<< char(92) << "\Computer science rules!/"<< char(92) << "/"<< char(92) << "'" << endl;
& return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS