Printf and scanf

hello,

how can i write a value on the console and not typing on it and scanf take it to my variable?

Here is what i have now (not working):


1
2
3
4
5
6
7
8
9

typedef struct _testtruct{
	UINT variable;
}testtruct;


printf("Enter value: "); 
printf("2013");
scanf("%d", &test.variable);
So you need your code to display 2013 and put 2013 to test.variable?
Topic archived. No new replies allowed.