fyi:
you could use fprintf exclusively here instead of fwrite and printf additionally.. -for what you are doing here anyway:
//print to file
fprintf(file, "\nIP: %-7.16s",ip);
//print to...
Type: Posts; User: zcot
fyi:
you could use fprintf exclusively here instead of fwrite and printf additionally.. -for what you are doing here anyway:
//print to file
fprintf(file, "\nIP: %-7.16s",ip);
//print to...
here's something not exactly relevant, but maybe it's helpful. ;)
int r;
fprintf(stdout, "program finished. press [spacebar] to quit\n");
while((r = toupper(r = getch())) != ' ');...
no, you can not compile a header file alone, so don't think of it as a code file. If you were going to use only 1 file then it would be in somefile.cpp.. -a code file. But, if you need to use some...
thanks...
oh geez yea.. tbh I don't even know what I was thinking asking that.
I was a bit vague on purpose, as far as the exactness of the class, and that's because I'm focusing NOT on the specific class but the design of classes, in relation to the design that I've posted. ...
Yes, thanks for pointing out that oversight. Obviously my cutNpaste when whipping that up was a bit out of hand. ;)
So....
Is anybody looking at the function code in relation to memory...
ok yes, I understand that. And the first one is on the stack, but isn't part of it on the heap? ;)
Is there a good and bad about this design?
I'd like to look deeper into a good design of a class, mainly that would assumably be instantiated multiple times and used on the heap where bitmaps and...
Require? -No. It can be done just like the source above where boundaries, players, and enemies are any ASCII character. Maybe like this:
//graphics
char car = '+';
char traffic[] = {'H',...
haha! pretty interesting.
I'll suggest the typical top-down driving game for you.. your "car" or whatever is on the bottom and you have other scrolling objects come down the screen at you. You...
ok thanks..
yea I know very little about COM, but I guess I'll be learning about it more now.
And yes, I tried to get linkage to wmp.dll via the SDK-supplied intermediate files wmp.h and...
can anybody get this to work?
-downloaded the MSWMPSDK10 and wanted to try for a simple example. This sample intends to merely gain an interface to the already running Media Player and output the...
what exactly are you doing with this kind of thing:
if (buffer=="!"){ //IF Proceeding line is a list name
are you meaning to compare:
yes, if you just expanded the while block to include the graphics code then at least something would happen. However I would also suggest a study of windows main loops. The structure you have will...
ok, I've come up with this.. I think it's right(but first time I've attempted insanity like that).
void OriginalDecrypt(char* buf)
{
unsigned int nKey = buf[3] << 24;
nKey |= buf[2] <<...
..this is an index to the buf:
for (i = 0; i < 32; i++)
unsigned int keyBit = buf[i/8];
so that keyBit calculations are along this line:
buf[0/8]
#include <stdio.h>
int printcommandline(int argc, char* argv[])
{
for(int c = 0; c < argc; c++)
printf("%d->%s\n", c+1, argv[c]);
return 5150;
}
int main(int argc, char*...