|
-
April 22nd, 1999, 01:37 PM
#1
Displaying CString in Console
Hi,
How can I display a CString value in a console?
Thanx
-
April 23rd, 1999, 05:13 AM
#2
Re: Displaying CString in Console
Use the standard output stream cout:
#include <afx.h>
#include "iostream.h"
int main()
{
CString foo("Hello world!");
cout << foo << endl;
cin.get();
return 0;
}
Dave
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|