我不能将输入值赋值给bj。例如,当我输入756时,我希望得到的是UTC at the same time: 2356,但是计算机给了我UTC at the same time: 1600。#include <stdio.h>{ scanf("Input a BJT: %d", &bj);
if(bj>=0&&bj<=2359&
它工作了一段时间,但突然scanf停止了工作。我基本上想读入一个整数值,并输出输入的内容。无论我输入的是哪一个整数,程序都会输出0。我已经尝试了建议,但都不起作用。#include <stdio.h>
int numberOfElements = 0;
scanf("Number of elements: %d",&numberOfElements