how can i read the last letter of a input file? 2011View more random threads:
- what is ADT?
- C++ Guessing Game include Number and ABC
- write a function to calcute the power of some number, will...
- Structure with streaming in c++ 2011
- # include main() { cout<< "How are u? welcome to my...
- how to use system("pause"); in Dec C++
- How to write Wav files in c++ 2011
- c++ code check this code 2011-12
- Static Variable in c++ 2011
- floor conversion error in c++ 2011
Sponsored Links
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;
}
}
There are currently 1 users browsing this thread. (0 members and 1 guests)