fscanf(fp,"%d ",&cars[i][0]); 怎么改为cin形式 fprintf(fp,"%d ",cars[i][0]); 怎么改为cou形式
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/17 15:34:15
![fscanf(fp,](/uploads/image/z/13353269-5-9.jpg?t=fscanf%28fp%2C%22%25d+%22%2C%26cars%5Bi%5D%5B0%5D%29%3B+%E6%80%8E%E4%B9%88%E6%94%B9%E4%B8%BAcin%E5%BD%A2%E5%BC%8F+fprintf%28fp%2C%22%25d+%22%2Ccars%5Bi%5D%5B0%5D%29%3B+%E6%80%8E%E4%B9%88%E6%94%B9%E4%B8%BAcou%E5%BD%A2%E5%BC%8F)
xQMK@+CDI%C= ^$v)&MAŋW 6*$0Tka7ov9r4c#.,j[eP"Eǔw S&Dk\i&/-̫žl2Q- %(kC]"< ٪ (ӓ+ml@`{gk5A]H{iu*uu弛yVŎlBeY6#Sy5TGR3D.JIRSeɮf,eEqMr"gPP?C}OGWӯS~r]Y7N
fscanf(fp,"%d ",&cars[i][0]); 怎么改为cin形式 fprintf(fp,"%d ",cars[i][0]); 怎么改为cou形式
fscanf(fp,"%d ",&cars[i][0]); 怎么改为cin形式 fprintf(fp,"%d ",cars[i][0]); 怎么改为cou形式
fscanf(fp,"%d ",&cars[i][0]); 怎么改为cin形式 fprintf(fp,"%d ",cars[i][0]); 怎么改为cou形式
#include
#include
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
std::ifstream fcin;
std::ofstream fcout;
int arrOut[1][1] = {1234};
int arrIn[1][1];
fcout.open("a.txt", ios_base::out|ios_base::ate);
fcoutarrIn[0][0];
fcin.close();
cin.get();
return 0;
}
本人已经测试过 正确无误