Learnem Educational
May 18, 2012, 01:03:25 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
Learnem Educational
>
Free Ebooks Discussion
>
Programming in C in 7 Days (Free Ebook)
>
Can I get move code to other files?
Pages: [
1
]
« previous
next »
Print
Author
Topic: Can I get move code to other files? (Read 1683 times)
Anonymous
Guest
Can I get move code to other files?
«
on:
September 01, 2002, 05:20:14 PM »
Is it possible in C/C++ to put some of your code in another .cpp file and run it from the main file? I have a whole lot of functions in my program, and I want to clean it up, so I want to move some of the code to another file and just be able to pull it up when I need it. Can I do that? Or is there another way?
«
Last Edit: January 01, 1970, 12:00:00 AM by Anonymous
»
Logged
Anonymous
Guest
(No subject)
«
Reply #1 on:
September 14, 2002, 06:36:34 AM »
Yes it is possible.
Declare the functions in a headerfile and define them in a separate file (.c or .cpp) and include that file in the headerfile and then include the header in your main file.
It is the way to do it hope I used the right grammar.=)
«
Last Edit: January 01, 1970, 12:00:00 AM by Anonymous
»
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Free Ebooks Discussion
-----------------------------
=> Web Design in 7 days (Free ebook)
=> Programming in C in 7 Days (Free Ebook)
=> ASP Web Programming in 7 days
Loading...