I have an assignment i have wrote a code bellow but it skips qualification and address lines.why its happening.also i want that code automatic insert "/" after day and month(dd/mm/yyy) when user enter age joining date etc.
Thanks you i used getline function and strings but again it skips skips joining date i figured it out that when salary variable is int type program skip joining date when salary type string then joining date execute.. i want to know why it skips when variable type is int...
It skips when you use >> to read into the variable because that leaves the enter you press to input the data in the input stream. Then, on the next line, when you try to read a string, it reads that enter press as you having entered the empty string.