Relative Content

Tag Archive for cscanf

Is scanf trying to read quaternions?

I’m trying to write a piece of code that will read user input, store it inside a double or a char depending on the input’s type. It works fine, unless I input “i”, “j”, “I” or “J”. These characters are read correctly if the first scanf looking for doubles does not run. What’s happening?

How can i use fscanf from file to struct in c?

I cannot save information of students from file to struct, When i tried to printf my struct its not working, I think it should work but i dont understand, why it is not working. When i did only struct or use file like this it works.

How can i use fscanf from file to sturct in c?

I cannot save information of students from file to struct, When i tried to printf my sturct its not working, I think it should work but i dont understand, why it is not working. when i did only struct or use file like this it works.