Hello,
In a modifying function, the user might not change the whole structure's data, so I wanted for example if he hits enter, it just keeps the old data, but scanf("%d",inte ger); doesn't accept a return character and keeps asking.
Entrer the uid : //user hits enter initial value should be kept
Enter the username :
so I wanted to fill in advance the user input, just like the following :
Entrer the uid : 12 // this value is printed out as an "input" and can be fully/partly erased by the user in other words editable.
Feel free to ask for additional informations,
Thanks,
In a modifying function, the user might not change the whole structure's data, so I wanted for example if he hits enter, it just keeps the old data, but scanf("%d",inte ger); doesn't accept a return character and keeps asking.
Entrer the uid : //user hits enter initial value should be kept
Enter the username :
so I wanted to fill in advance the user input, just like the following :
Entrer the uid : 12 // this value is printed out as an "input" and can be fully/partly erased by the user in other words editable.
Feel free to ask for additional informations,
Thanks,
Comment