Thread: c++ noob stuff
View Single Post
c++ noob stuff
Old
  (#1)
commonbullet
Member
 
commonbullet's Avatar
 
Status: Offline
Posts: 49
Join Date: Nov 2004
Default c++ noob stuff - 04-11-2006

hi,
check this example:
PHP Code:
#include <map>
#include <string>
#include <stdio.h>

using namespace std;

int main() {
    
map <stringstringtest;
    
test["anykey"] = "anyvalue";
    
printf("anykey -> %s"test["anykey"].c_str());
    return 
0;

It complies ok in msvc++ 6.0 and it also seems to work. But I get so much warnings (about 107), I'm afraid police is coming to arrest me or something.
Any ideas?

thanks.

Last edited by commonbullet; 04-11-2006 at 20:28..
  
Reply With Quote