自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(29)
  • 资源 (3)
  • 收藏
  • 关注

原创 ostringstream 用法

ofstream fp("test_with_prop_node.bvh"); ostringstream out_stream_buffer; // 分配空间 int len = 204800; char* tmp1 = new char[len]; tmp1[0] = 0; CCommonFunction::ExportBVHHeaderText(index, -1, 0

2017-11-02 17:18:40 4164

原创 c++ 代码覆盖率

使用VS 工具,gtest 测试用例查看代码覆盖率。STEP1 : 运行batch 脚本@set localFolder=D:\shary\NCLIB_ALL\bin\@set nclibFolder=\\192.168.1.110\test\NCLIB\nmc\20170918_3728@set codetrunkpath=%localFolder%/../@set VStools="E:\

2017-09-28 16:22:56 1514

原创 c++ eigen 简单用法

//for (int i = 0; i frame_count; i++)  //{  //  bool left_foot_contact = NCGetContactState(index, i, 6);  //  bool right_foot_contact = NCGetContactState(index, i, 3);  //  cout   //  if (ri

2017-09-27 17:52:49 3830

转载 hamming distance

这是在CSDN上的第一篇博客,开篇以C++的位操作的一个题目来打头阵。下面是问题描述:The Hamming distance between two integers is the number of positions at which the corresponding bits are different.Given two integers x and y, calculate the H

2017-09-26 16:49:43 206

原创 c++ Eigen 入门学习

FILE * fp = NULL;  fp = fopen("l1_check.txt", "wb+");  for (auto frames = 0; frames frame_count; frames++)  {    Eigen::Quaternionf Qsensor2NED = {      fileParse->quat_array_list[frames

2017-09-13 18:36:21 363

原创 c++ 输出到文本格式 ofstream && FILE

方法一 ofstream#define r2d 57.2958f const char * output = "output_haibo_take5.txt"; int svr_res = _access(output, 04); if (svr_res != -1) { remove(output); } ofstream outfile;

2017-09-06 10:25:21 2042

原创 c++ float 转换到string

使用 sprintf_s 来转换,代码如下: char buffer_max[20], buffer_min[20], buffer_ratio[20]; sprintf_s(buffer_max, "%f", max[i]); sprintf_s(buffer_min, "%f", min[j]); sprintf_s(buffer_r

2017-08-31 09:25:23 11488

原创 c++ 学习memcpy 在各种情况下的使用

欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl

2017-08-25 15:13:28 3429 1

原创 VS 配置 *.h,*.lib,*.dll

1.*.h: headera. 路径:属性->  VC++ 目录 -> 库目录b. 文件:在代码中添加: 如: #include <iostream> 2. *.lib: library, SDK 库a. 路径: 属性->  VC++ 目录-> 库目录 b. 文件: 属性->  链接器 -> 附加依赖项  3. *...

2017-05-12 13:19:34 104

原创 VS 预定义常量_WIN32,WIN32,_WIN64

Refer to:http://fenying.blog.163.com/blog/static/1020559932013725111743857 1. Win32在 Win32 配置下,WIN32 在“项目属性-C/C++-预处理器-预处理器定义”里声明了。而在 x64 配置下,这个常量并不在项目预定义列表中。这是否说明可以根据 WIN32 来判断是否在 x64 平台呢...

2017-05-12 11:18:04 1560

原创 VS 缩进和对齐

缩进(indentation)和对齐(alignment)1. [CTRL] +[R] +[W] 来显示本不可见的字符如,Tab或空格2. 如果不想用tab 键来作为缩进符,想用空格,则可按照如下操作来进行修改: 工具-> 选项 -> 文本编辑器 -> C/C++ -> 制表符 -> 插入空格 (制表符大小 4, 缩进大小 4) 如图。...

2017-05-09 09:47:12 4680

原创 c++ 回调函数

Reference to: http://blog.csdn.net/kkk0526/article/details/17122081 回调函数(1)概念:回调函数,顾名思义,就是使用者自己定义一个函数,使用者自己实现这个函数的程序内容,然后把这个函数作为参数传入别人(或系统)的函数中,由别人(或系统)的函数在运行时来调用的函数。函数是你实现的,但由别人(或系统)的函数在运行时...

2017-05-09 09:42:12 178

原创 VS 监视使用

VS 监视使用 下面有个“监视1” 可以用来监视程序的正确性。 1. 一维数组 比如有一个double h[9],如果选择监视,那么就只会监视h[0],如果想监视其他元素,难道只能h[1]、h[2]一个个的添加吗? 当然不需要,在监视中输入h,9就可以了 2. 二维数组 如: float** bvh_position_;监视: bvh_position_[0],180表示...

2017-03-14 15:15:13 1871

原创 c++ 'fopen': This function or variable may be unsafe. 解决办法

main函数调用:[code="c++"] string filePath = "a.txt"; learn_fseek(filePath.c_str(), 9, SEEK_SET);[/code] 函数:[code="c++"]void learn_fseek(const char* filePath, long int offset, int origin)...

2017-01-23 17:40:50 1924

原创 VS 下环境覆盖率测试

1. 安装VS enterprise版试了。安装好后,相应的工具貌似就都装好了。 2. 开始插桩dll:这几个可执行文件都在 C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Performance Tools\x64Batch代码 收藏代码vsinstr /coverage D:\shary\V2...

2017-01-11 10:42:05 1094 5

原创 perl 将文件复制到另一个文件,不做任何改动。

最近一直都在用perl写东西,感觉perl用起来很舒服,而且规范不是那么严格,很喜欢!例子:将文件复制到另一个文件,不做任何改动。(如果有perl的问题,欢迎提问,大家一起讨论)$input  = @ARGV[0];$output = @ARGV[1];open INPUT, $input or die $!;open OUTPUT, ">$ou

2011-12-27 08:03:56 4611 1

原创 c#

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace dictionaryTest{    class Test    {        static void Main(string[] args)        {

2011-11-06 22:16:38 504 1

原创 c#

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace ConsoleApplication1{    public class Stac     {        privat

2011-11-06 20:00:13 371

原创 字符串反转

String Reverse(String input){      if (input == null)      {        System.out.println("nullargument");        return null;      }

2011-08-23 01:57:29 453

原创 java 一个int数组 长度为100 随机生成100个数 即1-100 将其插入进数组 插入的数字不能重复

一维数组的声明:1. int array[];     //array是指向int的指针,初始值为null2. int[] array;     //array是指向int的指针,初始值为null3. int[] array = new int[n];  //n可以是

2011-08-23 01:10:24 13226

原创 计算机 翻译 英文 笔试题

翻译:无论使用哪种类型的数组,数组标识符其实只是一个引用,指向在堆中创建的一个真实的对象,这个(数组)对象可以保存指向其他对象的引用。可以作为数组初始化语法的一部分来隐式的创建此对象或者用new表达式显示的创建,只读成员length是数组对象的一部分(事实上,这是唯一一个可以

2011-08-18 17:36:50 2430

原创 mysql 函数 相关应用 实例(笔试题) (1)

创建表 td_user(userid,name,sex) ,td_check(userid, workhours, closinghours),表td_user表示员工表,td_check表表示上班、下班考勤表,其中workhours表示上班时间,closinghours表示下班

2011-08-18 00:37:21 622

原创 queue vector 简单 区别

Collection->List->LinkedList                             ->ArrayList                             ->Vector->Stack1.Queue是一个接口,LinkedLis

2011-08-11 15:22:15 6716

原创 单词反转 eg. Welcome to my house!-> emoclew ot ym esuoh!

在不使用reverse()方法的情况下,将逐个单词反转 并打印出空格或标点:public String Revert(String str){if(str==null){return null;}else{Str

2011-08-11 13:46:38 633

原创 ASCII表

0011000149311 0011001050322 0011001151333 0011010052344

2011-08-11 11:11:58 348

原创 spring RowMapper回调接口的使用 以及jdbc模板提供的queryfor系列的方法摘要

<br /> <br />public void queryFor() throws Exception {<br />StringBuilder sql=new StringBuilder()<br />.append("select pid,pname,psex,pnationality,phobby,pdescription from person where pid=?")<br />;<br />Object args[]={12};<br /><br />Person p=(Person)thi

2010-12-08 12:31:00 2210

原创 spring RowMapper回调接口 以及queryFor系列摘要

<br /><br />public void queryFor() throws Exception {<br />StringBuilder sql=new StringBuilder()<br />.append("select pid,pname,psex,pnationality,phobby,pdescription from person where pid=?")<br />;<br />Object args[]={12};<br /><br />Person p=(Person)this

2010-12-08 11:31:00 1942

原创 spring 配置数据库连接池

<br /><br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><beans<br /> xmlns="http://www.springframework.org/schema/beans"<br /> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br /> xsi:schemaLocation="http://www.springframework.org/schema/beans

2010-12-08 10:11:00 628

原创 数据结构链表 -- 查找倒数第N个元素、中间元素、创建链表

#includeusing namespace std; typedef int Status;typedef int ElemType;#define OK 1#define ERROR 0#define MAXSIZE 100 typede

2010-12-07 15:43:00 966 2

spring 简单应用

spring 简单应用 通过接口 降低耦合度

2010-12-07

数据结构 链表 查找倒数第N个节点的值 查找中间节点的值

初始化并建立单链表 遍历链表数据 查找倒数第N个数据 查找中间数据

2010-12-07

loadrunner web测试用例

这是比较简单的LoadRunner的web测试报告 可以为初学者做个参考 我本身也是刚开始应用的

2010-07-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除