Guest User

Untitled

a guest
Dec 14th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <ctype.h>
  4. #include "almajiro.h"
  5.  
  6. int main(void)
  7. {
  8. char file[255];
  9.  
  10. printf("削除するファイルの名前を入力してください: ");
  11. gets(file);
  12.  
  13. printf("本当に削除してよろしいですか?(Y/N): ");
  14. if(toupper(getche()) == 'Y'){
  15. if(remove(file)){
  16. puts("\nファイルが存在しません。");
  17. exit(1);
  18. }
  19. }
  20.  
  21. return 0;
  22. }
Add Comment
Please, Sign In to add comment