3
콘솔 응용 프로그램에서 GUI 응용 프로그램으로 변경하려고하는 내 프로그램에 다음과 같은 #include
이 있습니다. 저는 이것을 직접 작성해야합니다. 문제는 내 프로그램이 문자열 헤더를 가져올 수 없다는 것입니다. 왜 그런가요?<string> 헤더를 포함 할 수 없습니다.
#ifndef CATALOG_H_
#define CATALOG_H_
#include <string>
#include "StudentRepository.h"
#include "Student.h"
using namespace std;
class Catalog{
private:
StudentRepository *studRepo;
public:
Catalog(StudentRepository *stre):studRepo(stre){};
~Catalog();
void addNewStudent(string name, int id, int group);
void removeStudent(string name);
void editStudent(string,int,int);
Student seachStudent(string name);
void printStudents();
.
.
.
};
#endif /* CATALOG_H_ */
ERROR :
Description Resource Path Location Type
Type 'string' could not be resolved Catalog.h /L_6-8_GUI line 25 Semantic Error
PS : 나는 QT의 부가 기능과 함께 Eclipse를 사용합니다.
무엇이 문제입니까? 프로그램에 포함시키는 것이지만 라이브러리 기능을 가져 오지 못합니까? – ScarCode
질문에 Qt : removed 태그로 할 일은 아무것도 없습니다. –
그럼 그렇지 않으면 곧 Qt 프로젝트로 옮겼습니다. 수입품을 만듭니다 ... –