Quantcast
Channel: Eureka! » C++
Browsing latest articles
Browse All 2 View Live

Image may be NSFW.
Clik here to view.

C++ – Print CString to cout

The following code shows you how to print CString to cout. #include "atlstr.h" #include <iostream> using namespace std; int main () { // Create a CString CString cStr =...

View Article


Image may be NSFW.
Clik here to view.

C++ – Convert CString into int

You can use _wtoi() or _ttoi() to convert a CString into int. #include "atlstr.h" #include <iostream> using namespace std; int main () { // Create a CString with number CString intStr =...

View Article

Browsing latest articles
Browse All 2 View Live