thanks, it tried to do that like this:
cout << *test[i] << endl;
But yeah, i understand now :)
Type: Posts; User: gpr1me
thanks, it tried to do that like this:
cout << *test[i] << endl;
But yeah, i understand now :)
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;
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...
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...
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...
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...
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...
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...
Im having a little trouble with a program i am writing. I have a class heirarchy:
Project
--> SimpleProject
--> MinorProject
ect...
and another class:
Task
awesome, thanks alot, that solved the problem. I will read up on forward declarations now.
You mean?
#include "Task.h"
#include "Project.h"
And where do i put this?
Im having a very weird problem. Im defining some classes:
Project (base Class)
--> SimpleProject
--> MinorProject
--> MajorProject
Task
Now my project class definition is:
nevermind, i solved the problem. It had nothing to sure with what i thought it was.
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...