This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Hello everyone, I have an array which is an instance of a class and is made up of 10 elements (indeces). The class that it is an instance of has two private variables. What I'm trying to do is that after the elements are populated in the array, I want to swap two of them around. Is there a way to use a syntax like: int first_value=array.value1 int second_value=array.value2 to get the two parts (variables) of the element in differenet variables of primitive types? The above code doesn't seem to work. I remember being able to use "dot" after an object to access both its functions and variables. Thanks to all who can help. Regards. [ November 29, 2002: Message edited by: Malcolm White ]
The 'Card' class has two private variables declared in it: value and suit. Hope someone can help. Thanks. [ November 29, 2002: Message edited by: Malcolm White ] [ November 29, 2002: Message edited by: Malcolm White ]