Linguagem C - while(strcmp(s, "Sair"));

Linguagem C - while(strcmp(s, "Sair"));
 1 #include "resource.h"
 2  #include <stdlib.h>
 3  #include <stdio.h>
 4  #include <string.h>
 5  
 6  int main() {
 7      system("title strcmp");
 8  
 9      char *p1, s[80];
10      do {
11          p1 = s;
12          gets(s);
13          while(*p1)
14              printf("%c", *p1++);
15          printf("\n");
16      } while(strcmp(s, "Sair"));
17  
18      system("pause");
19      return 0;
20  }

Comentários