15,903,175 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by GwapoKho (Top 18 by date)
GwapoKho
8-Oct-14 10:36am
View
I tried but still i have a incorrect output when I input a character inputs
char v[100];
while(v!=0&&!cin&&cin.fail())//trap character
{
cout<<"press 0 to go menu: ";
cin.clear(); // clear the error
// clear the input stream
cin.get(v,100);
}
GwapoKho
8-Oct-14 10:20am
View
My program has a logical error it cannot block character inputs.
GwapoKho
8-Oct-14 10:19am
View
this the output of my program when I input a character
press 0 to go menu:press 0 to go menu:
press 0 to go menu:press 0 to go menu:
press 0 to go menu:press 0 to go menu:
press 0 to go menu:press 0 to go menu:
press 0 to go menu:press 0 to go menu:
press 0 to go menu:press 0 to go menu:
press 0 to go menu:press 0 to go menu:
GwapoKho
7-Oct-14 18:47pm
View
I just want to block integer inputs and only accept only character inputs.
GwapoKho
9-Sep-14 7:19am
View
and also I have to trap the input number when the item to be entered is smaller (in value) compared to the last item, the input will be disregarded as it is considered invalid entry.
GwapoKho
9-Sep-14 7:18am
View
I can only input 5 numbers that's why I include the while (num/10000 <=0 || num/10000 >= 10)
{
cout<<"Try again : ";
cin>>num;
}
GwapoKho
2-Aug-14 17:55pm
View
Like this sir but the sum of the columns displays only one answer...
GwapoKho
2-Aug-14 8:27am
View
Deleted
Like this sir? But the sum of the columns displays an incorrect output...
for(r=0; r
GwapoKho
6-Jul-14 1:09am
View
Please feed me I'm hungry
GwapoKho
6-Jul-14 0:08am
View
Ok...ah just make a code for me because I'm a bit confused of my program...
GwapoKho
5-Jul-14 21:12pm
View
Please share your solution
GwapoKho
5-Jul-14 20:34pm
View
Please help me debug my program.
GwapoKho
5-Jul-14 20:33pm
View
Please give some revised codes because I can't do this by myself.
GwapoKho
3-Jul-14 19:17pm
View
Deleted
Nooooooo
GwapoKho
3-Jul-14 19:17pm
View
It appears to be like this
Compiling NONAME00.CPP:
Error NONAME00.CPP 15: Cannot convert 'char *' to 'char' in function main()
Error NONAME00.CPP 17: Cannot convert 'char' to 'char *' in function main()
Warning NONAME00.CPP 26: 'g' is assigned a value that is never used in function main()
GwapoKho
3-Jul-14 19:16pm
View
Deleted
how?
GwapoKho
3-Jul-14 19:15pm
View
The program gets crash when I run it oh what should I do now?
GwapoKho
3-Jul-14 19:13pm
View
Oh it has an errors again
Compiling NONAME00.CPP:
Error NONAME00.CPP 15: Cannot convert 'char *' to 'char' in function main()
Error NONAME00.CPP 17: Cannot convert 'char' to 'char *' in function main()
Warning NONAME00.CPP 26: 'g' is assigned a value that is never used in function main()
Show More