i tried the codes but it cant work? any suggestion what the error might be due to?
string str = "this is a string";
string tmp;
while(str >> tmp)
cout << tmp;
Type: Posts; User: falzone
i tried the codes but it cant work? any suggestion what the error might be due to?
string str = "this is a string";
string tmp;
while(str >> tmp)
cout << tmp;
Hi this is my code that got error when encounter blank lines.
while(!textFile.eof())
{
if(line == 0)
{ ...
Hi all!
I have the following codes i use to read from a textfile.
while(!textfile.eof())
{ //textfile is a ifstream
textfile >> string1 >> string2;
...
thanks both of u! the solution works wonders :)
Hi,
How can i calculate numbers and round off the decimal point to 2 decimal places?
for example i have 2 numbers 5 and 3
the result of 5 divide by 3 is 1.666666666
i want it to return...
Hi,
I have a string array. In this string array for example if i get teststring[0] out it returns me "this is a test string".
with this string its delimited by white spaces. But i am having...