![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
软件编程(C/C++/JAVA)
文章平均质量分 84
zlcnup
这个作者很懒,什么都没留下…
展开
-
atoi和itoa函数的实现方法
//atoi的实现#includeusing namespace std;int atio1(char *s){int sign=1,num=0; if(*s=='-') sign=-1; s++; while((*s)!='\0') { num=num*10+(*s-'0'); s++; }转载 2015-07-09 09:54:22 · 655 阅读 · 0 评论 -
WPF: 把引用的dll移动到自定义路径
需求:有A.exe和B.exe, 都引用了 C.dll, output路径都是 W:\Debug. A和B都添加了对C的引用,正常情况下C会被复制到 output 里面。 C这样子的dll很多,不想把它们和exe放在同一级的目录,移动到子目录,如W:\Debug\3rdDll 办法:1. 首先设置C.dll 打开Project A的Reference转载 2015-07-09 10:05:00 · 1811 阅读 · 0 评论 -
Standard - C 标准函数库
C语言标准头 断言定义 assert 调试宏。 字符类测试包含有关字符分类及转换的名类信息(如 isalpha和toascii等) (部分)库函数抛出的错误代码定义错误代码的助记符。 浮点数运算包含有关浮点运算的一些参数和函数。 检测整型数据类型值范围专门用于检测整型数据数据类型的表达值范围。 本土化语言支持本地化设定,如本地格式时间和货币符号. 数学函数说明数学运算函数,还定了 HUGE V转载 2015-07-09 10:03:40 · 1007 阅读 · 0 评论 -
STL常用算法
非修改性序列操作(12个)循环for_each()对序列中的每个元素执行某操作查找find()在序列中找出某个值的第一次出现的位置find_if()在序列中找出符合某谓词的第一个元素find_end()在序列中找出一子序列的最后一次出现的位置转载 2015-07-09 09:50:34 · 512 阅读 · 0 评论 -
VS2015 + openCV3.1.0 + win10 64位 配置问题
VS2015的安装教程在这里不再细说,网上的详细教程很多,其实很简单,就是安装过程需要等待的时间很长,下面介绍如何安装及配置openCV3.1.0。一、openCV的下载下载链接如右OpenCV及其最新库下载地址,下载过openCV3.1.0过后,点击opencv-3.1.0.exe进行解压安装,解压后文件目录如下:二、配置环境变量 之后添加环境变量,如不知配置原创 2016-03-19 19:27:02 · 2085 阅读 · 1 评论 -
C/C++标准函数库
标准 C I/Oclearerr()清除错误fclose()关闭一个文件feof()如果到达文件尾(end-of-file)返回"True"(真)ferror()检查一个文件错误fflush()书写输出缓存的内容fgetc()从流获取一个字符fgetpos()获取文件位置指针转载 2015-07-09 10:02:02 · 789 阅读 · 0 评论 -
【leetcode】9. Palindrome Number
问题描述:Determine whether an integer is a palindrome. Do this without extra space.翻译:判断一个整数是否为回文序列,要求不要使用额外的存储空间。【c++版】class Solution {public: bool isPalindrome(int x) { }};解题答案,步骤原创 2017-06-07 10:07:11 · 311 阅读 · 0 评论 -
【leetcode】561. Array Partition I
【问题描述】Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of min(ai, bi) for all i from 1 to原创 2017-06-25 20:32:47 · 326 阅读 · 0 评论 -
【leetcode】557. Reverse Words in a String III
【问题】Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.Example 1:Input: "Let's take LeetCode co原创 2017-06-27 10:50:44 · 300 阅读 · 0 评论