-
escape charecter
ok how do can i cout the escape acharecter?
eg "\" for the other part of his smilly face?
Code:
#include <iostream.h>
int main()
{
cout<<" *****"<<endl;
cout<<" * *"<<endl;
cout<<" * - - *"<<endl;
cout<<" * o o *"<<endl;
cout<<"* | *"<<endl;
cout<<" * + *"<<endl;
cout<<" * ___/ *"<<endl;
cout<<" * *"<<endl;
cout<<" *****"<<endl;
cout<<" \"happy\""<<endl;
return (0);
}
-
Like this "\\"
cout << Here comes a slash" << endl;
cout << "\\";
-
/me slaps himself should have tought of that!
thx dude :)