Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Initializing an array of pointers Help!

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
zengrz
Cheater
Reputation: 0

Joined: 19 Mar 2009
Posts: 33
Location: ca

PostPosted: Sun Aug 01, 2010 6:45 am    Post subject: Initializing an array of pointers Help! Reply with quote

Hello all.

I was trying to initialze an array of pointers from a second-level pointer variable:

Species **entries = new *Species[10];

and received an some errors:

c:\..\heappq.cpp(13) : error C2059: syntax error : '*'
c:\..\heappq.cpp(13) : error C2275: 'Species' : illegal use of this type as an expression
c:\..\heappq.cpp(21) : see declaration of 'Species'

Any ideas?

Thanks in advance.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sun Aug 01, 2010 12:12 pm    Post subject: Reply with quote

How did you declare species.. ?
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Sun Aug 01, 2010 12:19 pm    Post subject: Reply with quote

Code:
Species **entries = new Species*[10];
Solved. Ppl should learn the basics before doing anything else.
Back to top
View user's profile Send private message
zengrz
Cheater
Reputation: 0

Joined: 19 Mar 2009
Posts: 33
Location: ca

PostPosted: Sun Aug 01, 2010 12:40 pm    Post subject: Reply with quote

HAHAHA JUST TESTING YOU GUYS

ok that was pathetic.

thx Very Happy
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Aug 01, 2010 1:18 pm    Post subject: Reply with quote

zengrz wrote:
HAHAHA JUST TESTING YOU GUYS

ok that was pathetic.

thx Very Happy


Please don't post pointless topics. 'testing' people on the forums serves no purpose. The section is for getting help with issues.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites