c++ - Organizing files TO folders (Module programming) -
i creating visual c++ project now, , make way arrange files. tried create folders seems pretty hard make them visual studio, because these folders empty , after including solution going work on them (like java packages. first add them , code in it, in same ide, same project).
it seems way not working because can not add include files. tried create filters. not physical divide of files if way c++ community code have no problem. otherwise probvlem because university project.
so in case best "filters", how can call 1 filter another? @ below example
filterfolder1
- people.h
- people.cpp
filterfolder2
- vehicles.h
- vehicles.cpp
now, have problem in arranging stuff in way well. bceuase right click on filterfolder1 , select add -> c++ class still class created in it's default location, header file in header files filter , cpp file in source files filter. had manually drag , drop files make above architecture.
now, how can call people class (people.h , people.cpp) vehicle class (vehicles.h , vehicles.cpp) because in 2 folders forced them see above?
what did correct or wrong? if correct, thhe answer above? if wrong, correct way of organizing files , using it?
folders , filters not matter in case. call vehicle class people class , go on. if want organize code logically, instead of physically, use namespaces.
Comments
Post a Comment