Ok, I have to write a program that will change everything that is typed to capital letters. I was told to us a getChar and putChar...but i wasn't sure where to put the putChar. I am getting error messages that say that my inChar = ... is not a function. As well as my printf. So, if any one could help i would really appreciate it.
Thanks.
Code:
#include <stdio.h>
#include <ctype.h>
int makeCap()
{
int inChar;
do 
{
printf("Please type a sentence:\n");
inChar = toupper(getChar());
getChar();
putChar(inChar);
}
while (inChar != 'q');

&#91;code]&#91;/code]tagged by Salem