原创 輸入兩個正整數a和n,輸出a+aa+aaa+…+a…a(n個a)之和。例如,輸入2和3,輸出246(2+22+222)。(簡單遞歸實現)

#include<stdio.h> int f; int caculate(int a,int n) { if (n==0)return 0; else { return a + caculate(10 * a+f,

原创 opencv bresenham畫圓 並保存大圓座標,再以大圓上的點爲圓心畫小圓並填充,並保存爲視頻

自己把圖片地址改一下 #include<opencv2/opencv.hpp> #include <opencv2/highgui/highgui.hpp> #include<math.h> #include<string.h>

原创 opencv可視化迷宮搜索過程

#include<stdio.h> #include<stdlib.h> #include<opencv.hpp> #include<Windows.h> #include<opencv2/opencv.hpp> #include

原创 Dynamic Routing Between Capsule中難點理解

前言 最近讀了Hinton的 《Dynamic Routing Between Capsule》這篇文章,我發現前半部分網上大多數人的理解都是大同小異,我就不在這裏重複了,主要是後面Capsule Architecture一直有疑

原创 一球從100m高度自由落下,每次落地後反跳回原高度的一半,再落下。求它在第n次落地時,共經過多少米?第n次反彈多高?(小數點後保留5位)

#include<stdio.h> int main() { int n; float height = 100, b, first = 200, i, sum = 100; scanf("%d", &n); for (i

原创 2、實現一個自定義的字符串類String。 定義具有兩個私有數據成員,分別表示字符串的存儲地址(char*類型)和長度(int類型)。實現字符串類String的構造函數、析構函數

2、實現一個自定義的字符串類String。 i. 定義具有兩個私有數據成員,分別表示字符串的存儲地址(char*類型)和長度(int類型)。實現字符串類String的構造函數、析構函數、拷貝構造函數、賦值運算。 ii. 實現運算符

原创 c++面向對象的程序設計第四版第九章課後作業程序

9-1 array.h 先是頭文件 #pragma once #ifndef ARRAY_H_ #define ARRAY_H_ #include <cassert> template <class T> class Array

原创 第十二週數據結構作業2(哥們很菜,望大佬指點)

#include<iostream> #include<stdio.h> #include<stack> #include<queue> #include<malloc.h> #include<stdio.h> #include<

原创 希爾排序ShellSort()、快速排序QuickSort()、堆排序HeapSort()、2路歸併排序MergSort()和鏈式基數排序RadixSort()C語言代碼實現,數據結構每週作業

作業描述: 分別實現希爾排序ShellSort()、快速排序QuickSort()、堆排序HeapSort()、2路歸併排序MergSort()和鏈式基數排序RadixSort()共5個函數,要求通過鍵盤輸入選擇排序算法並動態展示

原创 Multi-Stage Pathological Image Classification using Semantic Segmentation 論文解析

前言 Multi-Stage Pathological Image Classification using Semantic Segmentation ICCV2019論文,日本的作者,主要是東京大學的。解決的是病理學領域,組織

原创 會員信息管理系統

歡迎大佬指點!! 親測可用! 改了 幾個bug 更新 之後的代碼 會員信息管理系統文本說明 功能: 消費 ①從vipinf.txt的文本文件中LOAD()建立一個鏈表,之後的操作全部在鏈表中進行。在鏈表中修改消費信息,

原创 Visual Attention Consistency Under Image Transforms for Multi-Label Image Classification論文閱讀

《Visual Attention Consistency Under Image Transforms for Multi-Label Image Classification》 圖像變化下的注意力一致性在多標籤圖像分類下的應

原创 Fine-grained Recognition: Accounting for Subtle Differences between Similar Classes論文閱讀解析

文章目錄前言正文MotivationModeldiversification blockGradient Boosting LossTraining and InferenceExperiment總結 前言 Fine-graine

原创 CS231n_assignment #1 Q1:k-Nearest Neighbor classifier

作業內容: Q1: k-Nearest Neighbor classifier (20 points) Q2: Training a Support Vector Machine (25 points) Q3: Implemen