学习日记
每日的学习积累
前程似锦蝈蝈
这个作者很懒,什么都没留下…
展开
-
《编程珠玑》第二章 问题C
#include<iostream>#include<fstream>#include<algorithm>#include<vector>using namespace std;static bool com(pair<string, string> a, pair<string, string> b) { if (a.first != b.first) return a.first < b.first; else原创 2020-11-20 20:23:17 · 126 阅读 · 0 评论 -
dfs bfs应用实例,油漆桶应用实例
#include<stdio.h>struct note{ int x; int y;};int main(){ struct note que[2501]; int head, tail; int a[51][51]; int book[51][51] = { 0 }; int i, j, k, sum, max = 0, mx, my, n, m, star...原创 2020-03-08 22:14:26 · 120 阅读 · 0 评论 -
What advice would you give to a Computer Science major student that you wish you were given when you
Originally Answered: What advice would you give a computer science student that you wish you had known when you started computer science?Write tests for your code. I wrote a longer answer about this here.Do not expect to be given much instruction about .原创 2020-08-26 11:42:07 · 571 阅读 · 0 评论 -
学习使用markdown
标题一级标题二级标题三级标题四级标题五级标题六级标题加粗字体iajgoaogjoiajojgaojgoj该机构地方金澳国际佛埃及高工i(一堆乱码)佛i啊警告i(斜体)左右一颗*佛埃及高工 (斜体加粗) 左右三颗*无序列表实现效果是这样子以及这样还有这样引用这个是个引用这个要隔行超链接百度搜索代码块单行字符用 表示单行字符用 `表示#inlcude<iostream>int main(){}多行代码用三个 `表示。水原创 2020-08-17 12:29:44 · 147 阅读 · 0 评论 -
linux执行c or cpp程序
原创 2020-07-19 21:07:07 · 102 阅读 · 0 评论 -
使用pip获取github上的代码库
1,绑定电脑与github账户的链接a. 建个仓库b. 在一个空文件夹上进入git bush 输入ssh-keygen -t rsa -C "email@.com"回车三次 在c盘user文件夹生成 .ssh文件。b.点头像进入setting,点击SSH and GPG keys 点击newSSHkeysc. 将ssh文件粘贴进文本框。d.在bush输入 ssh -T git@github.com 查看是否成功绑定。2, 上传代码 a. git config --globa原创 2020-07-18 11:44:18 · 1262 阅读 · 0 评论 -
如何测量程序运行时间
#include<stdio.h>#include<time.h>clock_t start,stop;double duration;int main(){start =clock(); //stop里面是从main开始走了多少ticksmyfunction();stop=clock();duration=((double)(stop-start))/...原创 2020-05-03 18:37:42 · 209 阅读 · 0 评论