Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. struct file{
  5. char nombre[100];
  6. char contenido[100];
  7. };
  8. struct file file;
  9.  
  10. int filecrear(){
  11.  
  12. printf("archivo a crear:  ");
  13.  
  14. scanf("%c",file.nombre);
  15. }
  16.  
  17. int main(){
  18.  
  19.  
  20. char buf[30];
  21. scanf("%c",buf);
  22.  
  23. if(strcmp(buf,"crear")==0);filecrear();
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement