原创 淺談std::move和std::forward原理

前言 本文主要整理了C++11中std::move和std::forward的原理, 這對理解C++的移動拷貝有很重的意義。 一、左值和右值 左值: 一般來說,能在內存中取得其地址, 即是左值。 右值:在內存在無取得其地址的, 即

原创 Linux命令之stty - 顯示和修改終端行設置(轉載)

用途說明 stty命令用於顯示和修改終端行設置(change and print terminal line settings)。 常用參數 stty命令不帶參數可以打印終端行設置,加上-a參數可以打印得更詳細些。 stty siz

原创 Opencv理解CV_DEFAULT宏

問題: 理解CV_DEFAULT宏定義 比如在下面函數cvCanny出現了CV_DEFAULT(3), CVAPI(void) cvCanny( const CvArr* image, CvArr* edges, double thre

原创 opencv error opening file(../.../modules/highgui/src/acp_ffmpeg_impl.hpp:545)(視頻路徑...)

環境:windows10+vs2013+opencv3.0 問題:簡單的讀取本地一個視頻(前提環境配置OK,能正確顯示圖片) (被這個問題困擾了好一會。然後發現是視頻路徑沒有添加正確) 以下是我的處理過程: 1、首先,我編譯完,然後運行

原创 Chapter.16 Templates And Generic Programming

Introduction     Both object-oriented programming (OOP) and generic programming deal with types that are not known at t

原创 Linux 文件系統實現代碼

/* * main.cpp * * */ #include <iostream> #include <stdlib.h> #include<string.h> #include<curses.h> using namespace

原创 Linux信號來源和捕獲處理以及signal函數簡介

1、信號是什麼?信號本質是什麼?      日常生活中,綠燈是一個信號,停止標牌是一個信號,裁判手勢也是一個信號。      信號本質(計算機):軟中斷信號(signal,又簡稱爲信號)用來通知進程發生了異步事件。在軟件層次上是對中斷機制

原创 Quote

Quote.h #ifndef QUOTE_H #define QUOTE_H #include <string> #include <iostream> class Quote {     friend bool oper

原创 Chapter 15. Object-Oriented Programming

An Overview The key ideas in object-oriented programming aredata abstraction,inheritance, and dynamic binding.  Using d

原创 Chapter.14 Overloaded Operations and Conversions

1.Basic Concepts What is the overloaded operator?? Overloaded operators are functions with special names: the keyword o

原创 Chapter.13 Copy Constructor

1、The Copy Constructor What is a copy constructor? When is it used? A copy constructor is a constructor which first par

原创 shell腳本批量導入數據到oracle數據庫

1、方法:在shell讀取文件(文件中已經寫好了sql插入語句),然後直接導入到oracle數據庫中。 2、表stu結構和文件data.txt內容,如下。 3、直接使用sqlplus工具登錄,然後讀取文件插入即可。 對上面每一行進行

原创 unix/linux ls命令的實現

Understanding Unix/Linux Programming(Unix/Linux編程實踐教程) 學習模式: (1)它能做什麼? (2)它是如何實現的? (3)能不能自己編寫一個? (實驗環境:gcc versi

原创 Halcon10.0與MFC混合編程(配置)

環境:Halcon10.0和 VS2013 (Halcon10.0 跟之後版本有很大變動,需要留意API) 具體區別參考:http://blog.csdn.net/liubing8609/article/details/67649223

原创 unix/linux more命令的實現

Understanding Unix/Linux Programming(Unix/Linux編程實踐教程) 學習模式: (1)它能做什麼? (2)它是如何實現的? (3)能不能自己編寫一個? (實驗環境:gcc version 5.4.