daisyleedq
码龄11年
关注
提问 私信
  • 博客:159,764
    159,764
    总访问量
  • 119
    原创
  • 1,796,887
    排名
  • 16
    粉丝
  • 0
    铁粉

个人简介:最近找回了账号,在考虑是否继续维护这个停更5年的账号呢?

IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:波兰
  • 加入CSDN时间: 2014-04-29
博客简介:

小青青的技术之家

博客描述:
离开舒适区!IT之路,求知之路,我从不退缩!
查看详细资料
个人成就
  • 获得13次点赞
  • 内容获得13次评论
  • 获得29次收藏
创作历程
  • 6篇
    2017年
  • 54篇
    2016年
  • 78篇
    2015年
  • 13篇
    2014年
成就勋章
TA的专栏
  • 人生与梦想
  • 算法Algorithm
    29篇
  • PAT
    53篇
  • DFS
    11篇
  • HDOJ
    2篇
  • BFS
    2篇
  • 蓝桥杯
    6篇
  • 树
    4篇
  • 图-最短路
    1篇
  • 并查集
  • 简单模拟
    1篇
  • java ee工作记录
    35篇
  • My Sql工作记录
    1篇
  • PG_0_Programming
    11篇
  • Parallel computation
    2篇
创作活动更多

如何做好一份技术文档?

无论你是技术大神还是初涉此领域的新手,都欢迎分享你的宝贵经验、独到见解与创新方法,为技术传播之路点亮明灯!

342人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

twin primes. serial and parallel

bool mark [N];vector primeList; void sieve () {memset (mark, true, sizeof (mark));mark [0] = mark [1] = false;for ( int i = 4; i < N; i += 2 ) mark [i] = false;for ( int i = 3; i * i <=
转载
发布博客 2017.06.26 ·
650 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

MPI Hello World

#include #include int main(int argc, char** argv) { // Initialize the MPI environment MPI_Init(NULL, NULL); // Get the number of processes int world_size; MPI_Comm_size(MPI_COM
原创
发布博客 2017.03.02 ·
724 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

Sodoku classical backtracking

Sodoku classical backtrackingbacktracking the same as 8 queens and prime number circle//pass#include#includeusing namespace std;#define N 9 int grid[N][N] = {{3, 0, 6, 5, 0, 8, 4, 0, 0},
原创
发布博客 2017.01.21 ·
537 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

c++去除空格并且放到字符串数组中

int trim(string &s) { if (s.empty()) { return 0; } s.erase(0,s.find_first_not_of(" ")); s.erase(s.find_last_not_of(" ") + 1); return 0; }int main(){
原创
发布博客 2017.01.14 ·
2611 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

拓扑排序找到图的根,用于计算烷烃的个数

//拓扑排序找根,那就是找重心喽? void Top(int n,int x){ memset(visit,0,sizeof(visit)); int head=0,tail=0; for(int i=0;i<n;i++){ if(g[i][n]==1){//对于与n相连接的点,如果g[i][n]==1,那么说明是相连的 visit[i]=1; level[tail]=0
原创
发布博客 2017.01.05 ·
481 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

更容易理解 有根树的同构 无根树的同构

点击打开链接只有一个点入度为0的树是外向树,只有一个点出度为0的树是内向树,这两种是典型的有根树平时见到的无向图中的树是无根树1.判断树同构本质是哈希,每个点的权值是这个点的子树的权值和,这里所谓的权值是随机数产生的由于随机性,树上某一组合不同都会导致最终的结果不一样,所以只要判断根的权值是否相等就可以确定同构2.随机性决定了不确定性,但正确率还是很高
转载
发布博客 2017.01.04 ·
2333 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

因为文件一事差点怀疑编译器,三份代码对比

//因为这里不小心把文件关了?!!!ifs.close();#include#include#includeusing namespace std;//之所以gcount输出10其实不是10,其实是16.因为当用这个len作for循环的时候其实是16 int main(){ ifstream ifs("L8_F3_Z1.dat",ios::binary); if(!ifs){
原创
发布博客 2016.12.20 ·
413 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

文件的转置

Problem L7_F3_Z1Write a program that reverses the order of integers stored in a binary file L7_F3_Z1.dat. Do not useadditional files.#include#include#include#includeusing namespace std;//Ö®Ëů
原创
发布博客 2016.12.19 ·
690 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

interpret_cast and static_cast

A static_cast is a cast from one type to another that (intuitively) is a cast that could under some circumstance succeed and be meaningful in the absence of a dangerous cast. For example, you can st
原创
发布博客 2016.12.19 ·
560 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

很棒的!从标准输入文件流读取多行数据并且存放到文件---两种实现;标准输入流到文件再到标准输出流

//认为空格,换行符,tab键都是一个字符串的结束标志 #include#include#includeusing namespace std;int main(){ ofstream ofs("L7_F0_P5.txt"); if(!ofs){ cout<<"Error opening file
"; return 1; } string sentence; cou
原创
发布博客 2016.12.05 ·
1669 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

文件打开模式ios::in|ios::out|ios::trunc

//不知道是因为内存的缓存吧,文件流这边的响应总是不太及时 ////预测,如果是这种方式打开,应该是先清除内容再打开文件 //实际结果,ios::out并不会在文件打开前把文件内容都清除 #include#include#includeusing namespace std;int main(){ fstream fs2("L7_F0_P1.txt",ios::in|ios::ou
原创
发布博客 2016.12.04 ·
20704 阅读 ·
0 点赞 ·
1 评论 ·
8 收藏

Tricky machine code

#include#include#include#includeusing namespace std;int main(){ ifstream ifs("L7_F0_P4a.dat",ios::binary); if(!ifs){ cout<<"Error opening file
"; return 1; } int len; unsigned char t
原创
发布博客 2016.12.04 ·
372 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

输入输出文件的定位

对输入流操作:seekg()与tellg()对输出流操作:seekp()与tellp()seekg()是对输入文件定位,它有两个参数:第一个参数是偏移量,第二个参数是基地址。ios::beg:表示输入流的开始位置ios::cur:表示输入流的当前位置ios::end:表示输入流的结束位置   ifstream in("test.txt");    a
转载
发布博客 2016.12.03 ·
438 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Escape characters and file.gcount

Escape charactersAll Escape Character have its importance in C++.I am sending u some common Escape characters.\a = alarm or alert\b = it is used for backspace.\t = it is used for tab(long
原创
发布博客 2016.12.03 ·
388 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C++文件 输入时数字中掺杂字母

//L7_F0_P3.cpp#include #include using namespace std;int main(){ifstream ifs("L7_F0_P1.txt");if( !ifs ) {cout << "Error opening file
";return 1;}int number;while( ifs >> number ) { // read
原创
发布博客 2016.12.03 ·
1523 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Sort the array one by one without changing current array

思想:每一次从原来的数组中找出第几个小的数。思路是,每次挑完一个,把这个数存在maxValue里面,表示已经有序的数组里面的最后一个。进行下一轮是,用选择排序法,但是要注意每次都要大于maxValue的选择排序法。#include#include#includeusing namespace std;int MAX_N=11;void swap(in
原创
发布博客 2016.12.01 ·
343 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

快捷键

shift+End就可以把从开始处到最后选中
原创
发布博客 2016.08.17 ·
338 阅读 ·
0 点赞 ·
1 评论 ·
0 收藏

海哥说的未来趋势、我最近遇到的问题

移动端编程、网络编程是未来趋势PC端要没落了Spring可能也要不行了。因为现在是移动端的框架比较火。
原创
发布博客 2016.08.09 ·
377 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

bug测试总结

1、打包的时候是不会把test的打进去的,所以才出现昨天能过的今天居然不能了2、读取xml文件的时候不能用byte要用readLine
原创
发布博客 2016.08.04 ·
659 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

SaxReader的一个demo

源地址SAXReader说明:SAXReader主要用于解析XML文件,是当前比较流行的xml解决方案.代码以基础类函数的形式展现如下:java 代码package com.dc.framework.taglib;    import java.io.FileInputStream;    import java.io.FileNotFoundExcep
转载
发布博客 2016.07.18 ·
526 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏
加载更多