Author Topic: Just switched to code::blocks, kinda confused  (Read 3100 times)

AlphaZero

  • Guest
Just switched to code::blocks, kinda confused
« on: May 27, 2011, 10:03:08 pm »
I just installed code::blocks on my ubuntu machine to give it a try (heard it works well with wxWidgets). Once I made my first project, I was confused by the fact that there were two .cpp files, as well as a header file in the source folder. In the previous IDE I used, there was only one file that you were supposed to put code in. I don't like having everything on different pages (files), so is there a way I can have it so everything is put in one file?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Just switched to code::blocks, kinda confused
« Reply #1 on: May 27, 2011, 11:01:23 pm »
Of course you can, even if it does not make sense.
You have to do it on your own, we do not provide templates for it.
Look at the wxWidgets examples.

If your project(s) grow, it will be much easier to handle, if you use several files (and probably subfolders) for the different classes.