自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(23)
  • 资源 (1)
  • 收藏
  • 关注

原创 The Linux Programming Interface 04 File I/O: The Universal I/O Model 通用I/O模型

The Linux Programming InterfaceFile I/O: The Universal I/O Model

2017-02-28 22:44:24 597

原创 The Linux Programming Interface 03 System Programming Concepts 系统编程观念

The Linux Programming InterfaceSystem Programming Concepts(1) 本节主要概括Whenever we make a system call or call a library function, we should always check the return status of the call in order to de

2017-02-28 17:50:04 574

原创 国际象棋规则

1.王(英文:King)是国际象棋中最为重要的棋子,王被将死棋局即告负。走法是横直斜走均可,但每次只能走一格,且所走到的位置不可有对方棋子的威胁,否则会被视为“违规移动”(illegal move)。吃子与走法相同。2.后(英文:Queen) 是国际象棋棋局中实力最强的一种棋子。后可横直斜走,且格数不限。吃子与走法相同。后在开局和中局阶段相当于两个车或者三个象的实力,在残局阶段略逊于两个车的实

2017-02-28 09:56:11 3134

原创 Professional C++ 02 Designing Professional C++ Programs 设计专业的C++程序

Professional C++Designing Professional C++ Programs(01) 在写代码之前,谈到设计的重要性,本章节涉及的内容After finishing this chapter, you will understand:The definition of programming designThe importance of progra

2017-02-28 09:09:04 647

原创 Professional C++ 01 A Crash Course in C++ 快速的C++基础知识复习

本章节主要是对C++基础知识的回顾,不会涉及太简单的知识点,比如=和==的区别,也不会涉及太复杂的知识,比如volatile关键字的作用。(1) 空间命名规则#ifndef NAMESPACE_H#define NAMESPACE_H// namespaces.hnamespace mycode { void foo();}#endif // NAMESPACE_H#

2017-02-27 23:12:33 709

原创 Professional C++ 00 Introduction 介绍

Professional C++网上好像有两种类型的Professional C++,这本有很多的例子,看完第一章觉得都还不错,所以打算把余下部分看完。C++ Primer也是一本好书,但是书上的都是代码段,对于新手来说,从头到尾理解比较困难,需要建立在之前有经验的基础上。努力学习!

2017-02-27 17:07:44 557

原创 The Linux Programming Interface 02 Fundamental Concepts 基本概念

Fundamental Concepts(01) Although it is possible to run programs on a computer without a kernel, the presence of a kernel greatly simplifies the writing and use of other programs, and increases the

2017-02-27 16:53:28 623

原创 The Linux Programming Interface 01 History and Standards UNIX/Linux历史和标准

History and Standards(01) 介绍UNIX系统和C语言We begin with a description of the origins of the UNIX system and the C programming language, and then consider the two key currents that led to the Linux s

2017-02-27 15:16:31 302

原创 The Linux Programming Interface 00 preface 序言

The Linux Programming InterfaceA Linux and UNIX System Programming Handbook

2017-02-27 11:10:24 471

原创 C++学习计划 The C++ Programming Language

有基本经典书籍Professional C++The C++ PrimerThe C++ Programming LanguageThe Code Complete其余时间看这些书,结合Qt Creator进行实战编程。轮流交替看书,加油。Profession C++2017.02.27 - 2017.03.27一个月的时间完成800页的任务,现在已经到73页,

2017-02-27 11:07:29 530

原创 The Linux Programming Interface(Linux编程接口)学习计划

计划用一个月的时间,看完The Linux Programming Interface,网上编程实例已经下载完成,tlpi-161214-dist.tar.zip.指导网址在http://www.man7.org/tlpi/index.html总共1500页,每天计划50页,周末加班也要看完,系统学习完Linux环境编程,提升自己的能力。2017.02.27 - 2017.03.27

2017-02-27 10:52:26 2742

原创 exception简单实例

#include #include using namespace std;double divideNumbers(double inNumberator, double inDenominator) {    if (inDenominator == 0)        throw std::exception();    return (inNumberato

2017-02-26 21:39:38 417

原创 liunx 信号量(Semphore)学习

信号量(Semphore)

2017-02-23 18:10:02 601

原创 共享内存(Shared Memory)介绍

共享内存是常用的进程间通信,两个进程可以直接共享访问同一块内存区域。

2017-02-22 14:17:47 34526

转载 Android学习笔记--Binder

(一) 概述         android的binder机制提供一种进程间通信的方法,使不同一个进程可以以类似远程过程调用的形式调用另一个进程所提供的功能。binder机制在Java环境和C/C++环境都有提供。     android的代码中,与C/C++的binder包括一些类型和接口的定义和实现,相关的代码在下面这几个文件中:    frameworks\bas

2017-02-22 13:50:51 812

转载 ALSA声音编程介绍

这里了解一下各个参数的含义以及一些基本概念。样本长度(sample):样本是记录音频数据最基本的单位,常见的有8位和16位。通道数(channel):该参数为1表示单声道,2则是立体声。桢(frame):桢记录了一个声音单元,其长度为样本长度与通道数的乘积。采样率(rate):每秒钟采样次数,该次数是针对桢而言。周期(period):音频设备一次处理所需要的桢数,对于音频设备的

2017-02-22 10:18:24 550

原创 kdevelop安装使用运行

Ubuntu下安装kdevelop,很实用的编写C++代码的工具。sudo apt-get install kdevelop就会在Ubutun中看到相应的图标,点击图标,进入程序界面点击 New Project新建工程选择standard模式,工程名字为Hello,编译工具cmake,系统会生成两个对应的文件。main.cpp#include int mai

2017-02-21 09:26:37 13893 1

转载 C++ Rvalue References Explained

Last updated: March 2013ContentsIntroductionMove SemanticsRvalue ReferencesForcing Move SemanticsIs an Rvalue Reference an Rvalue?Move Semantics and Compiler OptimizationsPerfect Forwarding: T

2017-02-20 19:58:18 819

原创 c++学习笔记——虚函数(virtual function)

虚函数基础知识

2017-02-20 13:38:21 1974

原创 Qt 游戏开发(08) - 为游戏设置图片

之前的章节中游戏中的player, enemy, bullet都是用的QgraphiscRectItem类中的对象代替,本小节将它们设置成为png格式的照片,背景也可以更换图片。Player类更换图片比较容易,按照章节(7)中的步骤增加资源文件,命名为player.png,更改Player的父类class Player : public QObject, public QGraph

2017-02-20 10:45:40 1079

原创 Qt 游戏开发(07) - 为游戏增加音效

本小结为在(6)的基础上为游戏增加音效,比如背景音,每次设计的枪的声音。首先是准备音效文件,background.mp3, bullet.wav,可以在网络上下载。Qt qrc文件中增加multimedia模块,Qt 源码目录中增加resource文件,命名为res/sounds,增加文件在game.cpp中增加相应的代码, // play background music

2017-02-20 10:15:05 3219

原创 c++ 构造器的copy(拷贝), assignment(复制)

1. copy constructor (拷贝构造器)(1) 拷贝构造器的第一个参数必须是类的引用,其它的参数必须有默认值,如下举例:class Copy {public: Copy(); // default constructor Copy(const Copy&); // copy constructor};(2) 不同于default constructor

2017-02-15 10:08:46 1577

原创 学如逆水行舟,不进则退

需要安安静静地努力。做好规划,求精求深不求多。加油2017

2017-02-09 16:20:29 534

空空如也

空空如也

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

TA关注的人

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