While programming I bumped into a block that required me to scan in a name that can take a first name OR a full name. Before this I was using a scanf to read a string, and obviously it does not work for flexibility for one or two strings.
Here's how my program is running.
name:
age:
hbp:
lbp:
where name is a string, age is an int, hbp lbp a float. I tried using fgets but then messes things up like this:
name: age:
and doesn't take a name at all. Any help would be great.