September 10th, 2013, 01:41 PM
Re: how can i convert write() procedure to cout?
What is the exact error?
Originally Posted by Cambalinho
Second, the cout is overloaded to take a null-terminated char*. Why not write a simple program to show this?
using namespace std;
char *p = "Hello World";
cout << p;
So what are you trying to achieve? The streams are overloaded already for char*, and if <string> is included, for std::string and std::wstring.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.