Blahhh; hate to bump this but my workaround doesn't work t-t. I can't figure out a single way to initialize a list of members without actually making a linked list; I can't even figure a way to use...
Type: Posts; User: Blackroot
Blahhh; hate to bump this but my workaround doesn't work t-t. I can't figure out a single way to initialize a list of members without actually making a linked list; I can't even figure a way to use...
Sort of; you drag it so it fills an array of points on the covering the whole screen. So if you have a 10x10 grid; you'd fill points [0], [10], [20]... ect with the same point (So you really only...
Unfortunantly I don't have my old code with me but the logic is really simple.
I broke apart my window into a grid and wrote a bunch of random floating point numbers into a file - one for each...
You're repeatedly opening the file which dumps the content. Either open the file once or use
file.open(filename, ifstream::in);
Also; you never close the file.
You may also consider...
I always thought C++ compiled types before declarations; but I'm not really well versed in how it's compiled. If that's the case - do you have any recomendations on how to do this? I'd like to avoid...
Probably not the best description; I'm building a simple class structure for my tokenizer and I want all initialized members of the class to be put into an array.
Unfortunantly; my compiler is...
Hey there - I'm working on a small game of mine and I'm considering making an event-driven scripting system. However; I'm having alot of trouble parsing the code efficiently. Right now it's just a...
Hey there; I've been working on a really simple class for a void pointer linked list. I'm looking for a way to deal with having to convert to void* and then back to whatever type I'm using. For...
int Update (Planet *pEarth, SDL_Surface *Red, SDL_Surface *screen)
{
int distance;
int forceX;
int...
Without code any help would be shots in the dark.
Signed values are numbers without the ability to contain negative values. Unsigned values have this ability. Are you saying that the program is returning only positive values when it shoulden't be?
-Thanks for pointing that out, I always forget length returns the full size including terminator.
~And I'm not sure I fully got your second question. What should happen in case a is:
foo(x,...
I return "" at the end because if the delimeters are not found it should not return any data to me (It would confused my parser otherwise)
What was happening was not that it wasn't returning, but...
You aren't dealing with a technical infinity (.99999999999->) VS 1.(000000->). Although a large technicaly 9 != 10 therfore .9 != 1. You can just say a number is *.(infity zeros)1* larger then it is...
Well it was bound to happen eventualy, after writing and rewriting my program I have something solid. But I have a minor problem ~ My parser is not returning correctly. I have made it so it will...
#define 1 0
Haha... HAHAHAHAHA! Take that LOGIC! /dance.
What seems to be happening is you are passing i (which is not a pointer) to your function which is now interpreting it as a reference. What is passed back is actualy the _address_ of i, which is then...
(I think) He wants to get text from an application which is not related to his. I dont know of any basic API function for this, you'd probably need some sort of hook to intercept the text flowing to...
OMG I'M STUPID >.<.
Had my function returning only if the function returned 1. >.<
Passing a plain pointer to the function allows the function to alter the pointer's value.
Passing &pointer to a function tells the function it's not alloud to change the value of the pointer, only...
Bah! I knew that pesky thing was somewhere. Thanks, I didin't even realize I needed a break; after it.
~I indent with 1 space as a sort of bad habbit, the first time I ever got into coding I was...
I seem to be having a simple problem with an application I made. It's just a window with a text box and a couple of straightforward text application things. ~The problem is, any action I preform...
File->Save as-> Filename.h
Headers are the same as .cpp files except they do not include a 'main' statement.
This is a valid header file:
int Thing(int a) {
return a - 1
I'm decently sure there's no built-in operation for this, but is there a way to read & write to an excel spreadsheet? It probably uses some type of custom language for images and such, but there is a...
Very comprehensive responses, thanks! That was everything I needed to know :).