30/09/2018, 19:29

Nhờ chuyển code c++ thanh code c

#include
#include

using namespace std;

int main()
{
char ch;
char name[40];char namea[4];
cout<<"Nhap duong dan du lieu: ";
fflush(stdin);
cin.getline(name, 40);// data.in
fstream data;// doc
fstream daluu;//ghi
data.open(name, ios::in);
cout<<“Nhap duong dan luu du lieu: “;
fflush(stdin);
cin.getline(namea, 40);
daluu.open(namea ,ios::out);
data.get(ch);
while(!data.eof()){
daluu.put(ch);
data.get(ch);
}
data.close();
daluu.close();
system(” pause”);
return 0;
}

Bài liên quan
0