Interesting post. You might want to work on your formatting , though. It's inconsistent.
WaltP
Posting Sage w/ dash of thyme
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
Hello alex1050,
In the line 15 it looks like '\o'(letter 'o') it should have been '\0'(zero).
Arbus
Practically a Master Poster
615 posts since Dec 2010
Reputation Points: 45
Solved Threads: 31
And also it should be == in the if-else (line 15) block as you are comparing the iochar with '\0' etc,.
if ((iochar=='\0')||(iochar=='\t')||(iochar=='\n'))
Arbus
Practically a Master Poster
615 posts since Dec 2010
Reputation Points: 45
Solved Threads: 31
Why? are you getting any errors. The if-else block in line 21 looks correct.
Arbus
Practically a Master Poster
615 posts since Dec 2010
Reputation Points: 45
Solved Threads: 31
You have declared iochar as integer type variable. I think that's why you didn't get the output. Declare it as character type variable.
Arbus
Practically a Master Poster
615 posts since Dec 2010
Reputation Points: 45
Solved Threads: 31
Look up toupper() and tolower() in your favorite reference material.
Lerner
Nearly a Posting Maven
2,382 posts since Jul 2005
Reputation Points: 739
Solved Threads: 396