Search:

Type: Posts; User: Drakon

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    805

    Getting class info through a pointer

    I have a pointer that points to a class. How do I get class members through the pointer?

    example:


    class TestClass
    {
    public:
    int Num;
    };
  2. Replies
    14
    Views
    1,448

    Yay! Thanks.

    Yay! Thanks.
  3. Replies
    14
    Views
    1,448

    Ah... thanks. Any easy way to overcome that?

    Ah... thanks. Any easy way to overcome that?
  4. Replies
    14
    Views
    1,448

    Actually I've just tried something... nothing at...

    Actually I've just tried something... nothing at all is wrong with the function Input. Somethings wrong in the main loop.

    This does not work if I type in "try this" when the program runs.

    ...
  5. Replies
    14
    Views
    1,448

    that works, but why won't mine? It does the same...

    that works, but why won't mine? It does the same thing. I don't want just the string before the space, I want both before and after(I haven't finished that part yet, its only supposed to get whats...
  6. Replies
    14
    Views
    1,448

    Sure... maybe... but thats not the problem. The...

    Sure... maybe... but thats not the problem. The problem is that it doesn't seperate them properly at the space. If I tell it to output SPACE! like so:



    for(x = 0;x < strlen(Input);x++)
    {...
  7. Replies
    14
    Views
    1,448

    Yes... it does do that. But thats not quite what...

    Yes... it does do that. But thats not quite what its supposed to do. I put in "hey you", it gives me

    hey
    you

    if I use a space. It does seem to seperate them, but I have no idea why.

    If I...
  8. Replies
    14
    Views
    1,448

    Can't find spaces

    This code is supposed to find a space in a character array and put the seperated string at the space into seperate strings, but doesn't quite work right... It will find any other letter except a...
  9. Replies
    1
    Views
    1,061

    problem with using functions

    First, I'll post all the relevant code..

    --------------------------------------------------------------------------

    #include "classes.h"
    vector<BluePrint> bprint;
    vector<Object> object;
    ...
  10. Thread: time

    by Drakon
    Replies
    5
    Views
    1,099

    1. sleep is undeclared identifier. 2. does it...

    1. sleep is undeclared identifier.
    2. does it put the entire program on hold?
  11. Thread: time

    by Drakon
    Replies
    5
    Views
    1,099

    time

    Using the simple iostream.h stuff like cout << "blah"; , I want to make a message appear every 350 milliseconds. How would I do that?
  12. Replies
    3
    Views
    1,575

    I was looking for something more similar to a...

    I was looking for something more similar to a picturebox in Visual basic.
  13. Replies
    3
    Views
    1,575

    bitmaps and mouse location

    I have a simple window that opens, stays open, and closes when you click the X... nothing more.

    How would I put a picture into it, and how would I get the location of the mouse pointer in it?
  14. Replies
    12
    Views
    1,202

    string is unidentified blah blah blah...

    string is unidentified blah blah blah...
  15. Replies
    12
    Views
    1,202

    It doesnt work... as in it recognizes strcmp, but...

    It doesnt work... as in it recognizes strcmp, but it doesn't work...


    if(strcmp(command, "quit"))
    {
    running = false;
    }

    That right?
  16. Replies
    12
    Views
    1,202

    I fail to see how a while loop would succeed...

    I fail to see how a while loop would succeed where an if statement fails...

    The problem is not the statement...



    cin >> word;
    if(word == 1)
    {
    Code to end loop(not shown here) goes...
  17. Replies
    12
    Views
    1,202

    Ok got that working... but how do I use it in an...

    Ok got that working... but how do I use it in an if statement? Right now I have something like this:


    cin >> word;
    if(word == "quit")
    {
    Code to end loop(not shown here) goes here.
    }
  18. Replies
    12
    Views
    1,202

    I'm new at strings, or "char"s.

    With my console program, I use iostream.h, and therefore cin >> number. However, how would I be able to use words/characters instead of numbers with that, or would I need something aside from...
  19. Thread: header files

    by Drakon
    Replies
    3
    Views
    905

    Got that working, but now I get this: ...

    Got that working, but now I get this:

    C:\TextGame\Game\engine.cpp(14) : warning C4551: function call missing argument list
    Linking...
    rooms.obj : error LNK2001: unresolved external symbol "int *...
  20. Thread: header files

    by Drakon
    Replies
    3
    Views
    905

    header files

    I keep getting an error while compiling saying it can't find my defs.h file. In my main .cpp, I declare it like

    #include "defs.h"

    and this is my defs.h:

    #ifndef _DEFS_H
    #define _DEFS_H
    ...
  21. Replies
    9
    Views
    5,211

    Ok... What IS Winsock? From looking at the stuff...

    Ok... What IS Winsock? From looking at the stuff at MSDN it's a "Windows Socket"... that helped me not.
  22. Replies
    9
    Views
    5,211

    Is there any way to do it without using winsock?

    Is there any way to do it without using winsock?
  23. Replies
    9
    Views
    5,211

    Network Programming

    Ok, I don't even know if thats what its called... but I want to learn how to program things to work over the internet and local networks... Obviously, I'm very new to that (Although I know C++...
  24. Thread: SizeOf

    by Drakon
    Replies
    7
    Views
    1,029

    What determines their sizes?

    What determines their sizes?
  25. Thread: SizeOf

    by Drakon
    Replies
    7
    Views
    1,029

    SizeOf

    Whats SizeOf?
Results 1 to 25 of 35
Page 1 of 2 1 2