09-12-2011, 10:24 PM
how can i read the last letter of a input file? 2011
here is the code that i was written can any one help me in this code
while(input>>lastChar) //put file contents into lastChar
{
input.seekg(ios::end,lastChar); //go to the end of file
if(lastChar=='+' || lastChar=='*') //check if it is + or *
{
badInput=true;
goto skip;
}
else
{
cout<<"true file"<<endl;
goto startHere;
}
}
here is the code that i was written can any one help me in this code
while(input>>lastChar) //put file contents into lastChar
{
input.seekg(ios::end,lastChar); //go to the end of file
if(lastChar=='+' || lastChar=='*') //check if it is + or *
{
badInput=true;
goto skip;
}
else
{
cout<<"true file"<<endl;
goto startHere;
}
}
0300-9520262
Get solution in 24 hour |cpmputer & internet
mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
