'string'does not name a type 오류 해석

2560 단어 beforethe2015
'string'does not name a type 오늘 코드를 쓰다가 오류가 발생했습니다!처음 만난 것은 아니지만 잠시 지체했습니다. 더 이상 시간을 지체하지 않기 위해서 잘못을 적었습니다.
예제 이해:
#ifndef EMP_H 
#define EMP_H 
#include  
 
struct menuEntry  
{  
    string uID;    //error: 'string' does not name a type 
    string uName;  //error: 'string' does not name a type 
}; 
 
#endif//EMP_H
#ifndef EMP_H 
#define EMP_H 
#include  
 
struct menuEntry  
{  
    std::string uID;      /* ok */       
    std::string uName;    /* ok */
 }; 
 
#endif//EMP_H
using namespace std;

좋은 웹페이지 즐겨찾기