Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Initializing arrays
Index -> Programming, C++ -> C++ Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Justin_




PostPosted: Tue Aug 15, 2006 3:03 pm   Post subject: (No subject)

Laughing Darn I knew I'd screw something up. The actual code does declare a size for the array... That is why I wanted to avoid using the code. Assume the rest of the code works dandily because it does, i've been testing it after every new function I write.

Actually I think you've answered me (although indirectly).
I now know that I am passing the array correctly to my function.


I wonder why it complains about a different preprocessor being an "undefined reference". (Remember I tested the code prior to building this array function and the other preprocesser was fine)
Sponsor
Sponsor
Sponsor
sponsor
Justin_




PostPosted: Tue Aug 15, 2006 3:12 pm   Post subject: (No subject)

Got it working!

Okay, dunno what happened there... the code was definitely working. I suppose I must have accidently deleted from the other function declaration while creating the new function Sad
wtd




PostPosted: Tue Aug 15, 2006 3:29 pm   Post subject: (No subject)

Forward declarations are not a use of the preprocessor.
Justin_




PostPosted: Tue Aug 15, 2006 3:35 pm   Post subject: (No subject)

Its been a long time since I used C++ so I was confusing a function prototype and a preprocessor, my bad.
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 19 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: