Forum: C++ Nov 24th, 2005 |
| Replies: 2 Views: 1,227 adding a '\' to a CString object I am programing in MFC .NET, and I am encountering a problum in adding the symbol '\' to a CString object. This is naturaly due to the fact that the symbol is used for such things as \n \t ect.
How... |
Forum: C++ Jul 24th, 2005 |
| Replies: 9 Views: 1,468 Re: handeling wrong input from user That's no help, my program is suppose to be 'stupid user safe'.
I did slove the problem like this (reminder, x is a double variable):
if (!(cin>>x)){
cout<<"bad... |
Forum: C++ Jul 24th, 2005 |
| Replies: 9 Views: 1,468 Re: handeling wrong input from user It's a possability, but a dirty one... (one that I am trying to avoide)
I guess a better question would be, why the program is ignoring all the other cin's |
Forum: C++ Jul 24th, 2005 |
| Replies: 9 Views: 1,468 Re: handeling wrong input from user I can, but this doesn't solve the problum - The program still ignores the rest of the cin's without pausing for input.
for example, the following is an infinate loop on the input 'a':
while (!(cin... |
Forum: C++ Jul 24th, 2005 |
| Replies: 9 Views: 1,468 Re: handeling wrong input from user couldn't edit, here is a program and it's resaults for example:
void main()
{
double x=1;
double y=2;
double z=3;
cout<<"x:"<<endl;
cin >> x;
cout<<"y:"<<endl;
cin>>y; |
Forum: C++ Jul 24th, 2005 |
| Replies: 9 Views: 1,468 handeling wrong input from user Hi all and thanks in advance for any help.
I have a basic program that needs to read a number of inputs from a user.
To all these inputs I assign a default value before I call for the user to give... |
Forum: ASP.NET Jul 17th, 2005 |
| Replies: 3 Views: 7,593 |