Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5698314
  • 博文数量: 675
  • 博客积分: 20301
  • 博客等级: 上将
  • 技术积分: 7671
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-31 16:15
文章分类

全部博文(675)

文章存档

2012年(1)

2011年(20)

2010年(14)

2009年(63)

2008年(118)

2007年(141)

2006年(318)

分类: C/C++

2008-12-24 11:04:59

汗一下,以前只用过结构体之间赋值,现在可以传参数和做返回值了。
------------------------------------------------------------------------------
C89 !
C allows three operations on whole structures.

Assignment of whole structures:

s1 = s2; /* s1 and s2 are structures of the same type */

Passing a whole structure to a function:

f(s1);

Returning a whole structure from a function:

s1 = f(s2);

No other operations are allowed, including testing whole structures for equality.
阅读(1440) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~