Search:

Type: Posts; User: Spitball

Search: Search took 0.01 seconds.

  1. strange problem - string manipulation [fixed]

    Alright, here's the problem. I have a simple function that takes an input string, a starting delimeter and an ending delimeter, and returns the string in between.



    std::string...
  2. Replies
    16
    Views
    2,163

    What about this? int x = 0; /* a comment.....

    What about this?


    int x = 0; /* a comment.. lalalala
    some more stuff...
    */ x = 5;


    There are lots of different things to consider.
  3. Alright, thanks. I'll look into that

    Alright, thanks. I'll look into that
  4. Simple client - receiving data from server and keyboard w/o blocking

    Hi everyone. I'm building a simple chat server/client using c++ and Winsock and I've run into a problem with my client. I'm combining two examples from Beej's Networking Guide to try and use select()...
  5. Thread: Several Q's

    by Spitball
    Replies
    9
    Views
    2,279

    I think novacain means to do something like this:...

    I think novacain means to do something like this:



    int iParts[5];

    iParts[0] = (int)(iTotalWidth * 0.2);
    iParts[1] = (int)(iTotalWidth * 0.2);
    iParts[2] = (int)(iTotalWidth * 0.2);...
  6. Replies
    40
    Views
    8,751

    Yeah. Firefox is pretty good, but when I set my...

    Yeah. Firefox is pretty good, but when I set my computer on fire it crashed!
  7. Thread: C++ & PHP

    by Spitball
    Replies
    11
    Views
    1,507

    You could try using Winsock to open a connection...

    You could try using Winsock to open a connection to the HTTP Server then POST your info to it.
  8. Replies
    8
    Views
    1,216

    :eek: How dare they!

    :eek: How dare they!
  9. Thread: Eager

    by Spitball
    Replies
    4
    Views
    1,059

    You could always try learning a gaphics library...

    You could always try learning a gaphics library such as Allegro or SDl. I'm having fun playing around with little pixel-ants that run around randomly :D
  10. Replies
    5
    Views
    2,325

    Oh... so it's that simple? Thanks :D I'll give it...

    Oh... so it's that simple? Thanks :D I'll give it a try.
  11. Replies
    5
    Views
    2,325

    Loading file into structure

    Hi, I'm trying to load a file into a structure. Well actually, a structure and a 3d array of structures. Very confusing for somebody like me. Here's what everything looks like.



    struct...
  12. Thread: Teh Simz

    by Spitball
    Replies
    16
    Views
    2,846

    I think it would be much easier to manage if it...

    I think it would be much easier to manage if it was encapsulated into a class... and instead of checking their health, food; and all that in every function can't you just have it in a loop?
  13. Replies
    0
    Views
    960

    Basic File I/O.... Can somebody help?

    I'm trying to get this simple File I/O code to work but it just outputs junk. Can anybody tell me what the problem is?



    #include <iostream>
    #include <stdlib.h>
    #include <fstream>

    using...
  14. Replies
    35
    Views
    3,888

    Since when is using system(); a security issue?...

    Since when is using system(); a security issue? Yes, people could write their own 'pause' command and put a virus in it, but would they really want to considering its running on their own computer?
  15. Replies
    2
    Views
    3,590

    Okay thanks for the help. I'm not sure I...

    Okay thanks for the help. I'm not sure I completely understand what you're suggesting, but I'll give it a go anyway. Thanks!
  16. Replies
    2
    Views
    3,590

    Map file formats and linked lists

    Hi, I'm currently working on a 2d rpg-ish type game (might be implementing stats/etc. later on) and I've been thinking about how I'm going to go about storing my maps.

    Obviously I've been...
  17. Replies
    16
    Views
    3,555

    I'm still a newbie but I'm pretty sure that...

    I'm still a newbie but I'm pretty sure that you're trying to compile this code as a console application, when it should be a win32 application. Make sure when you create a new project that you select...
  18. Replies
    2
    Views
    1,026

    don't use inverted commas (or whatever they're...

    don't use inverted commas (or whatever they're called lol) when you do this: keys['1']

    Just do this: keys[1]
  19. Thread: Graphics help

    by Spitball
    Replies
    16
    Views
    2,106

    Yeah, I got stuck near that part too, maybe try...

    Yeah, I got stuck near that part too, maybe try downloading the binary for Mingw? You should probably ask someone else first though, cause I don't really know very much lol.
  20. Replies
    10
    Views
    1,819

    to answer your question about floats (and other...

    to answer your question about floats (and other variables at the same time too i guess), you can name a float type variable anything you want (almost) but it's value has to be a number with a decimal...
  21. Thread: Linker error

    by Spitball
    Replies
    5
    Views
    1,135

    Silly me, lol. Must of accidently clicked Windows...

    Silly me, lol. Must of accidently clicked Windows application. Thanks!
  22. Thread: Linker error

    by Spitball
    Replies
    5
    Views
    1,135

    Linker error

    Hi, it's been a while since I've done any C++. When i try to compile this code, I get a linker error. There are probably quite
    a few bugs in the code. But this shouldn't cause a linker error, should...
Results 1 to 22 of 22