c 语言 vc 6.0版本下
文章平均质量分 68
tonyyubaohui
计算机web 嵌入式开发
展开
-
c 的 struct,没有结构体名的结构体数据类型
一直对结构体弄的模糊,今天终于有机会澄清了。有个错:不明白没有结构体名的结构体如何像结构体名一样使用。typedf struct strcut student{ {原创 2009-09-19 20:21:00 · 1655 阅读 · 0 评论 -
c 语言函数传参的三种方式及二级指针的理解
普通变量是直接传值show(int a,int b)指针变量传递地址show(int *a,int *b)引用变量是隐式传地址 1:int x;void show(int &x),实际传递的是x的地址p,但是函数内部使用x时会自动变成*p void f(int &x) {x++}; 会变成原创 2009-09-19 21:29:00 · 961 阅读 · 0 评论 -
用struct LNode *L与LinkList &L的区别
用void InitList(struct LNode *L), 函数InitList中如果改变了L指针本身的值,对其他函数无影响。用void InitList(LinkList &L),函数InitList中如果改变了L指针本身的值,也影响调用他的函数。这就是引用方式的调用特点。#include#include#includetypedef struct lnode{ int data; st原创 2009-09-19 23:52:00 · 10744 阅读 · 2 评论 -
c 语言获取系统时间和世界各时区时间
The meaning of each is:MemberMeaningRangetm_secseconds after the minute0-61*tm_minminutes after the hour0-59tm_hourhours since midnight0-23tm_mdayday of t原创 2009-09-25 02:48:00 · 1790 阅读 · 0 评论