i have writen a program that asks the user to input letters and it will change it to upper case. i have done this by using the common way of "toupper". i then got told that i cant have any letter manipulation or string commands to do this. can anyone help as to do this?
here is the code i had before...
Code:#include <iostream> #include <iomanip> #include <ctype.h> using namespace std; int main() { char input[25]; int i = 0; cout <<"Please enter a word of mixed letters eg - MiXeD LeTtErS"; cin >> input; for(;;) { if (input[i] == '\0') break; else { input[i] = toupper(input[i]); } i++; } cout <<input; system("pause"); }