current position:Home>How to extract specified data from text in C language

How to extract specified data from text in C language

2022-02-02 22:04:40 CSDN Q & A

Xiaobai is one , How to extract the required data from the text

img


As shown in the figure, the number in front of the figure represents the date , The following number represents the serial number , Finally, the event . If I want to make a date 01 when , can printf The middle three belong to 1 Event No , How to achieve




Refer to the answer 1:

Define a structure , Read by row and save to the structure array .
Refer to the file operation :
http://c.biancheng.net/view/2071.html




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202022204381998.html

Random recommended