|
-
February 17th, 2012, 04:39 AM
#14
Re: How to generate an auto ID (or Auto Number)
 Originally Posted by general07z
The ID in my code is defined as a "Phone Number", as showing here:
If you want to store a phone number, then declare your variable as "Phone_Number"!
"as shown here": We can only read so much code to try to understand what you are doing. We can't read your mind.
Is your question related to IO?
Read this C++ FAQ article at parashift by Marshall Cline. In particular points 1-6.
It will explain how to correctly deal with IO, how to validate input, and why you shouldn't count on "while(!in.eof())". And it always makes for excellent reading.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|