1. 程式人生 > >linux下string型別報錯

linux下string型別報錯

提示:string 不是一個型別名

#include <iostream>       
    #include <string>     
    using namespace std;  
    int       main()       
    {       
                    string       temp       =       "fdsafdas";       
                    cout       < <       temp       < <       endl;       
    }
    注意標頭檔案以及名稱空間。