Guest User

Untitled

a guest
Jan 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. #include <iostream.h>
  2. #include <conio.h>
  3. #include<stdio.h>
  4. #include<io.h>
  5. #include<dos.h>
  6. #include<stdlib.h>
  7. #include<dir.h>
  8. #include<direct.h>
  9. main()
  10. {
  11. clrscr();
  12.  
  13. int y=15;
  14.     struct find_t f;
  15.     register int done;
  16.  
  17.     done=_dos_findfirst("*.c", _A_NORMAL, &f);
  18.     while(!done)
  19.     {
  20.  
  21.     gotoxy(15,13);
  22.     printf("Filename:");
  23.     gotoxy(15,y);
  24.     printf("%s",f.name);
  25.     gotoxy(30,13);
  26.     printf("Size:");
  27.     gotoxy(30,y);
  28.     printf("%ld", f.size);
  29.     done=_dos_findnext(&f);
  30.     y=y+1;
  31.  
  32. getch();
  33. return 0;
  34.  
  35. }
Add Comment
Please, Sign In to add comment