工程能力
sinat_15355869
这个作者很懒,什么都没留下…
展开
-
记录两个小工具 - Hydra & Wandb
【1】Getting started | Hydra【2】Weights & Biases - DocumentationGitHub - wandb/client: 🔥 A tool for visualizing and tracking your machine learning experiments. This repo contains the CLI and Python API.原创 2022-03-20 21:31:54 · 169 阅读 · 0 评论 -
7 Class Templates array and vector; Catching Exceptions
目录:array -> Sorting and searching arrays. vector -> Demonstrating C++ Standard Library class template vector.1. array -> Sorting and searching arrays.// array -> sorting and searching#include <iostream>#include <iomanip>原创 2021-12-18 10:58:55 · 827 阅读 · 0 评论 -
6 Functions and an Introduction to Recursion
目录:1、maximum function with a function prototype.2、Shifted, scaled integers produced by 1 + rand() % 6.3、Demonstrating srand (随机种子)4、Random Number (优点)5、Inline Functions6、References and Reference Parameters7、Using default arguments8、Unary sc原创 2021-12-14 13:47:15 · 119 阅读 · 0 评论 -
5 Control Statements: Part 2; Logical Operators
概述:Chapter 4 discussed if, if…else and while. This chapter demonstrated for, do…while and switch.You used the break statement to exit a switch statement and to immediately terminate a loop, and used a continue statement to terminate a loop’s current ..原创 2021-12-11 19:24:59 · 418 阅读 · 0 评论 -
4 A lgorithm Development and Control Statements: Part 1
1、Only three types of control statements—sequence, selection and iteration—are needed to develop any algorithmmain.cpp#include <iostream>#include <iomanip>using namespace std;int main() { int total{0}; unsigned int gradeCoun..原创 2021-12-11 16:31:13 · 427 阅读 · 0 评论 -
3 Introduction to Classes, Objects, Member Functions and Strings
目录:1、created your own classes and member functions2、create UML class diagrams that model the member functions, attributes and constructors of classesAccount.h#ifndef UNTITLED1_ACCOUNT_H#define UNTITLED1_ACCOUNT_H#include <string>#incl原创 2021-12-11 15:55:13 · 179 阅读 · 0 评论 -
cmake - 02 - subprojects
参考链接????:GCC全过程详解+剖析生成的.o文件CMAKE 里PRIVATE、PUBLIC、INTERFACE属性示例详解cmake:target_** 中的 PUBLIC,PRIVATE,INTERFACE1. 指令说明target_include_directories():指定目标包含的头文件路径。官方文档target_link_libraries():指定目标链接的库。官方文档target_compile_options():指定目标的编译选项。官方文档目标 由原创 2021-10-21 07:31:54 · 123 阅读 · 0 评论 -
cmake - 01K - imported-targets
目录:文件:run_test.sh#!/bin/bashcmake_version=`cmake --version | grep version | cut -d" " -f3`[[ "$cmake_version" =~ ([3-9][.][5-9.][.][0-9]) ]] || exit 0echo "correct version of cmake"mkdir -p build && cd build && cmake .. &am原创 2021-10-21 06:25:12 · 218 阅读 · 0 评论 -
cmake - 01H - third_party_library
目录:文件:main.cpp#include <iostream>#include <boost/shared_ptr.hpp>#include <boost/filesystem.hpp>int main(int argc, char *argv[]){ std::cout << "Hello Third Party Include!" << std::endl; boost::shared_ptr原创 2021-10-16 16:42:14 · 124 阅读 · 0 评论 -
cmake - 01E - installing
目录:(base) ➜ cmaker_learning tree.├── CMakeLists.txt├── build├── cmake-examples.conf├── include│ └── installing│ └── Hello.h└── src ├── Hello.cpp └── main.cpp4 directories, 5 files文件:与之前相同重点是 CMakeLists.txtcmake_min...原创 2021-10-16 13:41:25 · 74 阅读 · 0 评论 -
cmake - 01D - shared-library
动态链接目录:文件:Hello.h#ifndef CMAKER_LEARNING_HELLO_H#define CMAKER_LEARNING_HELLO_Hclass Hello{public: static void print();};#endif //CMAKER_LEARNING_HELLO_HHello.cpp#include <iostream>#include "../include/shared/Hello.h"u.原创 2021-10-16 12:18:47 · 48 阅读 · 0 评论 -
cmake - 01C - static-library
目录结构文件:Hello.h#ifndef CMAKER_LEARNING_HELLO_H#define CMAKER_LEARNING_HELLO_Hclass Hello{public: void print();};#endif //CMAKER_LEARNING_HELLO_HHello.cpp#include <iostream>#include "static/Hello.h"using namespace std;vo原创 2021-10-16 11:49:22 · 55 阅读 · 0 评论 -
cmake - 01 - hello-headers
目录:cmake 复习一下文件结构:(两个实验)文件内容:Hello.h#ifndef CMAKER_LEARNING_HELLO_H#define CMAKER_LEARNING_HELLO_Hclass Hello{public: void print();};#endif //CMAKER_LEARNING_HELLO_HHello.cpp#ifndef CMAKER_LEARNING_HELLO_H#define CMAKE.原创 2021-10-16 11:09:48 · 57 阅读 · 0 评论 -
19 - Custom Templatized Data Structure
目录:1. List1. List 定义//// Created by on 2021/7/23.//#ifndef PRACTICE15_LIST_H#define PRACTICE15_LIST_H#include <iostream>#include "ListNode.h"using namespace std;template<typename NODETYPE>class List{public: bool isE原创 2021-07-23 16:32:59 · 79 阅读 · 0 评论 -
C++ 基础回顾
很简单 -> 写个复数的class咯,注意些基本细节#ifndef INC_2_9_COMPLEX_H#define INC_2_9_COMPLEX_Hclass complex {public: complex(double r = 0, double i = 0) : re(r), im(i) {} complex &ope...原创 2020-02-18 22:34:50 · 93 阅读 · 0 评论 -
docker 基础复习
感谢b站视频分享:https://www.bilibili.com/video/av27122140?from=search&seid=7333499770449743833感谢b站小伙伴57142387130_bili分享:https://pan.baidu.com/s/1FLcOpjpJTJlP36lzD-kfWA#list/path=%2F常用指令:...原创 2020-02-09 18:29:44 · 215 阅读 · 0 评论 -
Linux 复习资料:
标题https://www.bilibili.com/video/av21298877/Linux 常用指令复习用挺好的!原创 2020-01-30 11:46:20 · 344 阅读 · 0 评论