02-17-2012, 01:13 AM
Here's a copy with the guidelines, any advice is appreciated
Part 1
In your main() function, ask the user to enter their full name. Ensure that you can successfully store their name, with the space and without having a ‘\n’ character in the array. Make sure that you can handle a reasonable name. There’s a good chance that I won’t grade the assignment based upon your name.
Part 2
Pass a pointer of your character array into a function that outputs the number of characters stored in your character array.
Part 3
Pass a pointer of your character array into a function this displays the reverse. For example, my name of Kyle Cronin would be output as: ninorC elyK
Part 4
Again, passing a pointer to your array, inform the user which character is the space in your name. For example, for Kyle Cronin, my function would output: 4, since the 5th element of my array would be the space (remember element vs element number).
Part 5
Within your main function, after you’ve called the other functions, reverse your name. For example, my name would be outputted as: Cronin Kyle.
Part 1
In your main() function, ask the user to enter their full name. Ensure that you can successfully store their name, with the space and without having a ‘\n’ character in the array. Make sure that you can handle a reasonable name. There’s a good chance that I won’t grade the assignment based upon your name.
Part 2
Pass a pointer of your character array into a function that outputs the number of characters stored in your character array.
Part 3
Pass a pointer of your character array into a function this displays the reverse. For example, my name of Kyle Cronin would be output as: ninorC elyK
Part 4
Again, passing a pointer to your array, inform the user which character is the space in your name. For example, for Kyle Cronin, my function would output: 4, since the 5th element of my array would be the space (remember element vs element number).
Part 5
Within your main function, after you’ve called the other functions, reverse your name. For example, my name would be outputted as: Cronin Kyle.