Hey! I have some problems with arrays and pointers... The code below should explain what I'm trying to do but it seems I'm missing something? Please help!!! Ie, how do I pass a pointer to an array as...
Type: Posts; User: gaah
Hey! I have some problems with arrays and pointers... The code below should explain what I'm trying to do but it seems I'm missing something? Please help!!! Ie, how do I pass a pointer to an array as...
Why? fgetc returns a char what I know of? And I just discovered that my code works if I add another integer (a dummy integer) below that int companies... I don't understand this...
FILE *f = fopen(filename, "r");
while(fgetc(f)<=0x20);
while(fgetc(f)!=0x0A);
int rows = 0;
int collumns = 0;
int companies = 0;
char current = 0x00;
char old = 0x00;
string currentcomp = "";...
ahh! Of course, thank you! :-)
I'm doing this project with fltk as gui. I use mingw and msys as compiler, meaning regular makefiles. But I get this weird error that I just can't figure out...
This is how my Makefile looks like:...
Hey! I need help! How can I read information from an excel file into my c/c++ code? I'm using mingw as compiler through msys. Any recomended websites or information would be great!
I try to figure out how to split up one int16_t into two int8_t... But I can't figure it out.
Well actually, I have a string containing some stuff. Then I have a representation of two chars in an...
But I have it in a string. Can I have unsigned chars in a string?
Yes, that worked... But my main concern is that the string s will be in the right format, meaning only 0x83. And how come it printed it out correctly before I did the xor?
string s = "pqr";
printf("%X %X %X \n",s[0],s[1],s[2]);
s[0] = (char)(PWD[0] ^ 0xF3);
printf("%X %X %X \n",s[0],s[1],s[2]);
Like that!
I need to do something similar to this:
string s = "pqr";
s[0] = (char)(s[0] ^ 0xF3);
s[0] has value 0x70 from the begining and I want the result to be 0x83 after running the code. But I get...
what do you mean bit fields?
From what I've read a char isn't always one byte, and even if it were, one byte wouldn't always be eight bits... Don't know how accurate that is, but better to be safe than sorry!
How do you mean...
I'm writing an im-client that should connect to the icq server, meaning I need to fiddle around with the oscar/flap/snac/tlv protocols/stuff. Let's say a certain tlv needs to be four byte, no more ,...
http://www.ecst.csuchico.edu/~beej/guide/net/html/
Read all of that really throughly and you will understand most of your questions, and allot of more! If you don't get it at once, read it again...