- 博客(14)
- 资源 (1)
- 收藏
- 关注
原创 Object-Oriented Programming (OOP) and Inheritance
Object-Oriented Programming (OOP) and Inheritance1 The features of OOPThere are lots of definitions for OOP, but 3 primary features of it are:• Encapsulation: grouping related data and functions t...
2019-05-17 11:42:24
349
原创 C/C++分享点:extern 与extern "C"
C/C++分享点:extern 与extern “C”1.exern 的作用1.1 引用同一个文件中的变量看一段测试代码:#define _CRT_SECURE_NO_WARNING 1#include<stdio.h>int func();int main(){ func(); printf("%d\n", num); return 0;}in...
2019-05-05 13:54:17
698
原创 C++分享点:sequence point 和 side effect
1.C++分享点:sequence pointsequence point:At certain specified points in the execution sequence。简而言之,Sequence Point就是这么一个位置,在它之前所有的side effect已经发生,在它之后的所有side effect仍未开始。比如题目:int x = (++i) + (++i) +...
2019-04-19 19:35:18
303
原创 c++重载++和--
c++ 重载++和–分两种情况:前置++:即++运算符位于操作数的前面,例如:++i后置++:即++运算符位于操作数后面, 例如:i++c++语言并不要求递增和递减运算符必须是类的成员,但是因为它们改变的正好是所操作对象的状态,所以建议将其设定为成员函数。下面的代码为了练习,还是分别采用成员函数和全局函数的方式实现:#include<iostream>using na...
2019-04-19 09:44:06
590
转载 makefile通用模板
makefile通用模板1. 生成可执行文件的makefile:##############################################################################source file#源文件,自动找所有.c和.cpp文件,并将目标定义为同名.o文件SOURCE := $(wildcard *.c) $(wildcard *...
2019-04-16 10:43:39
322
原创 Makefile 使用
1. Makefile 简介Makefile 是和 make 命令一起配合使用的.很多大型项目的编译都是通过 Makefile 来组织的, 如果没有 Makefile, 那很多项目中各种库和代码之间的依赖关系不知会多复杂.Makefile的组织流程的能力如此之强, 不仅可以用来编译项目, 还可以用来组织我们平时的一些日常操作. 这个需要大家发挥自己的想象力.本篇博客是基于 {精华} 跟我一...
2019-04-04 17:25:41
359
原创 Ubuntu16.04搭建samba服务器方法
Ubuntu16.04搭建samba服务器Writed by Jana on April 3, 2019 9:40 PMLinux通过配置使用samba服务器可以实现与Windows用户的资源共享。下面是在Ubuntu16.04 64位系统环境中进行安装samba服务器step 1:确定操作系统操作系统的版本为Ubuntu 16.04 LTS 64位step 2:安装samba...
2019-04-03 22:10:44
587
原创 从源码安装tensorflow1.8-gpu版本
从源码安装tensorflow1.8-gpu版本配置如下:OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 16.04TensorFlow installed from (source or binary): sourceTensorFlow version (use command below): v1.8.0...
2019-01-11 17:41:54
3209
3
原创 第一次用博
with tf.Graph().as_default(): self.images_placeholder =tf.placeholder(tf.float32, [None, self.image_size, self.image_size, 3], name='input') self.phase_train_placehold...
2018-08-06 16:49:28
204
用MATLAB产生噪声调频信号的源程序
2010-03-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人