Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- struct file{
- char nombre[100];
- char contenido[100];
- };
- struct file file;
- int filecrear(){
- printf("archivo a crear: ");
- scanf("%c",file.nombre);
- }
- int main(){
- char buf[30];
- scanf("%c",buf);
- if(strcmp(buf,"crear")==0);filecrear();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement