C programming validating user input Sex chat kontakt sm

That's why you should tell us what you think should happen at the switch.

If I had to make a guess, I would guess something like this...

The console shows then disappear before I can see the result when I enter an invalid character. See the code below Also I had to use cin.get() in all functions except the main, is this a normal practise? If I don't enter 'e' or 'E', I must have entered 'D'? What you probably mean is: conversion Type equals 'E' OR conversion Type equals 'e' The last call is not a call at all, it's a function declaration.

C doesn't allow function declarations inside functions, but the g compiler (that you use too with Dev-c ) does allow them.

Luckily, I was able to parse through the extra characters one-by-one and get something working.