Skip to main content
6 events
when toggle format what by license comment
Mar 23, 2015 at 7:06 comment added Bradley Stone Kareem you are a wizard. Thank you once again.
Mar 23, 2015 at 7:05 vote accept Bradley Stone
Mar 21, 2015 at 6:48 comment added kzidane @BradleyStone I don't think argv and argc are relevant since you don't need any command-line arguments for this pset. The thing is that you could do the math inside the [] of s. So s[i + 1] is perfectly valid assuming that i + 1 is a valid array index for s.
Mar 20, 2015 at 15:06 comment added Bradley Stone Is it possible to use argv without declaring it in the place of "void" in the main function, but rather using it as a function by itself within a nested for loop? My biggest hurdle right now, I think, is to assign values to each char within my string. Because the string is an array, it should be possible to do this.
Mar 20, 2015 at 14:58 comment added Bradley Stone I understand the mistake with trying to add an int to the ASCII equivalent int. That just won't do. What I need is a function that can call up the char within the string that comes before and after the space char. What I expected the for loop to do was assign all the values of 'i' to each char in the string, and that was what I wanted to add and subtract from, not the ASCII equivalent. I'm pretty certain that argv and argc are not going to be useful in this case.
Mar 20, 2015 at 7:06 history answered kzidane CC BY-SA 3.0