![](/img/trans.png)
[英]Is it possible to read a string with fscanf and save it as unsigned int in an unsigned int pointer?
[英]Read 2 int and \n with fscanf - thoughts?
在我當前的C語言項目中,我必須從文件2 int中讀取,並確保在這些文件之后有換行符。 我正在嘗試使用fscanf函數(fscanf(f,“%d%d”,&a,&b)),但是這種方式我不知道它們是否在同一行或后面是否有換行符。
有什么想法嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.