Search:

Type: Posts; User: gpr1me

Search: Search took 0.01 seconds.

  1. Thread: Vector Help

    by gpr1me
    Replies
    2
    Views
    794

    thanks, it tried to do that like this: ...

    thanks, it tried to do that like this:



    cout << *test[i] << endl;


    But yeah, i understand now :)
  2. Thread: Vector Help

    by gpr1me
    Replies
    2
    Views
    794

    Vector Help

    Say i have code like below:



    vector<int> test;
    test.push_back(1);
    test.push_back(2);

    for(size_t i = 0; i < test.size(); ++i)
    cout << test[i] << endl;
  3. Replies
    2
    Views
    952

    Trying to get constant speed

    I am having some trouble figuring this out. Basically i have set up a bunch of predetermined positions on the map which i visit in some predinfined order. The camera follows the path specified. It...
  4. Replies
    1
    Views
    1,207

    Looking at a Specified Point

    In my little game i want to be able to look at a specific point in my 3d scene. If my camera is at (0, 0, 0) and i want to be able to look at (10, 0, 20) how would i do this.

    I understand that i...
  5. Replies
    0
    Views
    3,990

    Linking Error (libc.lib)

    I am using visual studio's 2005 and i am having a problem trying to run some code. The error says that

    fatal error LNK1104: cannot open file 'libc.lib'

    I have searched google and found alot of...
  6. Replies
    5
    Views
    2,295

    Clicking an Object in OpenGL.

    In my program i want to be able to make an object (like a plane made with a GL_QUAD) clickable.

    So if i have a plane displayed on the screen i want to be able to click on a point on the screen and...
  7. Thread: Dynamic Binding

    by gpr1me
    Replies
    1
    Views
    3,749

    Dynamic Binding

    I'm having some trouble figuring this out.

    I have a class heirarchy

    Project
    --> SimpleProject
    --> MinorProject
    --> MajorProject

    Now a simple project and a minor project can be merged...
  8. Replies
    3
    Views
    1,658

    Thanks alot. I understand what i was doing wrong...

    Thanks alot. I understand what i was doing wrong now.

    And yes, i was being lazy with my naming conventions. It's an awful habbit...
  9. Replies
    3
    Views
    1,658

    Initializing a pointer in a class.

    Im having a little trouble with a program i am writing. I have a class heirarchy:

    Project
    --> SimpleProject
    --> MinorProject
    ect...

    and another class:
    Task
  10. Replies
    8
    Views
    2,055

    awesome, thanks alot, that solved the problem. I...

    awesome, thanks alot, that solved the problem. I will read up on forward declarations now.
  11. Replies
    8
    Views
    2,055

    You mean? #include "Task.h" #include...

    You mean?


    #include "Task.h"
    #include "Project.h"

    And where do i put this?
  12. Replies
    8
    Views
    2,055

    Class Include Problem (I Think)

    Im having a very weird problem. Im defining some classes:

    Project (base Class)
    --> SimpleProject
    --> MinorProject
    --> MajorProject

    Task

    Now my project class definition is:
  13. Thread: Weird Error

    by gpr1me
    Replies
    1
    Views
    826

    nevermind, i solved the problem. It had nothing...

    nevermind, i solved the problem. It had nothing to sure with what i thought it was.
  14. Thread: Weird Error

    by gpr1me
    Replies
    1
    Views
    826

    Weird Error - [SOLVED]

    Im making a project for school and im stuck at this one part. Im trying to use a vector of objects that i defined. But i want the vector of objects to be declared inside a class declaration and then...
Results 1 to 14 of 14