struntz
Jan 15th, 2001, 08:43 PM
Hello everyone!
I have a question about Functions and their prototypes! Alright well:
1) I want to keep the code clean and readable, so do I place the Prototype in its own sperate file, and can u tell me what i put in the Prototype besdies its Return Type, Its name, and its arguments? And where do i put the Real Fucntion at? like say i want to call the fucntion were do i declare the fucntion? do i put it under the Prototype in the seperate .cpp file or what?
2)How do i call the fucntion if its in the sperate file, and where do i name the "Header" so i can #include it in the main() or dont' i even do that? sorry for the confusion but im just a newbie :D
Thanks for listening, Simple Examples would be nice 8)
I have a question about Functions and their prototypes! Alright well:
1) I want to keep the code clean and readable, so do I place the Prototype in its own sperate file, and can u tell me what i put in the Prototype besdies its Return Type, Its name, and its arguments? And where do i put the Real Fucntion at? like say i want to call the fucntion were do i declare the fucntion? do i put it under the Prototype in the seperate .cpp file or what?
2)How do i call the fucntion if its in the sperate file, and where do i name the "Header" so i can #include it in the main() or dont' i even do that? sorry for the confusion but im just a newbie :D
Thanks for listening, Simple Examples would be nice 8)