简体   繁体   中英

I have included string.h but when i try to use it as in the following i get errors

I have included string.h but when i try to use it as in the following i get errors

#include<string.h>
std::string something;

here std will be flagged and it says ** error C2039: 'string' : is not a member of 'std'**

But in other parts of my program it works, only in some places i do get this error

std :: string的正确头文件是string ,而不是string.h

C中不存在std::string dos。可能你想使用C ++。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM