User Profile
Collapse
-
I dont know what im doing but I just cant get it to work, with your help I feel I am a bit further on but cant get it to work properly -
ill have a go at that now
but is something wrong with this? It once a letter is entered is wont accept a number
...Code://Program to claculate delivery cost #include <conio.h> #include <iostream.h> #include <string> main() { int numberQuotes,error,letter; char nextDay; float weight,cost,deliveryCharge,total; char pound=156; //usedLeave a comment:
-
YES YES YES !!!!! THANKS SOOOOOOOO Much!!
Just 1 more question. How can I loop it back so that the user has another go at entering a number. Can i not do a
do{
}while(cin.fail )
???Leave a comment:
-
-
I tried this but can you tell me how to put it into my code?
Currently I have included
#include <conio.h>
#include <iostream.h>
and have declared
int numberQuotes,er ror;
char nextDay;
float weight,cost,delievery Charge,total;
Weight is the one I want to validate
Thanks so far it has been helpful!
Leave a comment:
-
C++ : Do not allow letters in a float validation?
I have to create a program that has validation in it, The programme asks the user for the weight of a package, and sets the cost appropriately, I have a do in place do that if the user types in a minus number it gives them an error.
do{
clrscr();
cout<<"\n Enter the weight of the package to be delivered ";
cin>>weight;
if(weight<0)
{
cout<<"\n Error! ENTER... -
Network Access Form Read Only Problem
I have the database on the network now for testing purpose's however when someone opens it, it locks the database and makes everyone else have read only access how do I make it so that everyone can use the form at the same time and add? Its a suggestion form
Thanks
Lewis -
ok thank you VERY MUCH!!! this was very helpful!
One other question.
I have the database on the network now for testing purpose's however when someone opens it, it locks the database and makes everyone else have read only access how do I make it so that everyone can use the form at the same time?
Thanks
LewisLeave a comment:
-
IF THEN - Hide toolbars for users
Hello,
I have made a form for entering suggestions, what I want to happen is if I open the form I can see all the toolbars, design view etc . . .
but if another user opens the form all information is hidden.
Also if possible when user "cornsg" opens the database I want that user to be shown a different form to everyone else opening it.
I have set it up so when the...
No activity results to display
Show More
Leave a comment: