我有這段代碼。我想要做的是等待用戶按'q'結束程序。 .
...starting few threads, which use fflush(stdout) (just saying...)
.
char n = 0;
while (n != 'q') {
n = getchar(); //tried to use scanf() here as well
printf
我有以下程序: #include <stdio.h>
#include <stdbool.h>
#define MAX 100
//a)
bool isPalyndrom(char c[], int cnt) {
int i;
char pal[MAX];
int j = 0;
for (i = cnt - 1; i >= 0; i++) {