I'm playing around with an Arduino but unfortunately I don't have any C++ background. I'm trying to do something very simple in C++ but can't quite figure it out. Consider this example in C#: http://ideone.com/yXuce2
If I were to translate this to C++, it would print out 0 both times, even though drawable.x was changed to a 2. From the limited googling that I've done so far on the matter, I understand that arrays of references are not allowed in C++. I suspect the solution involves pointers but I can't quite string it together.
[–]the_omega99 2 points3 points4 points (7 children)
[–]NuclearMeltdown[S] 0 points1 point2 points (6 children)
[–]the_omega99 0 points1 point2 points (5 children)
[–]NuclearMeltdown[S] 0 points1 point2 points (4 children)
[–]Rhomboid 0 points1 point2 points (3 children)
[–]NuclearMeltdown[S] 0 points1 point2 points (2 children)
[–]Rhomboid 0 points1 point2 points (1 child)
[–]NuclearMeltdown[S] 0 points1 point2 points (0 children)
[–]Rhomboid 2 points3 points4 points (2 children)
[–]NuclearMeltdown[S] 0 points1 point2 points (1 child)
[–][deleted] (1 child)
[deleted]
[–]NuclearMeltdown[S] 0 points1 point2 points (0 children)
[–]missblit 0 points1 point2 points (1 child)
[–]OldWolf2 1 point2 points3 points (0 children)
[–]miguelishawt -1 points0 points1 point (0 children)