Search:

Type: Posts; User: relyt_123

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,428

    Perhaps it's not there in the code, and part of...

    Perhaps it's not there in the code, and part of the reason he's getting errors. I'm simply making a logical assumption, as all of the brackets are definitely not there.
  2. Replies
    8
    Views
    1,428

    Along with the missing bracket, you also fail to...

    Along with the missing bracket, you also fail to include the correct library for system, as well as don't have the latter part of the do-while loop.

    Edit: On the other hand, for what you have so...
  3. Replies
    15
    Views
    10,514

    One thing I see very quickly which would screw it...

    One thing I see very quickly which would screw it up royally is this:



    ...
    for(int i=0; i<=points.size()-2; i+=2)
    {
    tx = points[i].x;
    ty = points[i].y;
  4. Replies
    8
    Views
    1,428

    You also don't have a closing bracket on your...

    You also don't have a closing bracket on your main() function. You should put system("pause") and return 0 outside of the switch/case. Otherwise, the only way the program will end properly is if the...
  5. Replies
    5
    Views
    1,963

    Aha. That's exactly what I was looking for. I...

    Aha. That's exactly what I was looking for. I figured there was something similar to that to deal with it. Thanks for the help.

    In the code:

    vector<data_one> entries(3);
    Does the (3) simply...
  6. Replies
    5
    Views
    1,963

    A database sort of management system

    I'm just sort of playing around making a sort of database system, though I haven't gotten too far with it.

    I'm using a struct to hold each user's information: Name, ID, and what not.

    To keep...
  7. Replies
    8
    Views
    1,480

    Ah, yes. That would affect it. However, it still...

    Ah, yes. That would affect it. However, it still throws the same error, and it won't compile.


    Line 37 (cout << roomRef[0].descOut();

    error: no match for 'operator<<' in 'std::cout'


    Are...
  8. Replies
    8
    Views
    1,480

    Ah, I see. I didn't realize you could initialize...

    Ah, I see. I didn't realize you could initialize an object and push it into a vector at the same time. I decided to use classes; however, how would I refer to individual variables in that class that...
  9. Replies
    8
    Views
    1,480

    Variable scopes; Vectors of struct's

    #include <iostream>
    #include <vector>

    using namespace std;

    struct room {
    int roomID;
    };

    void valueSet();
  10. Replies
    9
    Views
    1,663

    Ah, OK. That clears it up. Now, I have this: ...

    Ah, OK. That clears it up. Now, I have this:


    list::list() {
    root = endpos = NULL; // Sets root to NULL, and endpos to NULL
    }

    void list::node_add(int value) {
    endpos = new node; //...
  11. Replies
    9
    Views
    1,663

    Okay, so I should set root to point to a new...

    Okay, so I should set root to point to a new node, and then just set the root->next value? What about root->value? Isn't it still unitialized? 'root' isn't supposed to contain a 'value', correct?
  12. Replies
    9
    Views
    1,663

    root = endpos = NULL;So, when you're doing that,...

    root = endpos = NULL;So, when you're doing that, I'm not sure what exactly it's doing. Is root still a pointer to a node? What happens when you set the pointer to NULL. It simply points to nothing?
  13. Replies
    9
    Views
    1,663

    Ah, thank you for the help. I completely...

    Ah, thank you for the help.

    I completely re-wrote it and came up with:


    #include <iostream>

    using namespace std;

    struct node {
  14. Replies
    9
    Views
    1,663

    Linked lists; My first attempt

    Alright, well I tried my first attempt at creating a linked list. It didn't work out so well.


    #include <iostream>

    using namespace std;

    struct node {
    int key_value;
    node *next;
  15. Thread: Dialog Boxes

    by relyt_123
    Replies
    14
    Views
    2,330

    I realize that. It's just that I had no way to...

    I realize that. It's just that I had no way to debug it if I didn't know the arguments in the first place, eh? :p
  16. Thread: Dialog Boxes

    by relyt_123
    Replies
    14
    Views
    2,330

    No one ever told me what those arguments were......

    No one ever told me what those arguments were... I would have looked them up if I had known that was the issue.

    Thanks for the help.
  17. Thread: Dialog Boxes

    by relyt_123
    Replies
    14
    Views
    2,330

    Like that, it compiles, but the dialog box is...

    Like that, it compiles, but the dialog box is still strange in size. It is merely a small box ~10px wide and the heigh of the title bar of the window.
  18. Thread: Dialog Boxes

    by relyt_123
    Replies
    14
    Views
    2,330

    I am into 'main.cpp'. Edit: Should I include...

    I am into 'main.cpp'.

    Edit: Should I include "resources.rc" into main.cpp?
  19. Thread: Dialog Boxes

    by relyt_123
    Replies
    14
    Views
    2,330

    I have three files: -main.cpp: #include...

    I have three files:

    -main.cpp:


    #include <windows.h>
    ...
    ...

    -resource.h:
  20. Thread: Dialog Boxes

    by relyt_123
    Replies
    14
    Views
    2,330

    This doesn't work. I put it in the .rc file and...

    This doesn't work. I put it in the .rc file and it wouldn't compile. Said the error was 'Syntax Error'.

    When I transferred the code into the .cpp it had two errors:

    error: expected...
  21. Thread: Dialog Boxes

    by relyt_123
    Replies
    14
    Views
    2,330

    Dialog Boxes

    I'm fairly new to Win Programming.

    For the DialogBox function (http://msdn2.microsoft.com/en-us/library/ms645452.aspx) what is the 2nd parameter, exactly? I see that it says you can use...
  22. Thread: Classes

    by relyt_123
    Replies
    26
    Views
    2,504

    Yup. That's the same page I downloaded it from....

    Yup. That's the same page I downloaded it from. It said the same thing, that there was a 30 day trial, for both VC++ and VB. Though, Code::Blocks seems to be to my likings anyway so I think I'll...
  23. Thread: Classes

    by relyt_123
    Replies
    26
    Views
    2,504

    I tried VC++ 2005 Express but it said it was a 30...

    I tried VC++ 2005 Express but it said it was a 30 day trial. I'll try out Code::Blocks.
  24. Thread: Classes

    by relyt_123
    Replies
    26
    Views
    2,504

    Yup. Figured that out already. :D Dev-C++...

    Yup. Figured that out already. :D



    Dev-C++ Compiler; Version 4
  25. Thread: Classes

    by relyt_123
    Replies
    26
    Views
    2,504

    Ahh. The thought of using Vectors never even came...

    Ahh. The thought of using Vectors never even came to mind. Thanks. ^^

    However, I've come to yet another problem.

    Something like this gives me an error:


    for(int i=0; i<=goblin.size();...
Results 1 to 25 of 75
Page 1 of 3 1 2 3