上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 31 下一页
摘要: https://blog.csdn.net/syyyy712/article/details/80212551 总结: 要求内存对齐; 遵循原则: 1)最小的字节倍数是4,即如果没有比4个字节更大的类型; 2)sizeof(T)大小是T中最大类型的倍数,比如double的8倍; 3)当出现字节数更大 阅读全文
posted @ 2019-04-10 11:15 kuaqi 阅读(1327) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/Vincent-Bryan/p/6925639.html 1、从文件夹读入数据,并赋值给局部变量,再写入文件夹; 1) fscanf_s & fprintf 2) scanf_s 阅读全文
posted @ 2019-04-08 23:09 kuaqi 阅读(285) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/zhaoshuai1215/p/3448154.html 1、插入排序 遍历数组,遍历到i时,a0,a1...ai-1是已经排好序的,取出ai,从ai-1开始向前和每个比较大小;如果ai小于ai-1,则将ai-1移动到ai位置(从小到大排序),继续将a 阅读全文
posted @ 2019-03-28 22:31 kuaqi 阅读(165) 评论(0) 推荐(0)
摘要: 1、算法不能执行容器的操作,即不能删除容器的元素; //如果需要对某个vector元素进行排序,并删除重复元素,则需要sort()+unique()+erase(); 阅读全文
posted @ 2019-03-25 18:17 kuaqi 阅读(122) 评论(0) 推荐(0)
摘要: string、char[]、char*、const char* 相互转换 https://blog.csdn.net/ksws0292756/article/details/79432329【 4 - 14 】 (1).string => const char* 较直接 const char* co 阅读全文
posted @ 2019-03-24 17:37 kuaqi 阅读(996) 评论(0) 推荐(0)
摘要: https://baike.baidu.com/item/sizeof/6349467?fr=aladdin https://blog.csdn.net/u012520854/article/details/53511154 对 sizeof() 的处理都是在编译阶段进行; 在 C 语言中,size 阅读全文
posted @ 2019-03-06 22:27 kuaqi 阅读(319) 评论(0) 推荐(0)
摘要: 通用: insert: 在给定位置之前插入元素;返回新插入的元素的迭代器位置; forward_list容器 erase_after首前元素后,会自动将该迭代器指向下一个元素,也就是说,不用手动改变首前元素的迭代器指向; prev=flst.before_begin(); curr=flst.beg 阅读全文
posted @ 2019-03-03 15:28 kuaqi 阅读(145) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/wangshubo1989/article/details/52806027 http://www.cnblogs.com/zhouxiaosong/p/5557990.html 阅读全文
posted @ 2019-03-02 22:27 kuaqi 阅读(77) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/qq_37059136/article/details/80278742 他们三个都是将格式化字符串输出,区别就是他们输出的目标不一样. (1)printf,是把格式化字符串输出到标准输出(一般是屏幕). printf()是C语言标准库函数,用于将格式化后 阅读全文
posted @ 2019-03-02 14:24 kuaqi 阅读(809) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/Gnewocean/article/details/83793744 https://blog.csdn.net/ricky_lyq/article/details/77863527 https://blog.csdn.net/louyijie/artic 阅读全文
posted @ 2019-03-02 14:11 kuaqi 阅读(150) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 31 下一页