المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : need some suggestion on a method to use



C++ Programming
02-03-2010, 10:53 PM
Hi all,

I got a txt file filled with HTML code extract from www.finance.yahoo.com

this is the data from finance.yahoo.com

Dow 10,212.73 +27.20 +0.27%
Nasdaq 2,174.00 +2.80 +0.13%
10 Yr Bond(%) 3.6500% -0.0400
Oil 75.25 +0.82 +1.10%
Gold 1,113.60 +10.10 +0.91

the 3 values i wanna extract from each stock is all the values above. all the values need to be read from the HTML text file of finance.yahoo.com.

so, how should i create the method and what parameter should i pass in?

should i create individual method for each stock? example

double getDOW(param1, param2, param3, etc)

or a generic method that can search any stock quote