getchar ();与getch ();的用法?
#include "stdio.h"
int main(void)
{
int i = 0;
char a[] = "abm", b[] = "aqid", c[10];
while (a[i] != '\0' && b[i] != '\0')
{
if (a[i] >= b[i])
c[i] = a[i] - 32;
else
c[i] = b[i] - 32;
++i;
}
c[i] = '\0';
puts (c);
getchar ();// 为什么使用getch (),在DEV C++中会报语法错误?
return 0;
}