Author Topic: C++ projects  (Read 4044 times)

zyberb

  • Guest
C++ projects
« on: March 27, 2011, 02:10:52 pm »
Helo,

I've had some java before where i used eclipse as a compiler.now im learning some c++ using codeblocks.

Just a quick question:

* in java i was used to make 1 projectfile then a could have as many source files i wanted in that project.Like when im going through examples in a book i just simply made new source code for that example.I didnt need to make a new project for every example in the book.

*But as i se it in c++ i have to make a new project everytime or put the new example codes in a class and then call the from the class?

Have i understood this correct?

Offline mirai

  • Multiple posting newcomer
  • *
  • Posts: 108
Re: C++ projects
« Reply #1 on: March 27, 2011, 04:34:17 pm »
You can have many source files in one project. Just give a try to File->New->... menu items.

And, by the way, it is the IDE you're using, i.e. Eclipse or Code::Blocks, has projects, not language, whatever it is, C++ or Java.
C++ itself as well as Java doesn't care about projects at all.