Turning one file with lots of classes to many files with one class per file

Posted by Ole Jak on Stack Overflow See other posts from Stack Overflow or by Ole Jak
Published on 2010-03-13T08:50:30Z Indexed on 2010/03/13 11:35 UTC
Read the original article Hit count: 245

Filed under:
|

How do I turn one file with lots of classes to many files with one class per file? (C\C++)

So I have that file with such structure: Some includes and then lots of classes that sometimes call each other:

#include <wchar.h>
#include <stdlib.h>
//...
class PG_1 {
  //...
}
class PG_2 {
  //...
}
//......
class PG_N {
  //...
}

© Stack Overflow or respective owner

Related posts about c++

Related posts about refactoring