Click here to Skip to main content
Page 1 of 1
Page Size: 10 · 25 · 50


Author filtered by: si2dharth [x]
Answer 13 May 2013   license: CPOL
What your rand() does is give a number between 0 and 32767. Now, if you want your number to be ALWAYS a 8 digit number, not smaller than 1000000, what you can use as an effective solution is generate each number separately. Also, it depends on your machine if you can store 8 digit numbers. So,...
C++
Answer 13 May 2013   license: CPOL
I see that you haven't closed any of the two files. While its okay when you are reading the file, after writing all the data to the file, close it with a simple outnm.close();after the write loop.This will flush all the contents in the file that the system usually caches
C++
Answer 13 May 2013   license: CPOL
Its a small setting in your editor. In view, or in personalization or some similar setting, you must have checked the "Show spaces and tabs" or something to that effect.

Page 1 of 1


Advertise | Privacy | Mobile
Web04 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid