Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  ggggg
Language: C/C++
Code:
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
int main(int argc,char *argv[])
{
    char s[50];
    if (argc!=2) {
        printf("corect remove fisier.extensie\n");
        exit(1);
    }
    printf("Sterg %s ? (Y/N):",argv[1]);
    gets(s);
    if(toupper(*s)=='Y')     if(remove(argv[1])) {
            printf("fisierul nu se poate sterge\n");
            exit(1);
        } else printf("Chiar l-am sters !");
}
Comments: