ok this is why i asked bout the whole copying file stuff.. this is what i am tryin to do... i want to make a program that asks the user for their name like... john sammy smith... and what i want the program to do is check the first letter of the first middle and last name and if its not capatilized, then make it capitalized. im tryin to get this accomplished with the stuff i know, so all i really want to do is save the name to a file then check the data and write the new data over the existing information and cout the result. thx for everyones help.
the name will need to be one or multiple character arrays/strings
include ctype.h to use toupper(ch)
toupper(ch) takes a single character as it's argument and returns the uppercase character. If the character is not a letter or it is already uppercase, it does not change it and returns the same character that was sent. tolower(ch) is the compiment of toupper(ch)
char ch = 'a';
ch = toupper(ch);
*ch is now 'A'*
ok like i said.. i just learned bout the whole "opening closeing, file" stuff tonight... and im tryin to do it by saving the information in a file that the program makes, then opens the file and edits the characters to make the first letters uppercase. is there a way to do this by using char's and useing like ifstream and stuff on that lines? thx everyone.