aha, thank you!!
Type: Posts; User: Bigbio2002
aha, thank you!!
ive modified my code slightly and inserted the errors before the lines they appear on. hope this helps.
I'm trying to use a pointer to access an array, since I need to be able to switch between two identically-sized arrays. However, I get compiler errors when I try to reference an array to my pointer....
i know thats not the exact output that he wanted. i said that hed have to format it to make it look nice, but thats the gist of what the program is supposed to do.
it looks like youve done a pretty good job getting the basics down. now, you need to get yourself into a cold, computerized mindset. :cool:
first of all, youve tried to initialize r even though...
i meant that as pseudocode, not actual examples of working code. in place of curr_time it should be GetTickCount(), since GetTickCount gets the current time, lol.
same thing with Sleep(). i used...
gathering time? im not sure what you mean
I'm trying to find an effective and accurate way for synching my framerate. If I use something like this:
while((curr_time - start_time) < 33)
; //wait and do nothing
then it will eat...
tyvm for your help! that problems been bugging me for a while now, but it finally compiled properly
im trying to create a member function pointer, but the problem is that i need to make that pointer a member of the class as well. heres a sample of what im trying to:
//gfxclass.h
class...
i hear that mcdonalds gives competitive pay. maybe you can program their mcflurry machines :P
[bump]
here is how you would go about creating a class. the h file would contain prototype information about the class, and you need to include it in any cpp files that use the class:
//factorial.h
...
[bump and update]
i made a new program to test and i compiled it with only a cout statement. it compiled successfully, but the program crashed when i tried to run it. as i said, its only compiling...
use memcpy(). it takes a destination pointer, a source pointer, and the number of bytes you want to copy. you need to include <memory.h> in order to use it. it returns the value of the destination...
what are you trying to access bitmaps for? if you want to copy them or move them around, try using directdraw to access the hardware blitter
[bump]
id really like some help on this, seeing as the standard c++ library is extremely important, and that i wont be able to compile anything until i fix this problem
nope, i've already determined that cin is causing the error. try to comment it out and see for yourself. this is a problem that had in a larger program which im hoping to get fixed
when using cin, i get a linker error when compiling with the release libraries, but it compiles fine with the debug libraries. all project settings are at default. here is the test code that i used:...
operating system: xp home sp1
compiler: msvc++ 6.0. i also have dev c++ and borland 5.5 but i rarely use them
i have a book with some code samples using int86() to do graphics functions. on the graphics tutorials on this site, i saw the author using inline assembler. how would i go about converting the...
great question dagdarian. i hate having to hold the fridge door open with my foot so i can pick a tv dinner and set the microwave (which is one of those cheap 700 watt ones)
thanks for your help Nyda and Prelude. another one of programmings great mysteries answered :)
my compiler is msvc++ 6.0. when using an if statement, which of these lines of code would run faster?
if(variable==0)
or
if(!variable)
also the same question with these 2 lines of code
i need to create a cgi script for my schools website. i compiled a test cgi script to run on my computer to see if it works, but it didnt load in IE.
i compiled it as i would any other program but...