- 博客(15)
- 资源 (1)
- 收藏
- 关注
原创 macOS X11 Ubuntu 实现远程服务器可视窗口回传本地
这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入欢迎使用Markdown编辑器你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Mar
2022-05-10 12:23:04
699
原创 WARNING:REMOTE HOST IDENTIFICATION HAS CHANGED!
1、问题描述2、解决办法ssh-keygen -R 你要访问的IP地址
2020-09-28 11:48:16
98
原创 2018机试-读txt写xml
要求是从txt文件中读取信息,再根据一定格式写入到xml文件中去。txt文件中的文本如下 201833,王二,操作系统,70 201834,张三,操作系统,90 201834,张三,嵌入式系统,20要求写入的xml文件如下<students> <student> <学号>学生学号</...
2019-03-15 17:54:49
249
原创 2016机试-数字排序
代码如下:#define _CRT_SECURE_NO_WARNINGS#include <iostream>#include <string>#include <sstream>#include <vector>#include <algorithm>using namespace std;int main02...
2019-03-15 15:29:13
189
原创 C语言读写xml文件
读取和设置xml配置文件是最常用的操作,试用了几个C++的XML解析器,个人感觉TinyXML是使用起来最舒服的,因为它的API接口和Java的十分类似,面向对象性很好。TinyXML是一个开源的解析XML的解析库,能够用于C++,能够在Windows或Linux中编译。这个解析库的模型通过解析XML文件,然后在内存中生成DOM模型,从而让我们很方便的遍历这棵XML树。DOM模型即文档对象...
2019-03-15 15:11:57
4982
2
原创 树的基本操作和应用
二叉树的存储结构(二叉链表)、建树、递归遍历、树的深度、树的叶子节点个数#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include <string>/* 树的先序遍历,空节点值为032200300865400000先序遍历为:3 2 2 3 8 6 5 4中序遍历为:...
2019-03-15 00:46:40
403
转载 6. ZigZag Conversion
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA...
2019-03-14 21:19:40
137
转载 273. Integer to English Words
Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 2^31 - 1.Example 1:Input: 123Output: "One Hundred Twenty Three"Example 2:Inpu...
2019-03-14 20:54:23
143
转载 5. Longest Palindromic Substring
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Example 1:Input: "babad"Output: "bab"Note: "aba" is also a valid answer.E...
2019-03-14 20:13:21
132
转载 165. Compare Version Numbers
Compare two version numbers version1 and version2.If version1 > version2 return 1;if version1 < version2 return -1;otherwise return 0.You may assume that the version strings are non-empty an...
2019-03-14 19:52:41
181
转载 151. Reverse Words in a String
Given an input string, reverse the string word by word.Example 1:Input: "the sky is blue"Output:"blue is sky the"Example 2:Input: " hello world! "Output:"world! hello"Explanation...
2019-03-14 19:23:17
122
转载 49. Group Anagrams
Given an array of strings, group anagrams together.Example:Input: ["eat", "tea", "tan", "ate", "nat", "bat"],Output:[["ate","eat","tea"],["nat"
2019-03-14 18:31:47
126
转载 38. Count and Say
The count-and-say sequence is the sequence of integers with the first five terms as following:1. 12. 113. 214. 12115. 1112211 is read off as "one 1" or 11.11 is read off ...
2019-03-14 18:27:53
117
原创 配置文件读写案例
题目:cfg.h#pragma once#ifdef __cplusplusextern "C"{ //函数声明 int ReadCfgFile(char *file, char *key, char *value, int *len); int WriteCfgFile(char *file, char *key, char *value, int len);...
2019-03-13 14:21:48
292
原创 直接插入排序
void InsertSort(int R[],int n){ int i,j; int temp; for(i=1;i<n;i++) { temp=R[i]; j=i-1; while(j>=0&&temp<R[j]) { R[j+1]=R[j]; --j; } R[j+1]=temp; }}
2019-03-12 22:56:55
106
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人