Ok I updated it, after thinking it over last night. Found a few extra stuff that wasn't needed.
//setNew: Sets a new cvar if an existing one of the same
// name doesn't exist.
void...
Type: Posts; User: St0rmTroop3er
Ok I updated it, after thinking it over last night. Found a few extra stuff that wasn't needed.
//setNew: Sets a new cvar if an existing one of the same
// name doesn't exist.
void...
Ok I added strcmp.
I don't know how to allocate memory for that. :P Would it be better if I did
if(strcmp(head->name,""))
To check if it is empty?
Ah, ok I fixed it... but it still crashes. I revamped it so I don't have two functions, one to set a new one and one to set an exisiting one. Hopefully I didn't mess it up.
Linked Lists are big...
Well, what that is doing, is if there is nothing set on cvarList, then set thoe values, instead of moving to the next object.
Ok, it compiles fine, but now the program crashes when I run this function:
void rCVarEngine::setNewCVar(const char *name, const char *value)
{
cvarList->next = 0;
if(cvarList == 0)
{
Well, you were right. I forgot a ; in my struct above my class :P
*sighs
Now I get these errors that I have no idea what they mean.
class rCVarEngine
{
public:
void setCVar(const char *name, const char *value);
void setNewCVar(const char *name, const char *value);
const char* returnCVar(const char *name);
private:...
Thanks! I still get the multiple types in one declaration error, in the class declaration.
I am trying to write my own cvar system, similar to that found in quake games.
This is my prototype...
class rCVarEngine
{
public:
void setCVar(const char *name, const char *value);...
I wrote this program, and when it generates 50 or so numbers, it starts making them negative. Any ideas why?
#include <iostream>
using namespace std;
int fibonacci(int n);
Silly me, thanks!
Well, I'm having trouble figuring out why vc++8 doesn't like strings. Heres my code...
EDIT:
#include <string>
using namespace std;
class AminaRPGEngine
{
Ok, I am writing a simple arcade style game to strengthen my programming skills. The game has a character that is created at the start of each level. Lets say its level 2, the game will create 4...
Generally, hooking a OpenGL program, is basicaly how hackers get all the cool stuff on the screen for hacks. I'm not accusing anyone tho.
oooah ok. what would I put there for linux app?
Why would I want to make an exe?
Well, I am getting into Linux, and decided to try to write a hello world app, for mthe tutorials on the site.
So, here is my code..
#include <iostream>
using namespace std;
int main()
Ok, I have this code that takes a word from the user and jumbles it up like this...
for(unsigned int m = 0; m != length - 2;m++){
srand(m);
text[rand()%length-1] = text[rand()%length];
}
ok, I figured it out. Thanks
I get this error when compiling something in VC++6
Any idea what it means?
Yeah....And someone explained it to me. foo |= bar is the same as foo = foo or bar same with & operator.
Ok, I have been looking into programing for the Nintendo DS. I have figured all that out, but looking through the soruce code of a library I saw these... &= |= ... Could someone please explain what...
Ok I have this code...
#include <windows.h>
#include <stdio.h>
#include <conio.h>
// prototypes
I don't under stand what the << does as in 2<<16. If you could explain it I'd be vary thankful :)
Yeah, I've decided to take up c/c++ again to try and make games. vb6 just wasn't cuttin it :D
The engine that nex uses is Darkpalces mod, jsut FYI.
Can anyone give me documentation how how to...