ICode9

精准搜索请尝试: 精确搜索
  • Chapter 22022-08-24 06:34:32

    2 构造/析构/赋值运算 条款 05 了解 C++ 默认编写并调用哪些函数 当没有在类中显示声明,编译器则会声明默认版本的 copy 构造函数、 copy assignment 操作符和一个析构函数。 编译器默认生成的函数是 public 和 inline 的。 class Empty{ }; Empty e1;//default constructor Em

  • Chapter 12022-08-24 03:01:19

    1 让自己习惯C++ 条款 01 视 C++ 为一个语言联邦 C : C++以C为基础,block、语句、预处理器、内置数据类型、数组、指针都来自于C。当使用C++中的C成分工作时,没有模板(Template)、没有异常(Exceptions)、没有重载(overloading)。 Object-Oriented C++ : 也就是 C with classes,cl

  • Chapter 32022-08-24 03:00:57

    资源管理 条款 13 以对象管理资源 ​ “以对象管理资源“”也被称为“资源取得时机便是初始化时机(RAII)”。 获得资源后立即放进管理对象内,即在构造函数中获取资源。 管理对象(managing object)运用析构函数确保资源被释放。 ​ 在C++11中,应该使用 shared_ptr 和 unique_ptr 来

  • Rust 修炼手册-Chapter 1.1 Getting Started2022-08-18 14:31:00

    Installation 安装 Linux 或者macOS 执行命令: $ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh 这个命令会下载安装脚本工具,并且会安装最新稳定版本的Rust,你有可能需要输入你的密码。如果安装成功就会显示: Rust is installed now. Great! 你需要一个链接器(l

  • Chapter 08 - RaiseMan (C# 实现 + Cell-based tableview绑定)2022-08-16 13:35:01

    这个代码主要展示如何绑定Array Controller到Cell-based Tableview。在发代码前,需要注意几点。 1. Person为自定义的class,但是一定要Register为PersonModel。 格式{自定义class}Model。 2. NSMutableArray对象,一定要Export为personModelArray。格式{从1. 中得到的注册类}Array。

  • Chapter 07 - Binding Key(C#实现)2022-08-11 13:01:40

    通过xcode把控件的操作绑定到类属性上。以下是布局和绑定。 KvcFunDelegate类(实现了绑定+添加observer)   看看效果:  

  • Chapter 06 - SpeakLine (C# + delegate实现)2022-08-08 08:02:00

    不得不说C#继承了java的恶习,不能继承多个类,害我折腾了好久,终于实现了自己的delegate代理类。关键是Xamarin居然也没有实现对应的信号接口,所以只有自己暴露了一个信号接口,方便以后调用。先上C#代码   对应的Xcode布局没有什么变化,就添加了Outley的两个按钮。方便修改状态。 测

  • Chapter 05 - SpeakLine (C#篇)2022-08-08 05:30:33

    这个程序是调用MacOS的语音系统发音。 先上Xcode布局,XCode 13需要把Object放到对应的控件,才能拖拽Action & Outlet VS代码 C#写起来,果然比objective-c好看多了。结果图,可惜不能放语音。  

  • Chapter 02 - Let's Get Started(C#篇)2022-08-07 17:04:29

    详细解释,书上有哈。直接上代码和结果。 Xcode下的自定义类 (通过new file-> cocoa class创建,保持和书中名字一样RandomController),自定义的fields也加上。 添加Object到xcode,让项目能够识别自定义的类。 最后关联对应的控件 到目前为止,都和书上一样的。现在回到VS2019 mac版的项

  • 《C++ Primer》【Chapter 5】2022-07-27 17:04:45

    chapter5 语句 1 简单语句 表达式语句:表达式+分号 ival + 4; 2 语句作用域 定义在控制结构当中的变量只在相应语句的内部可见,一旦语句结束,变量也就超出其作用范围了 3 条件语句 3.1 if 为避免出错,一般要在if或else之后写上花括号。 悬垂else(dangling else) else与离它最近的尚未

  • 《C++ Primer》【Chapter 4】2022-07-27 17:04:02

    chapter4 表达式 基础 左值和右值 左值可以位于赋值语句的左侧,而右值不可以 当一个对象被用作右值当时候,用的是对象的值(内容);当对象被用作左值当时候,用的是对象的身份。 后面写的内容没看太明白 优先级和结合律 复合表达式:指含有两个或多个运算符的表达式。 高优先级运算符的运算对

  • 《C++ Primer》【Chapter 6】2022-07-27 17:02:59

    Chapter6 函数 6.1 函数基础 一个函数包括: 返回类型 函数名字 0个或多个形参组成的列表 函数体 函数的调用 通过调用符号来执行函数。调用符号是一对圆括号,它作用于一个表达式,该表达式是函数或者指向函数的指针;圆括号之内是用逗号隔开的实参列表,用这些实参初始化函数的形参。调

  • Chapter 6 The determinant2022-07-20 21:37:28

    Chapter 6 The determinant the purpose of computation is insight, not numbers 形变是相同的 det=0,表示降了一个维度 行列式负数的扩展,和方向有关 三维方向

  • Chapter 5 Three-dimensional linear transformations2022-07-19 22:05:22

    Chapter 5 Three-dimensional linear transformations

  • Chapter 4 矩阵乘法作为组合变换的形式以理解2022-07-19 22:04:45

    Chapter 4 矩阵乘法作为组合变换的形式以理解 It is my experience that proofs involving matrices can be shortened by 50% if one throws the matrices out read right to left 矩阵相乘的推导

  • Chapter 1-- 并发编程的挑战2022-07-13 22:32:20

    并发编程的挑战 引入 并发编程的目的是为了让程序运行得更快,但是进行并发编程会面临以下几种挑战: 上下文切换 死锁 软硬件资源限制 1. 上下文切换 - 什么是上下文切换? 时间片轮转 -- 任务状态 -- 保存再加载 -- 上下文切换 cpu通过时间片分配算法来循环执行任务,任务A执行一个时

  • Python requests, pasel多线程爬取并下载小说2022-06-21 18:31:07

    使用PYTHON语言,用到的外部包有pasel, requests。   逻辑:首先得到该小说所有章节地址,再使用多线程访问链接,得到的内容放入object列表中,最后写入本地文件。   功能:设置菜单,由此可以选择不同的小说站点;写入本地时会在命令行打印所有章节名称;高速爬取小说。   注意:1,爬取时没有提

  • Testing - Chapter 11-14 in SWE at Google (Edition 2)2022-06-20 11:33:40

    Testing Overview Why to test? Chapter 11 gives some reasons: Find bugs early. An equally important reason why you want to test your software is to support the ability to change. (change software with confidence) The act of writing tests also improves the

  • The Picture Of DORIAN GRAY -- 1 The Artist (Chapter 2)2022-06-18 18:02:29

    1 The Artist   Chapter  2     In the garden the leaves shone in the sunlight, and the flowers moved gently in the summer wind. The two young men sat on a long seat under the shadow of a tall tree.   'Before I go,' said Lord Henry, 'you mus

  • 机器学习中的优化 Optimization Chapter 3 Projected Gradient Descent(2)2022-05-19 20:00:56

    1. Smooth and strongly convex functions: \(O(\log(1/\epsilon))\) steps \(\large\textbf{Theorem 3.5}\): $f:dom(f) \rightarrow \mathbb{R} $ convex and differentiable. \(f\) is smooth with parameter \(L\) and strongly convex with parameter \(

  • Chapter 1 The Graphics Rendering Pipeline2022-05-19 17:00:07

    欢迎来到万恶之源——渲染管线,这是一切罪恶的开始 这玩意的主要功能就是决定在给定虚拟相机、三维物体、光源、照明模式,以及纹理等诸多条件的情况下,生成或绘制一幅二维图像的过程 (二向箔打击懂不懂啊) 1.1 Architecture 在rtr4中,是将图形渲染管线分成了四个阶段,(而在rtr3和入门精

  • 夏洛的网2022-05-12 12:35:08

    Charlotte’s Web E. B. White Chapter I: Before Breakfast “Well,” said her mother, “one of the pigs is a runt. It’s very small and weak, and it will never amount to anything. So your father has decided to do away with it.” “This is a matter of life a

  • Style Guide And Rules-- Chapter 8 of “Software Engineering at Google (Edition 2)”2022-05-09 13:32:41

    前情提要 看过了第一部分的概述和第二部分的 culture 我们来到了第三个部分:Process;这部分针对更加具体的软件工程执行展开论述,这篇博客从第 8 章 Style Guide 讲起,谈谈书中的部分和我的学习心得。 Style Guides and rules Rules are laws. They are not just suggestions or reco

  • chapter2022-05-06 23:04:05

    Chapter (books) A chapter is one of the main divisions of a piece of writing of relative length, such as a book of prose, poetry, or law. A chapter book may have multiple chapters and these can be referred to by the things that may be the main topic of th

  • 机器学习中的优化 Optimization Chapter 2 Gradient Descent(2)2022-04-29 03:00:06

    \(\large \bf{Theorem }\ 2.7:\) \(f:\mathbb{R^d}\rightarrow\mathbb{R}\text{ be convex and differentiable with a global minimum }x^*;\text{ Suppose }f\text{ is smooth with parameter }L.\text{ Choosing stepsize: }\gamma = \frac{1}{L},\text{ g

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有