Vous êtes sur la page 1sur 1

#include <stdio.h> #include <string.h> #include <stdlib.h> int main(int argc, char *argv []) { if (argc !

= 2) { printf("You entered wrong number of arguments\n"); return 1; } int k = atoi(argv[1]); char repeat = 'y'; char* phrase = malloc( sizeof(char*) * (140)); while (repeat == 'y') { printf("Enter the phrase you want to encrypt(maximum 140 chars): "); scanf("%c", phrase); printf("Do you want to try again? y/n: \n"); scanf("%c", &repeat); } return 0; }

Vous aimerez peut-être aussi