Search:

Type: Posts; User: St0rmTroop3er

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    2,960

    Ok I updated it, after thinking it over last...

    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...
  2. Replies
    16
    Views
    2,960

    Ok I added strcmp. I don't know how to...

    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?
  3. Replies
    16
    Views
    2,960

    Ah, ok I fixed it... but it still crashes. I...

    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...
  4. Replies
    16
    Views
    2,960

    Well, what that is doing, is if there is nothing...

    Well, what that is doing, is if there is nothing set on cvarList, then set thoe values, instead of moving to the next object.
  5. Replies
    16
    Views
    2,960

    Ok, it compiles fine, but now the program crashes...

    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)
    {
  6. Replies
    16
    Views
    2,960

    Well, you were right. I forgot a ; in my struct...

    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.
  7. Replies
    16
    Views
    2,960

    class rCVarEngine { public: void...

    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:...
  8. Replies
    16
    Views
    2,960

    Thanks! I still get the multiple types in one...

    Thanks! I still get the multiple types in one declaration error, in the class declaration.
  9. Replies
    16
    Views
    2,960

    Custom CVar system

    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);...
  10. Replies
    4
    Views
    1,081

    Negetive Numbers

    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);
  11. Replies
    2
    Views
    953

    Silly me, thanks!

    Silly me, thanks!
  12. Replies
    2
    Views
    953

    Strings...

    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
    {
  13. Replies
    6
    Views
    1,388

    Object Creation at Run Time

    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...
  14. Replies
    4
    Views
    4,397

    Generally, hooking a OpenGL program, is basicaly...

    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.
  15. Replies
    6
    Views
    2,359

    oooah ok. what would I put there for linux app?

    oooah ok. what would I put there for linux app?
  16. Replies
    6
    Views
    2,359

    Why would I want to make an exe?

    Why would I want to make an exe?
  17. Replies
    6
    Views
    2,359

    c++ in linux....

    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()
  18. Replies
    4
    Views
    1,143

    Word Jumbling

    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];

    }
  19. Replies
    2
    Views
    2,052

    ok, I figured it out. Thanks

    ok, I figured it out. Thanks
  20. Replies
    2
    Views
    2,052

    VC++ error

    I get this error when compiling something in VC++6



    Any idea what it means?
  21. Replies
    2
    Views
    1,256

    Yeah....And someone explained it to me. foo |=...

    Yeah....And someone explained it to me. foo |= bar is the same as foo = foo or bar same with & operator.
  22. Replies
    2
    Views
    1,256

    Bit Manipulators???

    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...
  23. Replies
    1
    Views
    6,387

    Full Screen Console

    Ok I have this code...



    #include <windows.h>
    #include <stdio.h>
    #include <conio.h>


    // prototypes
  24. Thread: 2<<16

    by St0rmTroop3er
    Replies
    4
    Views
    1,181

    2

    I don't under stand what the << does as in 2<<16. If you could explain it I'd be vary thankful :)
  25. Replies
    6
    Views
    1,905

    Yeah, I've decided to take up c/c++ again to try...

    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...
Results 1 to 25 of 77
Page 1 of 4 1 2 3 4