|
-
April 6th, 2004, 09:23 AM
#10
the link that you gave does not explain the thing clearly . i am not interested about headers . i need only the data for processing.
ok, AND operator was creating some problem in the earlier case.
so, i am doing other way...
Code:
#include<iostream>
using namespace std;
int main()
{
int x = 129;
char m = (char)x ;
cout<<m<<endl; // printing a raw weired character
/*****trying to retrieve *******/
int d = m;
cout<<d<<endl; // is there no way to get that number ?
// it is printing -127 !!
}
i have not usued AND operator....if i can do it, i can get a raw file.
this method, sould give me back the number as the character fits into four byte integer.
i think here i have to use some trick. can you help ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|