码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
eclipse+CDT调试segmentation fault错误
先来看两段代码-- 错误代码: #include "string.h" #include #include void test(char ** dest, char * src, int n) { (*dest) = (char*) malloc(sizeof(char) * n); strcpy(*dest, src); } int main(int argc, char** a...
分类:系统相关   时间:2015-06-13 17:10:41    阅读次数:211
笔记:《C++ Primer》第3章
关键字:标准库类型1、标准库string类型中,用getline函数读取整行文本。它只要遇到换行符,即使它是输入的第一个字符,getline也将停止读入并返回。getline接受两个参数:一个输入流对象,一个string对象。如下:int main(){ string line; while(get...
分类:编程语言   时间:2015-06-13 17:02:46    阅读次数:119
今天看刘汝佳的书,用面向对象的重载用算符打大数,自己也打了篇
#include #include#include#includeusing namespace std;#define maxn 1002struct bign { int len,s[maxn];bign (){ memset(s,0,sizeof(s)); len=1;} string str...
分类:其他好文   时间:2015-06-13 17:02:18    阅读次数:91
c数据结构链式存储-静态链表
#include "string.h"#include "ctype.h" #include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h"#define OK...
分类:其他好文   时间:2015-06-13 16:56:34    阅读次数:134
c数据结构链式存储
#include "stdafx.h"#include "stdio.h" #include "string.h"#include "ctype.h" #include "stdlib.h" #include "io.h" #include "math.h" #include...
分类:其他好文   时间:2015-06-13 15:41:06    阅读次数:117
shell中常用的特殊符号
在shell中常用的特殊符号罗列如下:#;;;.,/\'string'|!$${}$?$$$*"string"***?:^$#$@`command`{}[][[]]()(())||&&{xx,yy,zz,...}~~+~-&\+-%===!=# 井号 (comments)这几乎是个满场都有的符号,除...
分类:系统相关   时间:2015-06-13 15:37:54    阅读次数:189
鸟哥的linux私房菜学习笔记 ---第7章-2
1,文件内容查阅的命令: cat ,tac nl,more, less,head,tail ,od 文件的查阅参数,显示行号如何显示行号 nl 中的所有参数都是关于如何显示行号的 这里面less的功能更多,更灵活 :空格 下一页 pageup上一页 pagedown 下一页 /string 字符串查...
分类:系统相关   时间:2015-06-13 15:28:56    阅读次数:175
Scala Hello 示例
object ScalaDemo1 { def main(args: Array[String]) { println("Hello,world!"); }}
分类:其他好文   时间:2015-06-13 15:28:17    阅读次数:88
[LeetCode] Generate Parentheses
Well, there are two ways to add a open or close parenthesis to the current string.If number of(is less thann, you can add(;If number of)is less than n...
分类:其他好文   时间:2015-06-13 15:27:17    阅读次数:77
String与StringBuffer的区别
String: ?? ? ? ? ?是对象不是原始类型. ?? ? ? ? ?为不可变对象,一旦被创建,就不能修改它的值. ? ? ? ? ? 对于已经存在的String对象的修改都是重新创建一个新的对象,然后把新的值保存进去. ? ...
分类:其他好文   时间:2015-06-13 14:25:22    阅读次数:91
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!