What you would like to do is convert the short int into a stream of bytes and then you are good to go.
These conversions are easy when you use stringstreams
good luck
Type: Posts; User: aditya1
What you would like to do is convert the short int into a stream of bytes and then you are good to go.
These conversions are easy when you use stringstreams
good luck
i dont think cin.get will give you the same effect as cin.getline gives.
because cin.get will not capture the \n entered in the first input to the name.
have you tried?
but how can I "insert" the record in the right place.
Is there a command for this.
OR it will involve erasing the whole database and putting the sorted one at that place.
Is there a way through...
I have to make a file (or a database I should say)in which I can read,write,append ---I can do these things easily.
The problem is that how I can rewrite at a particular location.
Also how I...
int num;
//push
for(i=o;i<tos;i++)
{
cout<<"enter the no.";
cin>>num;
s1.push(num);
s2.push(num);
}
//pop
linux(red hat 9)
surely,one can find the '.' but inserting '.' is not that easy.one should then know all
.com,.tk,.info etc sites .
thanks man! but can u tell me where will I get such library?
couldn't find the other way out for getting characters entered
from the user as one can do with getch() under turbo c++ compiler.