C语言
文章平均质量分 57
Toki_Leung
我只是一个小菜鸟,渴望有一天变成大神。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C语言中对象的点与箭头(指针)的区别
在c++中I如果是对象,就可以通过"."来调用I中的成员变量。如果I是指针的话,就不能通过"."来调用,而只能使用"->"来调用。在C语言中不存在对象的概念。这种情况的出现是因为使用了结构,例如struct CandyBar{float weight;int calorie;};在程序中CandyBar snack={2.3,350};我们就可以转载 2016-08-15 19:08:54 · 7775 阅读 · 0 评论 -
malloc和free的具体用法举例
#include #include #include //定义一个人开始没车,后来买车struct Car{char maker[16];//制造商int price;//价格};struct Citizen{char name[32];//姓名int deposite;//存款Car* car;//NULL表示没车,如果不用指针原创 2016-08-16 09:07:36 · 601 阅读 · 0 评论 -
C语言”位“操作
// 位操作 //C语言是介于高级语言(面向对象语言)和 //低级语(汇编语言)之间的一种语言原创 2016-08-04 21:54:08 · 314 阅读 · 0 评论 -
C语言"文件处理"
// 文件操作1.cpp : Defines the entry point for the console application. //include “stdafx.h”void filePutc(); void fileGetc(); void filePuts(); void fileGets(); void fileWrite(); void fileRead();int m原创 2016-08-05 22:16:37 · 367 阅读 · 0 评论 -
时间函数
#include #include #include time_t convert(int year,int month,int day,int hour,int minute,int second){tm info={0};info.tm_year=year-1900;info.tm_mon=month-1;info.tm_mday=day;i原创 2016-08-17 23:09:21 · 316 阅读 · 0 评论
分享