64 584
Assignments Done
99,2%
Successfully Done
In September 2018

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!//
Expert's answer
#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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions