I think you should pull ptr++ (line 116) within the else instead of none, because now your not using your loop, it checks for the condition in the first time the loop runs and if it doesn't give anything it'll just say None...
See aft debugging I realise, that although the readFile function calls getName function, the program never goes there, I dunno why. Can someone pls test & make some changes for me?I would be really grateful, it has been days since I m trying 2 get this program to work.
hey, i downloaded dev c++ and i dont get any error on compiling the above code.. tell me if that code above if something like what you're doing then i'll try to put it in your code to fix it..
The first function readFile stores the entire file contents into a string called line which is a private variable in my class. This helps me to do string manipulation easily.
readFile function then calls the getName function which finds the start position of each of the index names specified & stores the name in another private variable called index_name in my class.
Once the first index name is stored, getName calls the MatchPattern function which does a comparison with every keyword to see if the index_name & keyword match. Next I call a function getValue to get the index value associated with each index name.
I need to output index name & their corresponding index value. Lastly I need a function which can find the date this Yahoo Finance HTML page info was captured.