mardi 28 mars 2017

Global functions in Multi-File projects?

So i am very new to programming and am having a bit of an issue. I have created a simple purchasing program as a university assignment. One of the tasks of the assignment is to use separate files for each of the three classes that i have created. The problem lies here, at least one of these classes methods use global functions that are also used by the main. When i try to migrate the classes and class methods to separate files, a duplication error is given. Is there any way i can get around this?

Aucun commentaire:

Enregistrer un commentaire