Home Forums Gamescan Chat42 About
* Login   * Register * FAQ    * Search
It is currently Mon 09-01-2025 9:51AM

All times are UTC - 6 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject:
PostPosted: Sun 05-13-2001 2:23PM 


Source: Somewhere
Why does the GNU compiler start yelling when I try to either return a cstring var, or pass it by reference.

Ex.
char[] RetrieveDataFromInput (ifstream Input );

and
char RetrieveDataFromInput (ifstream& Input );

Thanks


Top
  
Report this post    Reply with quote  
 Post subject:
PostPosted: Fri 05-18-2001 9:09AM 
Offline
Corporal

Joined: Thu 05-10-2001 7:11PM
Posts: 6

Source: Holtman Hall
I think your line of code is trying to return a 'character'... not an array of characters. You might want to try just making the function void, and adding the cstring to your paramater list, and using pass by reference to return.

ex:
void RetrieveDataFromInput (ifstream& Input, char& ReturnCstring[]);


Top
 Profile  
Report this post    Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group