Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- int main()
- {
- char *command;
- printf("> ");
- scanf("%sn", &command);
- if (command == "qewr") {
- printf("programm");
- }
- getch();
- return 0;
- }
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- int main()
- {
- char *command;
- printf("> ");
- command = "qewr";
- if (command == "qewr") {
- printf("programm");
- }
- getch();
- return 0;
- }
- char *command;
- scanf("%sn", &command);
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <conio.h>
- int main()
- {
- char command[128];
- printf("> ");
- fgets(command,128,stdin);
- if (command[strlen(command)-1] == 'n')
- command[strlen(command)-1] = 0;
- if (strcmp(command,"qewr") == 0)
- {
- printf("programmn");
- }
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement