i want ur help! thanx!
i'm a beginner in c field, and i meet a problem i can't understand why and how to occur that.
my code as follow:
#include <iostream.h>
#include <stdio.h>
void main()
{
int a;
scanf("%d\n", &a);
printf("wut u get from the console is: %d", a);
}
when i add '\n' in scanf function as you see before, it can't work as i hope. why? and how? thanx!
|