| | |
Handling the space character?
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
Hey, I made i looked up toupper and made a little program out of it and have come to a little situation, When i enter the space character " " it does not output what i want and it just closes.
Thank you in advance.
C++ Syntax (Toggle Plain Text)
#include <iostream> using namespace std; int main() { int i = 0; char text[20]; cout << "Enter A Word (Letters Must All Be Lower Case) : "; cin >> text; while(text[i]) { putchar (toupper(text[i])); i++; } cin.get(); cin.get(); return 0; }
Thank you in advance.
C Plus Plus Coder.
Fourteen Years Of Age
Fourteen Years Of Age
•
•
Join Date: Oct 2007
Posts: 280
Reputation:
Solved Threads: 19
![]() |
Similar Threads
- Send data on a serial port (C++)
- Pointers (archived tutorial) (C++)
- C and C++ Timesaving Tips (C++)
- Open In New Window Php (PHP)
- Handling keyboard input (C++)
- Escape and Unescape / Handling (C)
- Please AnyBody Can Help Me To Build Assembly Code Infix To Postfix It So Hard T_T (Assembly)
- I've got Trojan.Holax... is this bad? (Viruses, Spyware and other Nasties)
- not-a-virusadware (Viruses, Spyware and other Nasties)
- Pointers (C++)
Other Threads in the C++ Forum
- Previous Thread: _LINE_ in devc++
- Next Thread: Vista vs Microsoft Visual C++ 6.0
Views: 1604 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api array arrays assignment beginner binary bitmap c++ c/c++ calculator char class classes code coding compile compiler console conversion convert count data database delete developer display dll email encryption error file forms fstream function functions game generator getline givemetehcodez graph homeworkhelper iamthwee ifstream image input int integer java lazy lib loop looping loops map math matrix memory multidimensional multiple newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive reference return sort sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





