Search:
Forum
General C++ Programming
source file
source file
Sep 3, 2010 at 9:27pm UTC
kek
(2)
is it possible to have two different source files under thesame project name?
thanks
Sep 3, 2010 at 9:36pm UTC
jsmith
(5804)
Yes, obviously.
Sep 4, 2010 at 7:00pm UTC
kek
(2)
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"
Sep 4, 2010 at 7:27pm UTC
LB
(13399)
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.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs