So, you know with a bat, this is the project that I was assigned to. I am not looking for an answer in the code, but directed more.
I was told that I had to go through the file and count the actual lines of code, while writing down the names of the functions and individual lines of code for the functions. The problem I am facing is determining how to read from a file, in order to determine if a string is the beginning of a function.
So far, I can only think about the presence of a string array of data types (int, double, char, etc.), look for it in the string and then look for the brackets, and then look for the absence of a semicolon (so that I know that this not just a function declaration).
So my question is, how should I do this, or are there other methods that you would recommend?
The code I will be counting on will be in C ++.
source share