0
Can someone tell me the program in c++ in which whenever we register the patient.....their id is generated automatically
c++
3 Respuestas
0
there isnt one specific program... but you could create a private static member of the class, key. everytime someone creates an object of that class (constructor is called) this objects ID is set to the key then the key is incremented. this key must be initialized to zero prior but this should work. the only spot that this variable is changed is in the constuctor. This forces every id tk be unique
0
actually I don't know how to create member.... sorry to bother you.... but can you send me the syntax plz
0
no need..... I got it... thanks