Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to know how to comine files

Status
Not open for further replies.

Jbird183

Technical User
Apr 1, 2003
1
US
I am taking an introduction to computer programming course and I have created 4 individual programs and I want to create one program that can house a link to them all and allow the user to type 1, 2, 3, or 4 and have the coresponding file load when they press that number. I was wondering if anyone could please help me and give me some kind of idea on how to do this? Any help would be greatly appreciated.

thank you,
J
 
Hi J,

I would setup your menu loop, I'm not sure how advanced this needs to be. Typing 1,2,3,4 sounds like 101 programming: The best I can do is give you a couple of hints to get you going.
Use:
cin - to get the input from the user,
while - loop with a exit clause
switch - to run the different options selected by the user.
_exec - to execute the different programs. processes.h

I've used "exec" with C but have not tried this with Visual C++.

Maybe this is helpful, given the nature of the message I wouldn't like to give you the code for this.

If anyone has a different way to execute progams within visual C++ I'd be interested to know.

Cheers
MJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top