solved. 'twas the darn namespaces.
Type: Posts; User: izuael
solved. 'twas the darn namespaces.
hm, well.
//poly manager
#pragma once
#include <vector>
#include "polymanager.h"
using namespace std;
PolyMan::PolyMan()
{
mm.. yes :)
what exactly should i post?
sorry.. i'm pretty noob in c++.
here's everything in main, before functions begin:
/*
* This Code Was Created By Jeff Molofee 2000
* A HUGE...
well
here's the main part
#include <windows.h> // Header File For Windows
#include <gl\gl.h> // Header File For The OpenGL32 Library
#include <gl\glu.h> // Header File For The GLu32...
i guess C++ is always the best source of problems, when you don't have any.. :D
i've finished my polygon classes, after checking examples and several idea.
i'm trying to make now a polygon...
yeah, i guess that vector is different of the 3D vector :)
i was wondering now...
i'm trying to instanciate an array of my class, but this class also needs a value in it's constructor.
how...
i see. i always skipped the pointer part into tutorials, since it seems a pretty evil idea. i guess i'll have to start reading 'bout them from now on. they seem more usefull than i thought.
thanks...
so a pointer to corners returns me only the first element, and not everything?
uuuh. pointers are such a hard concept.
i've got some interesting question here: is there a way to only pass to foo...
Mario, thanks. but i think it's easier to use the curly braces, at least for now. but i do see the purpose of that. I'm starting to see now where the "power" that c++ has comes from..
Ouch, Tonto,...
well, yes. consider it intialisation :) it's more like, i'm experimenting with it, to see if it behaves how i want.
wow, that curly bracket sure saves a lot of typing..
okay, and one more...
I'm making a class to handle and decide what polygons should be rendered and checked for collisions in a simple game.
I have a method in it, which will set the corners of the poly, and since i...
oh, now i see it.
it's declaring an array inside of an array, exactly what i want, and doing all the memory calculations. mrr, this memory allocation thingie is really evil
but i was expecting...
interestingly enough, the last example works.
thanks.
but if you do have a bit of time, can you explain me why it works?
i really appreciate it.
thanks again.
um, i don't get it
this is what i made till now
implementation:
CMaze::CMaze(int mwid, int mhgt)
{
wid=mwid;
hgt=mhgt;
hmm..
and what should i write in it's declaration (header), where i'm declaring grid protected?
it's currently written int grid[][1];
and although i set each item of the grid to 15 in the...
i'm making a class for a maze generator, but i ran into problems even from the beginning.
i have a int named grid, which should be a two dimensional array. this one will store different values,...
hey guys :)
i've managed to start reading from eckel's "thinking in c++", and i do feel that i begin to understand things, although linker errors are still ahead of me. untill now, i can work with...
i tend to agree too.
please give me a reference to a good compiler and ide. i'm using devc++ and i've got the same error as last time. i'd preffer something that would make it easy for portable...
uhm..
so what do i have to change/remove, wraithan?
edited: i got it, i added using std::cin;
but now still gives these errors
C:\Devcpp5\Proiecte\list ex\main.o(.text+0x17) In function...
i've not taken any c++ in college, i'm more of an amateur programmer. i learnt php and vb by myself, thought c++ couldn't be too hard.
i see now that it has completely different princples and...
heh, i guess he was right.
well, i don't know. i'm not an expert in C, i have around a week or so. what exactly should i include?
what's the thunder, lol? ^^
till now, thanks for your time, dudes :)
i tried your last example, chaos, but cin.ignore and cin.get fail. removed them, and now i get
...
i tried
cout << *i << "\n", since it says endl is not declared.
but i get this:
In function `int main(int, char**)':
invalid type argument of `unary *'
am i really silly to get this...
i know i shoud have read a book, but..
i went with the internet tutorials, hoping to learn.
i'm trying to understand how std::list works. i've found some tutorials here:...
i do not want to be rude, and i do appreciate the suggestion, but can you recommend me some online book? i do realise that a hardcover book is better, since i can keep it around my desk, and look up...