70,018
社区成员




#include <stdio.h>
int main(void)
{
char c1, c2;
scanf_s("%c,%c", &c1, &c2); //想不通啊 我这边写得有问题吗?为什么debug的时候会报内存错误?
printf("%c%c", c1, c2);
getchar();
getchar();
return 0;
}
double number1 = 0.0;
double number2 = 0.0;
char operation = 0;
printf_s("\nEnter the calculation\n");
scanf_s("%lf %c %lf", &number1, &operation, 1, &number2);
在调用时,必须提供一个数字以表明最多读取多少位字符。