Advertisement

Including Header Files in VC++

Started by May 03, 2000 01:33 PM
1 comment, last by zippo 24 years, 10 months ago
This is going to sound incredibly stupid, and I feel foolish for asking, but I''ve just recently installed VC6 onto a computer in my office. I''ve gotten into C++, and am just becoming truly aquainted with the VC environment. I have it at home, but it was originally setup by someone else. Anyways, I''ve installed it here and all looks right, but when I go to include the stdio.h header file, then use something simple, like cout, it tells me it''s an undeclared identifier. I checked the settings and the directory that stdio.h is kept in is included as one of the directories to include for storing header files and reading them. I''m really not sure why it isn''t working. If anyone can point me in the right direction, I''m sure I''ll be fine. Thanks! zippo
I should further specify that I am including it like this:

#include

then in the main function, use it, for example, like this:

cout << "Hello World";
Advertisement
Fixed it myself. Realized that stdio.h is a C header file, and not C++, let alone containing cout.

This topic is closed to new replies.

Advertisement