Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~270 People Reached
Interests
Technology
Favorite Forums
Favorite Tags
c++ x 2
Member Avatar for tfmontague

How do I make an array (or an abstract data type) which can hold different data types? Then use those data types to create instances. I want to do the following: [code] int arrayType[3] = {bool, int, char}; /*arrayType[0]*/ myBool = true; /*arrayType[1]*/ myInt = 2; /*arrayType[2]*/ myChar = "a"; …

Member Avatar for alwaysLearning0
0
186
Member Avatar for tfmontague

I have a class function - which I am trying to pass array values - however the function returns the values even when I don't use the reference &. WHY? COULD SOMEONE EXPLAIN THIS? [CODE] Block example; // create an instance of the class 'Block' int Array1[3] = {0,0,0}; // …

Member Avatar for alvinwong
0
84