Can I write objects of different class types in one file in C++?

Status
Not open for further replies.

Elnegm

Member level 1
Joined
Jun 28, 2005
Messages
33
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,524
does anyone Know if i can write objects of different class type in one file in c++?
THX
 

Re: files in c++

Yes, I can write objects of differents classes in same file or different files, since de compiler know where the classes are defined.
 

Re: files in c++

how ,i tried to do that but it read wrong data in database project?
THX
 

Re: files in c++

Can you send the source? What compiler are you using?
 

Re: files in c++

i'm using visual studio .net
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…