How to run this experiment?

I have a test instance (i.e. graph) and two algorithms.

I am using visual studio 2008 (C++).

I have each algorithm in each project folder (i.e. algorithm 1 in folder PJ1 and algorithm2 in folder PJ2.)

I would like to solve this graph problem using both of the algorithm. First by algorithm1 and then by algorithm2.

The issue here is that it takes so much time to solve this problem, I would like to setup the experiment such that after using algorithm1, automatically solve by algorithm2. However, algorithm1 and algorithm2 includes some functions with same name but different tasks. I cannot just put everything into one main() and run it. In MATLAB, it is really easy to do this. I can just make a function and do it. But I have no idea how to do it with Visual c++

How can I run the algorithm1 and then algorithm2 automatically?

Any help would be appreciated!
you could use multiple files:
alg1.h:
declare algorithm1()

alg1.cpp:
#include alg1.h
define algoritm1() and all the other functions it needs

do the same with alg2.h and alg2.cpp

main.cpp:
#include alg1.h
#include alg2.h

int main(){
algorithm1();
algorithm2();
return 0;
}

or you could simply rename all the functions...
or use function overloading if they doesn't take the same paremeters.
Topic archived. No new replies allowed.