0

how to increase number continuously even after programm is termitted

for eg. i started increase number from zero and when it reach 10 , programm is terminated .and when i reopen it again i wat to increase it started from 10 not 0. this is for providing id to customer .

30th Apr 2019, 2:40 PM
anjit pariyar
anjit pariyar - avatar
5 odpowiedzi
+ 2
anjit pariyar Same concept, C supports databases and files.
30th Apr 2019, 4:45 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
(Which language ?) You can store the number in a file or database.
30th Apr 2019, 2:42 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
yea okey :)
30th Apr 2019, 4:52 PM
anjit pariyar
anjit pariyar - avatar
0
C programming
30th Apr 2019, 3:50 PM
anjit pariyar
anjit pariyar - avatar
0
Just save it in file, then look if the file exist (because of first run), and read.
30th Apr 2019, 4:43 PM
Maneren
Maneren - avatar