Guest User

Untitled

a guest
Jan 19th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 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 c=15;
  14.     struct ffblk d;
  15.     register int fin;
  16.  
  17.     fin=findfirst("*.c",&d,0);
  18.     while(!fin)
  19.     {
  20.  
  21.     gotoxy(15,13);
  22.     printf("Filename:");
  23.     gotoxy(15,c);
  24.     printf("%s",d.ff_name);
  25.     gotoxy(30,13);
  26.     printf("Attribute:");
  27.     gotoxy(30,c);
  28.     printf("%s", d.ff_attrib);
  29.     fin=findnext(&d);
  30.     c=c+1;
  31.     }
  32.  
  33. getch();
  34. return 0;
  35.  
  36. }
Add Comment
Please, Sign In to add comment