August 2018 1 38 Report
#include <iostream.h>
#include <fstream.h>



int main ()
{

cout<<"Podaj sciezke dostepu do pliku : """<<endl;
char del1[100];
cin>>del1;
cout<<"Usuwam zawartosc - "<<del1<<endl;

ofstream a;
a.open(del1);
a.close();

system("PAUSE");

}


Musze ten program przerobic tak aby dzialal z lini wiersza polecen.Po wpisaniu w cmd del1 sciezka_dostepu.txt zawartosc powinna byc usunieta.

Recommend Questions



Life Enjoy

" Life is not a problem to be solved but a reality to be experienced! "

Get in touch

Social

© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.