>> Delete No. 50828 article
No. 프르그래밍중 질문

등록 2002-06-13 18:40:00 By localhost     조회 1
이름 leewin12    

		char filename[20]={0,};
ifstream pro_file(filename);
 if( pro_file.fail() ) <=에러
	cout<<"Error... Can't open the file"<<filename<<endl;
이렇게 작성을 했는데
g++로 컴파일을 하니
userprocess.cpp:47: `pro_file' undeclared (first use this function)
userprocess.cpp:47: (Each undeclared identifier is reported only once
for each function it appears in.)
userprocess.cpp:48: `filename' undeclared (first use this function)
이런 에러가 나네요.
선언이 되지 않았다고 하는데 분명히 선언은 되어 있고...
도대체 왜이런지 모르겠습니다.
답변 부탁드립니다.
아 그리고 g++용 통합에디터  좋은것 추천 부탁드립니다.
디버거 라도...
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved