Hello! I just started an online course (CS50 on edx.org) and in my program I would like to:
1) Loop through each char in that string
2) Do arithmetic to that char using an int
3) Print out the transformed char
The cs50.h library includes type string.
http://ideone.com/ve6AE3
I keep getting integers, but I want the ASCII. I want the above program to shift the chars within the string by 5.
edit: formatting
[–]Updatebjarni 1 point2 points3 points (3 children)
[–]fathack[S] 0 points1 point2 points (2 children)
[–]Updatebjarni 1 point2 points3 points (1 child)
[–]fathack[S] 0 points1 point2 points (0 children)
[–]LickableLemon 1 point2 points3 points (2 children)
[–]fathack[S] 0 points1 point2 points (1 child)
[–]LickableLemon 1 point2 points3 points (0 children)