[问题] fscanf 读txt

楼主: rkwhy (墨稳定为)   2018-01-08 17:29:38
假设我的资料型态如下
radar_dis: 234 radar_str: 114 frame_radar: 0 camera_frame: 0 count: 1 radar_ang: 476
radar_dis: 234 radar_str: 114 frame_radar: 1 camera_frame: 0 count: 1 radar_ang: 415
radar_dis: 234 radar_str: 113 frame_radar: 2 camera_frame: 0 count: 1 radar_ang: 410
要如何只读取数字的部分?
作者: johnjohnlin (嗯?)   2018-01-08 19:56:00
fscanf("radar_dis:%d radar_str:%d", &a, &b)

Links booklink

Contact Us: admin [ a t ] ucptt.com