Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
C++ const char conversion
Name: djas Date: February 12, 2006 at 06:19:49 Pacific OS: Windows XP Pro SP2 CPU/Ram: PM 1.73 GHZ 1GB RAM Product: Gateway MX6635b
Comment:
hey guys, can anyone tell me why my code won't work? i think it is because i need to convert my string to const char. i get this error.
[error]
cannot convert `std::string' to `const char*' in initialization
[/error]
my code is below
[code] #include <windows.h> #include <iostream> #include <string> using namespace std;
Summary: I am a programmer with some knowlege of c/c++ and I am trying to learn windows programming using visual c++. I have used the following code that I have found in a tutorial book that is supposed to sho...
Summary: I am new to C++, I made the following program, and for every line in the larger blocks of "if ( * == * ) ** = "*", i get the following error " WordlistGenerate.cpp:746: error: invalid conversion from ...