64,654
社区成员
发帖
与我相关
我的任务
分享
#include<stdio.h>
#include<stdlib.h>
#pragma warning(disable:4996)
int main() {
FILE *p;
p = fopen("C:\\haha.txt", "r+");
if (p==NULL)
{
system("pause");
}
}
#include<iostream>
#include<fstream>
int main() {
using namespace std;
ofstream f;
f.open("haha.txt",ios_base::out);
if (!f.is_open())
{
system("pause");
}
f << "shift";
f.close();
}