Search:
Type: Posts; User: JohnyDog
Search:
Search took 0.01 seconds.
-
You're missing semicolon after
bool IS_MULTI_EQUIP)
-
April 15th, 2007, 05:37 AM
Also, you're writing all the chars to same location.(imageByte[0]) Change this:
fin.read(imageByte+index,1);
-
April 9th, 2007, 08:39 PM
So is every function that transfers data from hardware buffer (GPU onboard RAM) to system RAM. But that is exactly what he needs to do, slow or not :)
Depends on what he is trying to do. If my...
-
April 9th, 2007, 07:26 AM
The easiest way is to simply draw as usual, then use glReadPixels to get the screen image. Or, if you want only part of the screen, you can use one of glCopyTex* functions to copy part of the...
-
March 22nd, 2007, 06:13 PM
C doesn't have operator overloading (or more likely any overloading at all) nor virtual methods.
-
March 22nd, 2007, 02:31 PM
Note that when using recursion, you can imagine it as the functions being stacked on top of each other as they execute - meaning when you finally end the recursion by using return -
// 10th...
-
March 16th, 2007, 08:06 AM
On linux, current directory isn't usually in the PATH, so you have to run it as './command'. Also check if the file has execute permissions.
-
March 12th, 2007, 04:55 PM
How should the compiler know what will be the result of '?' operator ? It result depends on runtime - the code has to be compilable for both cases of the condition. What are you trying to achieve ?
-
March 12th, 2007, 10:04 AM
Post all the errors you're getting (or better, the whole compile log) and also version of the compiler you're using on the machine where you're getting the errors.
-
March 10th, 2007, 08:36 PM
The error is exactly what the compiler is telling you - you're missing semicolon after that enum declaraion in gameenvironment.h.
-
March 9th, 2007, 04:54 PM
It is also matter of the data itself - quicksort is very slow for unfavorable data sets (worst case scenario O(n^2) ). std::sort tends to use introsort (is this guaranteed or just in my...
-
March 8th, 2007, 07:35 AM
Yep, if nothing else, the leading underscore should be warning sign :) You can use getchar() though.
-
March 6th, 2007, 04:56 PM
ash343> Both codes compile under gcc 4.1.2. At the first. compiler will print warning, as it can evaluate the expression directly and detect the zero division.
-
March 3rd, 2007, 04:31 PM
Sure, lets wait :) Anyway,from the code he got from the documentation shows printing the time as hexadecimal (%X), yet it gives correct (decimal time) results. And he says my formula's working :D I...
-
March 3rd, 2007, 04:17 PM
VladimirF> i have no idea what the 3rd party struct the OP's using is intended for, but from the code sample he posted it is clear that it is decimal number encoded in hexa in a way so it looks like...
-
March 3rd, 2007, 06:32 AM
As Calculator already told you, it doesn't really matter :) For my projects i'm using 'int *a' as i've found that most prevalent in the tons of existing code i was dealing with in my career.
-
March 3rd, 2007, 05:20 AM
http://docs.freebsd.org/info/g++FAQ/g++FAQ.info.jump_crosses_initialization.html
-
March 3rd, 2007, 05:11 AM
If you are working on project with multiple people, follow their coding style. If you are writing program by yourself, use the style that suits you best. The purpose of indentation is to make the...
-
March 2nd, 2007, 01:23 PM
If i understand the coding correctly, the proper way to convert is
x = ((num / 16) * 10) + (num % 16)
-
March 2nd, 2007, 10:50 AM
This interests me. I always thought VC is using the backwards-compatible LLP64 model (eg. both int and longs 32bit) ?
-
February 22nd, 2007, 07:39 AM
Yes thats right. As a side note, if you want to recompile the kernel you should use sources provided by your distribution, as they usually differ from the ones in official kernel at kernel.org (added...
-
February 20th, 2007, 09:41 PM
The algorithm you came up with is correct, i can't see any simpler way. Of course as the assignment says the input stream is possibly infite, you'll have to implement some sort of buffer instead of...
-
February 20th, 2007, 09:15 PM
You have to disable texturing when you draw non-textured colored polygons. Then, enable it again for textured polygons.
-
February 20th, 2007, 01:29 PM
more like he zeroes the array - a[0]..a[5]
Again, here the OP populates cguess array with 5 random numbers.
The e should really be initialized before use, but i don't see reason why it...
-
February 20th, 2007, 07:52 AM
If your distribution puts the config under /boot, i'd say its preffered method. After all, the config file should be identical to the one in /proc/config.gz.
|
Click Here to Expand Forum to Full Width
|