Printf and scanf
Mar 3, 2013 at 8:35pm
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);
|
Mar 4, 2013 at 6:26am
So you need your code to display 2013 and put 2013 to test.variable?
Topic archived. No new replies allowed.