C++
文章平均质量分 78
qq_18877429
这个作者很懒,什么都没留下…
展开
-
C/C++字符串,指针
区别处理c语言中char ,char* ,char** ,char *[], char =‘h'字符 char* a=“Hello world" char** b=&a;//**b=H,指针的指针 char* arr[10]={"123","hello"};//数组里存放指针 1.结尾字符串的值为0x00//0 2.空格字符串的值为’ ‘//空格字符 #include #inclu翻译 2015-04-24 12:37:25 · 388 阅读 · 0 评论 -
C/C++基本字符串操作
C基本字符串操作翻译 2015-04-16 16:40:18 · 308 阅读 · 0 评论 -
C++文件读写
#include #include //读写操作,对打开的文件可进行读写操作 #include //c++风格字符串 #include //c风格字符串 //#include 文件读操作,存储设备读区到内存中 //#include 文件写操作 内存写入存储设备 using namespace std; int main() { //===============原创 2015-04-16 14:08:18 · 317 阅读 · 0 评论 -
运算符重载详解
http://blog.chinaunix.net/uid-21411227-id-1826759.html转载 2015-04-21 12:59:58 · 358 阅读 · 0 评论 -
C++ && makefile
本文用到三个文件,./src/mian.cpp ; ./test.h ./makefile 1../test.h #ifndef TEST_H #define TEST_H #include #include using namespace std; enum gender{male,fmale,couple}; class Person{ string name; enum ge原创 2015-04-21 17:51:39 · 401 阅读 · 0 评论