source file

is it possible to have two different source files under thesame project name?
thanks
Yes, obviously.
thank you. how do I go about it please? I tried, but I got the error that I have "int main declared in the other souce file"
You're not supposed to have two main() definitions.

ONE .cpp file will have the main() entry point, and the other may simply have definitions for header files. (see http://cplusplus.com/forum/articles/10627/ )
Topic archived. No new replies allowed.