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.