0
I downloaded the sublime text, and set it to program in c, but the scanf doesn’t work, it shows the variable value, I can’t type.
#include <stdio.h>
void main()
{
int x; scanf("%d", &x);
printf("%d", x);
}
I can’t type.
2147323904[Finished in 1.1s with exit code 10]
Put your code in C. That’s not Sublime’s problem.
– StillBuggin
To understand where the problem really occurs: http://answall.com/a/101703/101. This code has no problem.
– Maniero
Exclude my question.
– dilma
Try to use
int
instead ofvoid
when calling the global functionmain()
– StillBuggin