[C] two or more data types in declaration of ~

IT/Programming/Programming 2010. 12. 6. 11:51

two or more data types in declaration of ~

구조체 선언 문에서 위와 같은 에러가 났을 때..
프로그래머가 가장 실수를 많이 하는 케이스가 바로 구조체 선언 부분에서 세미콜론을 빼먹는 경우이다.

struct employeeRecord
{
   char surname[20];
   double hourlyRate;
   int empNumber;
}; 

문제점을 해결하고 나서도 스스로 좀 쪽팔리더라.. -_-;; 라는 뒷 말을 남기며..

설정

트랙백

댓글