想将数据写到txt中 一行写成
opencv吧
全部回复
仅看楼主
level 6
shun_147258
楼主
想将数据写到txt中
一行写成一个元素
想问的是我的数据有文字 有数字 那scanf写的是%? ?处该写什么呢
2017年08月14日 09点08分
1
level 3
巨人1755311380
你要写什么数据?举个例子,具体一点
2017年08月14日 14点08分
2
shun_147258
比如我想输出 小明 1年级1班 男 小红 1年级1班 女
2017年08月14日 14点08分
shun_147258
男后面换行
2017年08月14日 14点08分
level 7
白芦花
scanf不是输入吗?可以用来写吗?
2017年08月14日 15点08分
3
shun_147258
fscanf打少了个f 功能跟scanf差不多
2017年08月15日 00点08分
白芦花
@shun_147258
你不是写到txt吗?fscanf也不能写啊
2017年08月15日 01点08分
shun_147258
不可以将txt内容赋值到字符串数组里面吗?
2017年08月15日 01点08分
shun_147258
我是看这个的 图放外面了
2017年08月15日 02点08分
level 6
shun_147258
楼主
2017年08月15日 02点08分
4
1