Function LOC counter as a C++ file?
<p>I have a project I'm trying to finish, in which I have to make a C++ function that takes a file from user input, reads it, and returns a table of function names and their respective LOC counts.</p>

<p>Unfortunately, I've gotten as far as creating a function prototype utilizing the code for a whole-file LOC counter function as a base. According to advice I've received, I need to implement a counter that, when reading a function, will increment with each { and decrement with each }, until it hits 0. At that point, it will record the LOC count to the table and reset the counter for the next function.</p>

<p>The problem I'm having is that I don't know how to make it so that it will read a function name using this method. I have to wonder if it has something to do with utilizing the ifstream object I created for reading the file. Can anyone help?</p>
