Does anyone know how to set up our code be contained in multiple files? Do we need to redeclair stuff? Do we need to define stuff as global?

Views: 5

Reply to This

Replies to This Discussion

You can define macros in your separate file (basically subroutines) and there's a line u type in in your main file like include.... Smth smth, you can look it up in the textbook and it should be there. Then you can call your subroutines in your main file

umm what if i want to define things other than macros?

there's also a line that just includes a file so its the same as if the two files were one, again I don't have the book :S so you'll have to look it up

RSS

© 2024   Created by PML.   Powered by

Badges  |  Report an Issue  |  Terms of Service