
c++
文章平均质量分 67
fffupeng
只要你努力微笑,命运也会惧怕你的獠牙。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Longest Common Prefix
#include "stdafx.h"#include#include#includeusing namespace std;string Longest_Common_Prefix(vector strs){ if (strs.empty()) return ""; int L = strs.size();//容器的长度 //寻找到最短的str的位置 int min_L原创 2016-10-11 12:58:36 · 302 阅读 · 0 评论 -
cuda编程1 cuda安装以及实例分析
2017年1月18日19:37:47参考http://www.cnblogs.com/xing901022/p/3248469.html1、下载cuda toolkithttps://developer.nvidia.com/cuda-downloads2、配置cuda的环境变量,不需要配置,自动添加3、cuda的安装成功与否的监测cd C:\Pro原创 2017-01-19 12:35:11 · 3083 阅读 · 0 评论 -
c++存储区域
2017/06/24 23:14 五大内存分区 在C++中,内存分成5个区,他们分别是堆、栈、自由存储区、全局/静态存储区和常量存储区。 栈,就是那些由编译器在需要的时候分配,在不需要的时候自动清楚的变量的存储区。里面的变量通常是局部变量、函数参数等。 堆,就是那些由new分配的内存块,他们的释放编译器不去管,由我们的应用程序去控制,一般一个new就要对应一个delete。原创 2017-06-24 23:18:26 · 394 阅读 · 0 评论 -
fast rcnn 安装 demo测试
软件需求:已经安装过caffe和pycaffe,也就是# In your Makefile.config, make sure to have this line uncommentedWITH_PYTHON_LAYER := 1硬件需求:CaffeNet, VGG_CNN_M_1024 这样的小型网络需要至少3g的显存VGG16 需要约11g显存,推荐k40原创 2017-02-14 10:39:48 · 676 阅读 · 0 评论 -
linux下执行shell 命令
#includeint main(){ FILE *fp; char buffer[80]; fp = popen("~/Documents/darknet/test.sh","r"); fgets(buffer,sizeof(buffer),fp); printf("%s",buffer); pclose(fp);}注意如果出现t原创 2016-12-24 18:12:55 · 609 阅读 · 0 评论 -
Generate Parentheses
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.class Solution {public: vector res; void generate(string tmp,int L,int R) {原创 2016-11-14 22:02:25 · 225 阅读 · 0 评论 -
Valid Parentheses
Given a string containing just the characters '(', ')','{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()" and "()[]{}" are all valid b原创 2016-10-31 12:31:58 · 223 阅读 · 0 评论 -
3Sum Closest
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exactly原创 2016-10-20 12:55:05 · 236 阅读 · 0 评论 -
c++容器比较以及用法
顺序性容器:顺序性容器高效率低效率操作vector查找插入、删除push_back(),pop_back()list插入、删除查找push_back(),pop_back() ,push_front(),pop_front()deque两段元素的删除插入 push_back(),pop_原创 2016-10-29 11:07:45 · 470 阅读 · 0 评论 -
Letter Combinations of a Phone Number
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephone buttons) is given below.class Solution {publi原创 2016-10-28 15:40:18 · 196 阅读 · 0 评论 -
window caffe生成文件列表程序
c++ 读取文件夹下所有的图片文件,并将图片的名称保存到txt中// test_file.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include#include#include#include#include#includeusing namespace std;void getFiles(string path, vect原创 2016-10-03 16:41:18 · 406 阅读 · 0 评论 -
c++指针复习
// test.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#includeusing namespace std;class Node{public: int node; Node* next; Node(int i) :node(i), next(0){}};Node* create(int i, Node* &head)/原创 2016-10-25 21:46:55 · 392 阅读 · 0 评论 -
Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists./** * Definition for singly-linked list. * struct ListN原创 2016-11-06 10:18:13 · 222 阅读 · 0 评论 -
yolo训练数据
自己数据的训练难点两个:第一数据集的采集标注,第二相关文件的改动,至于最后的训练也大同小异。第一点数据集的标注:使用linux下数据标注工具BBox,这时由python写的,所以需要安装好anaconda,BBox具体的使用方法就不再具体讲了,这可以百度。BBox生成的文件格式:linesx1 y1 x2 y1x3 y3 x4 y4...第一行的数据是总共参原创 2016-10-24 13:29:55 · 2751 阅读 · 5 评论 -
多核多线程基础
cpu:编译器将c程序转换为汇编代码,编译器选项和开关影响编译器的工作c++程序--->编译器----->汇编代码----->汇编器-------->处理器本地语言内存:典型cpu仅对保存在寄存器中的数据进行操作。cpu注:在二级存储器中保存的数据和指令必须通过io通道或者总线才能到达RAM。到达RAM后通过系统总线到达L1cache。总线: 计算机原创 2016-09-27 19:57:13 · 658 阅读 · 0 评论 -
yolo测试代码梳理
darknet.c首先就是各种头文件/////////////////////////////////////#include #include #include #include "parser.h"#include "utils.h"#include "cuda.h"#include "blas.h"#include "connected_layer.h"#ifdef原创 2016-11-22 21:09:21 · 3675 阅读 · 1 评论