September 3rd, 2012, 05:52 PM
The bad and the ugly...
Join Date: Jan 2007
Location: Oz... No??? Neverland then?
Time spent in forums: 1 Day 6 h 21 m 2 sec
Reputation Power: 0
Originally Posted by dwise1_aol
Try *(letters + c)
That provides the compiler with an lvalue (from "left value"), which must resolve to a location in which to store thervalue. It performs pointer arithmetic to the address and then dereferences it. In your original, first you dereferenced letters which got you the value stored there and then added c to it, but that made the expression an invalid one for being an lvalue.
yea thanks man. i figured that line out when i went back and looked at my class notes.
woohoo! only a few more things to do for this assignment.
1. create a new file "filename_out.txt"
2. implement the bubble sort he gave us
3. print the sorted array into the file
"Life is not a journey with the intent on arriving at the finish line in a pretty and well preserved body. But rather to skid in broadside, totally worn out, thoroughly used up and loudly proclaiming, "Wow! What a ride!" -Anonymous
|| Diablo 2 LOD Modding
|| OLGA's BACK!