![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2005
Posts: 17
Rep Power: 0
![]() |
Using a program in another program
Hi,
Really easy question. Lets say I have, for example these two programs: quicksort.cpp and numbers.cpp quicksort.cpp is obviously a quicksort program. numbers.cpp will take an input of say, X numbers, and then sort them. I do not want to use the STL quicksort, and I do not want to retype what I typed in quicksort.cpp. So how would I use the code in quicksort.cpp so I don't have to 1.) use STL. 2.) Copy and paste my code in quicksort.cpp into numbers.cpp to utilize what I have already done. Thank you. PS: I apolygize for any mistakes I have made in the above posting. |
|
|
|
|
|
#2 | |
|
Professional Programmer
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4
![]() |
Quote:
I personally find programming things like quicksort strictly OO a little tricky. I usually have to think about it for a few minutes to get my brain to bend it into shape. (or is it my brain that get's bent?) Post your code, so we can have a gander, but make sure to use the code tags to retain indentation and spacing ( [C O D E][/ C O D E] -but without spaces!)
__________________
-Steven "Is this a piece of your brain?" - Basil Fawlty |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|