- 浏览: 439985 次
- 性别:
- 来自: 广州
文章分类
- 全部博客 (538)
- C/C++ Primer (69)
- Objective-C Primer (102)
- Python Primer (19)
- JavaScript Primer (1)
- Java Primer (37)
- PHP Primer (17)
- 泛 Linux (37)
- Shell Script (21)
- APUE (21)
- UNP__1&2 (19)
- NetWork (7)
- Oracle周边 (38)
- Mysql里边 (6)
- Windows技 (9)
- 简单算法 & 数据结构 (14)
- 设计模式 (6)
- GTK历程 (12)
- 工具使用 (25)
- 杂事 (23)
- 一些概念 (17)
- Web方面 (10)
- myCodeTools (9)
- ^未 竟$ (13)
- 硬件通信 (2)
- Games (1)
最新评论
#include <stdio.h> int main(int argc, char *argv[]) { //// 指向常量区了 // char* str = "Hello, world\n"; // *(str+2) = 'A'; // printf("%s",str); // //----------------------------------------------------- //// 字符指针正确使用方法 // char* str = malloc(50); // strcpy(str, "Hello, world\n"); // *(str+2) = 'A'; // printf("\n%s",str); //----------------------------------------------------- //// 数组初始化、赋值,和第一个不同的 // char str[] = "Hello, world\n"; // str[2] = 'K'; // printf("%s",str); // return 0; }
发表评论
-
float equal
2013-05-23 18:21 779- (BOOL)floatA:(float)f1 equalB ... -
C++序列化
2012-07-12 09:51 536http://hi.baidu.com/ewook/item/ ... -
C++著名内裤
2011-12-02 14:00 7701、C++各大有名库的介绍 ... -
C++写C
2011-09-06 17:23 588在C++中写C,标准头文件写法 #ifndef __AB ... -
errno.h
2011-05-05 14:27 649#define EPERM 1 ... -
__cplusplus
2011-04-21 15:09 703http://www.cnblogs.com/stonecra ... -
Pthread__常用
2011-04-21 11:46 809http://blogold.chinaunix.net/u/ ... -
常用预编译
2011-04-21 10:32 611#if defined(WIN32) || defined ... -
C++__容器
2011-04-18 10:16 521http://apps.hi.baidu.com/share/ ... -
C++模板
2011-03-29 14:27 595内容主要来至《钱能C++程序设计教程》&《C++ Pr ... -
交叉引用、前置声明
2011-03-02 09:40 771有两个类相互引用了,编译器报错。 原因是两个类交叉引用: A ... -
typedef的四个用途和两个陷阱
2010-12-14 12:34 611http://hi.baidu.com/changfeng01 ... -
第五届开源小组招新题目
2010-12-03 21:56 703这是学校的开源小组招新题。 08年时我是第二届的组长,不知不觉 ... -
string const char*
2010-12-02 16:13 734http://topic.csdn.net/u/2008092 ... -
CPP Container
2010-11-10 09:20 650延后整理。。。 -
C语言运算符优先级
2010-11-02 17:45 741优先级 运算符 ... -
point point
2010-11-02 17:23 582http://learn.akae.cn/media/ch23 ... -
位运算
2010-11-01 11:33 749千百年来,位运算始终没出现在我写的代码里,今天终于出现了。 ... -
Unix环境下操作特大文件
2010-11-01 11:03 568http://hi.baidu.com/jiangfeng11 ... -
GCC在C语言中内嵌汇编
2010-10-22 14:48 1331http://hi.baidu.com/liu_bin0101 ...
相关推荐
void deal_point(char c){//用来处理小数部分 int temp=i; if(isdigit(c)!=0)//是数值字符时 deal_integer(c); else { error(); //错误处理程序 deal();//处理函数主体 } j=i-temp;//记录十进制小数...
PCB_point_init(); while(1) { reset_this(freelist); reset_this(runlist); reset_this(runablelist); reset_this(blocklist); draw_PCB_point(freelist) ; draw_PCB_point(runlist) ; draw_PCB_point...
string,CString,char*之间的转化 int 转 CString:CString.Format(“%d”,int);………………………….string 转 CString CString.format(“%s”, string.c_str()); 用c_str()确实比data()要好.... strtest=charpoint
extern "C" int __stdcall ZSY3DGetPickerPoint(float *point); //******** vtk保存3D图文件为ply ********// extern "C" int __stdcall ZSY3DSaveFileOfPLY(char *file_dir); //******** vtk保存3D图文件为obj **...
int c_math[10],c_en[10],c_computer[10],point[10],average[10]; int i,j,max; char c; void input() { for(i=0;i;i++) /*输入学生成绩*/ { printf("请输入学号:"); scanf("%s",&stu_no[i]); printf("\n...
void sign_point(int *p1,int *p2,char (*p3)[20]); while(1){ //sign();//没有使用指针 //p=name; sign_point(number,sign_times,name);//使用指针 } } void sign(){ scanf("%d",&num); for(i=0;i;i+
霍夫曼编码 c++ // huffman.cpp : Defines the entry point for the ... char c; int flag; float prob; vector<char> hcode; /* bool operator (const struct _HUFF &m) const { return prob ; } */ }HUFF;
d) 因为数字全部使用的是double,键入的数字必须通过一定的处理达到累加的效果,加上小数和整数的处理差异性大,所以分别用point_flag来判断,分别出来小数和整数。 5. 成员函数及其释义 因为对OnNum0()到OnNum9()...
// device.cpp : Defines the entry point for the console application. 什么时候不能删除设备 // //#include "stdafx.h" #include "stdio.h" #include "stdlib.h" #include "string.h" #include "iostream.h" /...
POINT_COLOR=RED; LCD_ShowString(30,50,200,16,16,"Explorer STM32F4"); LCD_ShowString(30,70,200,16,16,"DS18B20 TEST"); LCD_ShowString(30,90,200,16,16,"ATOM@ALIENTEK"); LCD_ShowString(30,110,200,...
_export int xls_write_str(int fileID, int sheetID, int crow, int ccol, char* value); _export int xls_write_dbl(int fileID, int sheetID, int crow, int ccol, double value); _export int xls_write_int(int...
static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CAboutDlg dialog used for App About int focus=0,point1=0,point2=0,i=0,j=0; ...
本文实例讲述了C语言内嵌汇编API内存搜索引擎的方法,分享给大家供大家参考。具体实现方法如下: 代码如下:// apisearchEngine.cpp : Defines the entry point for the console application. // #include ...
难道在C语言中一个结构不能包含指向自己的指针吗? o 2.7 怎样建立和理解非常复杂的声明?例如定义一个包含 N 个指向返回指向字符的指针的函数的指针的数组? o 2.8 函数只定义了一次, 调用了一次, 但编译器提示...
《你必须知道的495个C语言问题》结构清晰,讲解透彻,是各高校相关专业C语言课程很好的教学参考书,也是各层次C程序员的优秀实践指南。 -----------------------------------------------------------------------...
CPoint point; // TODO: Add extra initialization here m_pictype.SetWindowText("16貫廬꽈"); PICTYPE=5; m_PicHigh=220; m_PicWidth=176; PicHigh=220; PicWidth=176; UpdateData(false); STEPX=...
point0: clrscr(); puts("===================================="); /* 系统界面 */ puts("| Welcome to ATM System! |"); puts("| Please select choise. |"); puts("| 1. Create a account. |"); /* 1 创建帐号 */...
} int word(char c) {if(c>'a'&&c<'z' "" c>'A'&&c) return 1; else return 0; } int longest(char string[]) {int len=0,length=0,flag=1,place=0,point,i; for(i=0;i(string);i++) if(word(string[i])) if(flag) ...
POINT *lpMyStack; LONG ElementsNum; LONG ptr; }MYSTACK; //macro definition #define WIDTHBYTES(i) ((i+31)/32*4) #define PI 3.1415926535 //function declaration int PASCAL WinMain ...
void errorfl(int errorcode, char *filename_malloc, int linenumber_malloc, char *filename_free, int linenumber_free); This is the same as the error(), except there are two sets of filenames and line ...