Answer to Question #14452 in C++ for Damion
2012-09-07T08:44:38-04:00
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
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 !
Learn more about our help with Assignments:
C++
Comments
Leave a comment