[求助]结构体中int变量能这样使用吗?
#include <stdio.h>struct test
{
int t;
};
void in(struct test *p)
{
scanf("%d",p->t); //这里正确吗?望大神指点
}
int main(void)
{
struct test p;
in(&p);
printf("%c",p.t);
return 0;
}
2013-03-09 12:37
2013-03-09 12:45
2013-03-09 12:46
2楼正解
2013-03-11 19:58
2013-03-11 20:13
2013-03-11 21:01
2013-03-12 23:00
2013-03-14 01:50

2013-03-14 08:16