retrieving programs

How can you retrieve a program, that has been previously saved, so you can call it up in main, for example you are running a simple math program that allows you to decide what kind of test you would like to take, addition, subtraction etc..., and you have already saved an addition math program and you just want to call it up to save space and so you don't need to retype all of the information, and if you can turn it into a function how.
StrataAsked:
Who is Participating?
 
Billy_PilgrimConnect With a Mentor Commented:
you can use system() to call another executable program or you can simply turn each of those programs into functions and call them from your main program. . .
0
 
WxWCommented:
You have to configure the program to save data in a file . If the data is not saved , you are not accessing it . If the data is saved in a way in a file , the program can use that information .
0
 
StrataAuthor Commented:
Edited text of question.
0
 
StrataAuthor Commented:
Adjusted points to 80
0
 
StrataAuthor Commented:
we tried system() but it didn't work and yes I know that should but thanks anyway
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.