i hope you can help me

regarding computing the running time of a program in C++ environment
the specification is like this: i will make a program that can read another
file which is a program too in C++.

I would like to compute the main() alone of the file.
do you have an algorithm on how to solve this problem?

and how to control the reading of the file line by line?is it possible?

thnks. im willing to wait for your response

god speed

I would like to compute the main() alone of the file.

It's hard to understand what you mean, due to your difficulties with English. Could you try rewording this sentence? That might make your desire more clear.

If you are reading in the source code for a C++ program use the iostream library. If you're trying to read in a .exe file idk...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.