Text file with different data types into structure array [closed]
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . I have to parse a text file with 3 different data types. I want it to be saved in a structure array with three members. My text file look like this: A B 45.78965 A C 35.46731 B C 46.78695 The program that I'm reading it with is the following and it does not work. What am I doing wrong? #include