Chinaunix首页 | 论坛 | 博客
  • 博客访问: 392369
  • 博文数量: 103
  • 博客积分: 3073
  • 博客等级: 中校
  • 技术积分: 1078
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-23 15:04
文章分类

全部博文(103)

文章存档

2012年(13)

2011年(76)

2010年(14)

分类: LINUX

2011-07-21 14:18:14

  1. 1 #include <stdio.h>
  2.   2
  3.   3 struct coo
  4.   4 {
  5.   5 int x;
  6.   6 int y;
  7.   7 };
  8.   8 void assign(struct coo A)
  9.   9 {
  10.  10 A.x=2;
  11.  11 A.y=2;
  12.  12 }
  13.  13 int main()
  14.  14 {
  15.  15 struct coo loc;
  16.  16 loc.x=1;
  17.  17 loc.y=1;
  18.  18 assign(loc);
  19.  19
  20.  20 printf("%d,%d\n",loc.x,loc.y);
  21.  21 return 0;
  22.  22 }
1,1
阅读(544) | 评论(0) | 转发(0) |
0

上一篇:shell read

下一篇:rpm 的使用

给主人留下些什么吧!~~