How to covert a String to an integer?

Answer Posted / vulani

Here's the shortest way to do it Gents:

string mystr ("1204");
int myint;
stringstream(mystr) >> myint;

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet

1631


how can we preform retesting(DATA driven test) using function please gine the code for loginpage

2371


What are the features of quick test pro(qtp)?

622


how do i know how to use tools

1550


Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations

1859






Can any one send me the QTP Basic Coding Samples?

1712


What is test object model in quicktest professional (qtp)?

639


Explain the difference between data driven testing and parameterization ?

671


How did you use regular expressions in QTP and also in WR?

2276


What is qtpro? What is a quick test professional?

679


How many ways we can parameterize data in quicktest professional?

652


What is smart identification in QTP?

718


Shall we add Local Repository to shared object repository,if yes,how we add

6131


Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?

1564


I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?

1870