I have the following code which I have been trying get to output ALL capital letters using the toupper function.
My code will build successfully, however all the letters are still lower case when ever I type.
PLEASE HELP ME UNDERSTAND WHAT I AM DOING WRONG!
The following is the code I have gotten to so far, but I need to know where to place the toupper function. Everytime I try to associate it with char c I do something wrong.
-------------------------------------------------------------------------------------------
#include <stdio.h>
#include <iostream>
using namespace std;
int main (int argc, char *argv[], char **env)
{
char c, lastc = ' ' ;
c = cin.get() ;
do {
cout.put(c) ;
c = cin.get() ;
} while ( !cin.eof()) ;
return 0;
}