Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / class prob

Author
Message
wh1sp3r
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Czech republic
Posted: 23rd Oct 2008 12:28
Hello,

here is my code:



trida *B[1] = new trida();

I would like to use an array, i have forgotten, how to make it, Could you help me please ?

Class is defined, there is no problem i think.

PS: Real programmers aren't afraid of math!.

AMD 64x 3500+, 6GB RAM, GeForce 8800 GTS 320MB, HD 500GB, X-fi xtreme audio
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 23rd Oct 2008 16:06
This:
int B[5];


Should be this:
trida *B[5];

wh1sp3r
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Czech republic
Posted: 23rd Oct 2008 18:04 Edited at: 23rd Oct 2008 18:05
Still errors



PS: Real programmers aren't afraid of math!.

AMD 64x 3500+, 6GB RAM, GeForce 8800 GTS 320MB, HD 500GB, X-fi xtreme audio
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 23rd Oct 2008 21:06
There are loads of tutorials available online for C++

I couldn't be bothered to set up a full project for this, so it's simply a console app hacked to give a few basic GDK functions and the bare minimum code changes to run:


wh1sp3r
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Czech republic
Posted: 23rd Oct 2008 21:52
ah, thank you I coulnt find something similar, any tutorial explaining my problem.

PS: Real programmers aren't afraid of math!.

AMD 64x 3500+, 6GB RAM, GeForce 8800 GTS 320MB, HD 500GB, X-fi xtreme audio

Login to post a reply

Server time is: 2024-11-25 05:24:15
Your offset time is: 2024-11-25 05:24:15