Search:

Type: Posts; User: bengreenwood

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    2,177

    Visual C++ .NET Quake 3 Source Port

    Hi,

    I've been trying to make a mod for Quake 3, using Greg Dolley's C++ .NET port of the source code. However, I'm having some problems, which I don't get in my regular (fully patched) install of...
  2. Thanks for the reply. I'll try and do that. It...

    Thanks for the reply. I'll try and do that.

    It seems like this could have something to do with some libraries or dlls or something that have been changed since I originally loaded up the source...
  3. Weird Problems Compiling/ Running .NET Quake 3 Source Port

    Hi,

    I recently downloaded Greg Dolley's .NET port of the Quake 3 source code, and I've been working on making a mod with it. I added in some of my own code, and it was working fine, but then I...
  4. Inserting pair into multimap

    Hi,

    My problem relates to the following code, which is part of a function in a chat bot program. The function takes the argument read_wd, which is a std::string. Basically this is just a word...
  5. Yeah, I've been using that for a while and it...

    Yeah, I've been using that for a while and it seems to work. Still, is it better to do it the second way? Or doesn't it really matter? I have occasionally noticed the text screwing up in the game-...
  6. Well to be honest, I don't know. Right now I do...

    Well to be honest, I don't know. Right now I do it via something like the following, which is one of the "make c string" functions I mentioned.


    const char *get_th_choice_cstr() { return...
  7. I'm returning a c string because basically, I'm...

    I'm returning a c string because basically, I'm writing a mod for the game Half-Life. The only way you can print messages to the screen in Half-Life is via c_strings (Half-Life is written in C++ but...
  8. Returning const char*/ std::string.c_str()

    Hi,

    I have a function in a program that's something like the following. When I try to output what it returns, however, it doesn't print anything on the screen. The following isn't exactly what I'm...
  9. Replies
    2
    Views
    2,701

    Alternative to ifstream?

    Hi,

    I've been making a modification for a game called Half-Life. Basically it produces a dll that alters how the game runs. Anyway, my modification reads from some text files, and it does so by...
  10. Thanks for the responses, guys. I'm considering...

    Thanks for the responses, guys. I'm considering using an unsigned short int, just as a learning exercise more than anything.



    So if I do this, I'll use a macro to get the value from where it's...
  11. Storing a Series of Times e.g. 1, 1.5, 2, 2.5 seconds

    Hi,

    Say you have a program that stores a bunch of time values, which are in seconds. They can either be to the nearest full second, or can end in .5. So for example, the first few would be: 0,...
  12. Replies
    5
    Views
    7,294

    Thanks for the help, guys. Sean, by web-dev, do...

    Thanks for the help, guys. Sean, by web-dev, do you mean Java? Or are there other languages I should try messing around with? Actually I wouldn't mind making some games people could play online....
  13. Replies
    5
    Views
    7,294

    Entry Level Programming Jobs

    Hi,

    I've been programming C++ in my spare time for the last year or two. I finished a Psychology degree in May, and since then, I've been spending a good 6 or 7 hours a day, 6 days a week coding....
  14. lol. That was a pretty stupid error. Thanks. ...

    lol. That was a pretty stupid error. Thanks.

    Any ideas on how I could improve the program generally? Is using getline/ c strings ok for this? Or should I be doing more with std::string?

    Thanks...
  15. Reading Multiple Pieces of Data From Text File

    Hi,

    I've written this simple program to get some data from a text file. It reads in data to a string, an int array, another int array, and a double array. The reason there are 2 int arrays is...
  16. Storing Many Strings- Which STL Container?

    Hi,

    Say you're writing a game that needs to store a load of pre-written text comments, which can be at most a couple of sentences long. There are around 5 different types of comment, such as...
  17. Storing 5 Game Scores- Which STL Container?

    Hi,

    Say you're programming a game, and in this game, you have 5 players. Each player can have a score between 0 and 100, and is identified by a unique integer ID that's between 0 and 100. Their...
  18. Replies
    6
    Views
    1,062

    Thanks for the advice all. Makes sense.

    Thanks for the advice all. Makes sense.
  19. Replies
    6
    Views
    1,062

    Don't you mean where current_node points to head?...

    Don't you mean where current_node points to head? Was that a typo, or am I getting mixed up somewhere?

    Also with the malloc thing, I just based my code on the examples. I tried what you said, and...
  20. Replies
    5
    Views
    3,355

    OK, thanks. Maybe that seemed like a dumb...

    OK, thanks. Maybe that seemed like a dumb question, but upto recently, I've only been programming in C++. From what I've done with that, it seems like if you call a function and it hasn't been...
  21. Replies
    5
    Views
    3,355

    Getting a Warning When I use exit()

    Hi,

    In an example C program, I saw someone use the following statement:


    exit();

    If I use this in a program which I compile in Visual Studio Express 2008, I get the following warning:
    ...
  22. Replies
    6
    Views
    1,062

    Question About Linked Lists Example

    Hi,

    I've been working my way through some examples about how to program C, and I think I'm beginning to understand the basics of linked lists. In the following tutorial, they use some temporary...
  23. Replies
    2
    Views
    7,194

    Outputting Multiple Lines with cout

    I'm been working my way through my C++ book ("C++ Without Fear") for a second time. Something I've noticed is that in the example code, the guy often writes stuff like this:


    cout << "Enter...
  24. Actually that stuff I posted from game.h is part...

    Actually that stuff I posted from game.h is part of the original code. There's more to it than I posted though, so presumably there's some other stuff in there that makes it work ok. Thanks for the...
  25. Replies
    7
    Views
    1,533

    Say I write the following: char *ClsName =...

    Say I write the following:


    char *ClsName = "Win32OOP";

    And I also want to do this:


    LPCWSTR ClsName_W = L"Win32OOP";
Results 1 to 25 of 127
Page 1 of 6 1 2 3 4