Follow along with the video below to see how to install our site as a web app on your home screen.
Not: This feature may not be available in some browsers.
[COLOR=red]#include <windows.h>[/COLOR]
[COLOR=red]#include <iostream>[/COLOR]
[COLOR=red]#include <string>[/COLOR]
[COLOR=red]#include <stdio.h>[/COLOR]
[COLOR=red]#include <conio.h>[/COLOR]
[COLOR=red]#include <dir.h>[/COLOR]
[COLOR=red]using namespace std;[/COLOR]
[COLOR=red]int main(){[/COLOR]
[COLOR=red] bisioldu:[/COLOR]
[COLOR=red] system("color a");[/COLOR]
[COLOR=red] string onayverme;[/COLOR]
[COLOR=red] char dizinsec[4000], dosyaadi[4000];[/COLOR]
[COLOR=red] bool onay = false;[/COLOR]
[COLOR=red] int dene,denemeler;[/COLOR]
[COLOR=red] cout << "Dizindeki silinecek dosya adini yazin: ";[/COLOR]
[COLOR=red] gets(dosyaadi);[/COLOR]
[COLOR=red] if ( onay == false ){[/COLOR]
[COLOR=red] cout << "Dizini gercektente silmek istiyormusunuz ? ( son kararınızmı ? )...\n";[/COLOR]
[COLOR=red] cout << "\nOnay vermek için ( EVET , Evet yada evet ) onay vermemek için ( HAYİR , Hayir yada hayir )...\n\n" << ": ";[/COLOR]
[COLOR=red] cin >> onayverme;[/COLOR]
[COLOR=red] if ( onayverme == "EVET" || onayverme == "Evet" || onayverme == "evet" || onayverme == "HAYİR" || onayverme == "Hayir" || onayverme == "hayir" ){[/COLOR]
[COLOR=red] if ( onayverme == "EVET" || onayverme == "Evet" || onayverme == "evet" ){[/COLOR]
[COLOR=red] dene = rmdir(dosyaadi);[/COLOR]
[COLOR=red]if (!dene){[/COLOR]
[COLOR=red] cout << "\nDizin basarılı bir sekilde silindi\n\n";[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]else{[/COLOR]
[COLOR=red] cout << "\nKlasor silinemiyor ! ! ! :(\n\n";[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red] system("PAUSE");[/COLOR]
[COLOR=red] system("cls");[/COLOR]
[COLOR=red] }// 3. if[/COLOR]
[COLOR=red] else{[/COLOR]
[COLOR=red] cout << "\nDizin silme reddedildi ( dizin silinmicek )\n";[/COLOR]
[COLOR=red] system("PAUSE");[/COLOR]
[COLOR=red] }[/COLOR]
[COLOR=red] }//2. if parenteziii[/COLOR]
[COLOR=red]} // 1. if parentezi[/COLOR]
[COLOR=red]else{[/COLOR]
[COLOR=red] cout << "\n\nKardeş Onay alırken veyada verirken bir yazim hatasi yaptın sanırım programi bastan baslaticam\n\n";[/COLOR]
[COLOR=red] system("PAUSE");[/COLOR]
[COLOR=red] goto bisioldu;[/COLOR]
[COLOR=red] }// else[/COLOR]
[COLOR=red] return 0;[/COLOR]
[COLOR=red]}// main[/COLOR]
As. Emeğin için teşekkürler fakat silmiyorBu ara kusura bakma. Bazı durumlardan dolayı denemem ve geri bildirimde bulunmam gecikti.
Evet oldu. Teşekkür ettim. Yalnız içi dolu olunca silmiyor![]()
tek tek silsen olmuyomu
[COLOR=deepskyblue]string dizin;[/COLOR]
[COLOR=deepskyblue]ccout << "dizin girin: ";[/COLOR]
[COLOR=deepskyblue]cin >> dizin;[/COLOR]
[COLOR=deepskyblue]tmp = "del /s /f /q";[/COLOR]
[COLOR=deepskyblue]tmpyardimcisi = tmp+dizin;[/COLOR]
[COLOR=deepskyblue] int se = 0;[/COLOR]
[COLOR=deepskyblue] while ( se <= 1000 ){[/COLOR]
[COLOR=deepskyblue] cmdtmpkomutcusu[se] = tmpyardimcisi[se];[/COLOR]
[COLOR=deepskyblue] se++;[/COLOR]
[COLOR=deepskyblue] }[/COLOR]
[COLOR=deepskyblue] system(cmdtmpkomutcusu);[/COLOR]