- 博客(94)
- 资源 (10)
- 问答 (6)
- 收藏
- 关注
原创 windows下解压版MYSQL的配置
环境:win10企业版MYSQL版本:mysql-5.7.18-win32下载地址:https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.18-win32.zip1、解压,放置,本人放置在D盘根目录下2、此电脑-属性-高级系统设置-环境变量-上方的Path,修改,在后方直接插入bin文件夹的地址(记得在末尾加上;)
2017-06-04 03:04:07
634
转载 将中缀表达式转化为后缀表达式
原文转自:http://www.nowamagic.net/librarys/veda/detail/2307我们把平时所用的标准四则运算表达式,即“9+(3-1)*3+10/2"叫做中缀表达式。因为所有的运算符号都在两数字的中间,现在我们的问题就是中缀到后缀的转化。中缀表达式“9+(3-1)*3+10/2”转化为后缀表达式“9 3 1-3*+ 10 2/+”规则:从左到右
2015-10-09 17:53:31
630
原创 初学C#斐波那契三解
#include int fib_rec( int n ){ if(n==0||n==1)return 1; else return fib_rec(n-1)+fib_rec(n-2);}int fib_iter( int n ){ int i=2; int num=0; if(n<2)return 1; int head=1,hair=1; for(;i<=n;i++){
2015-08-22 11:24:15
1011
原创 win10初体会
升win10两天了,除了麦克风驱动出了些问题之外,基本上还是很好的,整体外观比win8的四不像好了太多,左下角多了支持语音搜索的Cortana和像手机一样的任务视图,右下方多了个支持切换平板模式的快捷键,微软预装的输入法也好了一些,软件兼容问题至今未发现(不排除一些小众化的专业软件会出问题),系统自带的Edge浏览器就不吐槽了,就是IE换了个马甲,桌面图标一开始看可能会有少许不适应,总体来说,wi
2015-07-31 11:11:58
894
1
原创 SOJ.Biker's Trip Odomete
1051. Biker's Trip Odomete限制条件时间限制: 1 秒, 内存限制: 32 兆 题目描述Most bicycle speedometers work by using a Hall Effect sensor fastened to the front fork of the bicycle. A magnet is attached to one of the spoke
2015-07-11 13:27:25
559
转载 C++的深拷贝与浅拷贝
本文的所有内容均来自http://www.cnblogs.com/BlueTzar/articles/1223313.html,感谢此作者:)对于普通类型的对象来说,它们之间的复制是很简单的,例如:int a=88;int b=a; 而类对象与普通对象不同,类对象内部结构一般较为复杂,存在各种成员变量。下面看一个类对象拷贝的简单例子。 #
2015-07-06 09:46:42
527
原创 SOJ.Binary Search
Binary SearchWrite a binary search function to use a generic type for searching array elements. You should test the function with array of int, double and so on. The definition of the function i
2015-07-05 17:29:35
574
原创 SOJ.Robot
Robot 题目描述PY喜欢玩机器人,他最近做了一台性能卓越、超乎想象的机器人,只可惜他有一个问题没有解决——这个机器人不会动。他想要让机器人动起来,所以他先要写一个控制机器人的程序。你作为PY的专属IT民工,很荣幸的接到了这个任务。PY给了你一个类Robot,请你把它实现。类的定义如下:s
2015-07-05 17:26:55
709
原创 SOJ.AutoReset
AutoReset 题目描述“只要我离开了你的世界,无论你做过什么,我都能忘记你回到从前!”小PY今天很小清新的,大家不要说他腹黑啊。他知道今天大家都学习了析构函数!现在请大家帮他实现一个类AutoReset,这个类的功能是在一个作用域开始的时候,保存某个变量的值,而当该作用域结束的时候能够实现变量值的Re
2015-07-05 17:20:11
996
原创 Leetcode.Longest Common Prefix
Longest Common Prefix Write a function to find the longest common prefix string amongst an array of strings.找最长公共前缀class Solution {public: string longestCommonPrefix(vector &str
2015-06-24 11:33:29
509
原创 SOJ.Parity
1712. Parity 总提交数量:1469通过数量:1049评价:2.9/5.0(14 票)012345 时间限制:1秒 内存限制:
2015-06-18 16:01:22
446
原创 SOJ.Cannonball Pyramids
1701. Cannonball Pyramids 时间限制:1秒 内存限制:32兆 题目描述If you visit historical battlegrounds from periods when cannon were used, you may see cannonb
2015-06-18 15:38:24
515
原创 STL中常用的vector,map,set 用法
STL中常用的vector,map,set 用法 C++的标准模板库(Standard Template Library,简称STL)是一个容器和算法的类库。容器往往包含同一类型的数据。STL中比较常用的容器是vector,set和map,比较常用的算法有Sort等。.一. vector1.声明: 一个vector类似于一个动态的一维数组。
2015-06-15 13:39:34
4558
转载 C++ STL之vector详解
Vectors vector是C++标准模板库中的部分内容,它是一个多功能的,能够操作多种数据结构和算法的模板类和函数库。vector之所以被认为是一个容器,是因为它能够像容器一样存放各种类型的对象,简单地说,vector是一个能够存放任意类型的动态数组,能够增加和压缩数据。为了可以使用vector,必须在你的头文件中包含下面的代码:#include 构造函数。 Vect
2015-06-15 13:11:07
549
原创 有鱼的声音
1275 有鱼的声音 2012年CCC加拿大高中生信息学奥赛 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 青铜 Bronze 题目描述 DescriptionA fish-finder is a device used by angler
2015-06-10 14:22:10
861
原创 数的计算
1011 数的计算 2001年NOIP全国联赛普及组 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 白银 Silver题目描述 Description我们要求找出具有下列性质数的个数(包含输入的自然数n):先输入一个自然数n(n1.
2015-06-10 14:19:39
375
原创 SOJ.Hex to Int
Hex to Int 时间限制:1秒 内存限制:256兆 题目描述 Write a function that parses a hex number as a string into a decimal integer. The function is
2015-06-08 21:29:55
788
原创 SOJ.Date Class with Exception
Date Class with Exception 时间限制:1秒 内存限制:256兆 题目描述As we have learnt before, we can use the subscript [] in the class Date to access the year,
2015-06-08 21:11:22
559
原创 SOJ.Subtraction
Subtraction 时间限制:1秒 内存限制:256兆 题目描述某小朋友已经四岁了,她开始学习数字减法,但她还不理解负数的概念,如果被减数和减数中出现负数,或者被减数小于减数,她都不会算。这里某人已设计函数c
2015-06-08 21:01:05
656
原创 SOJ.Concatenation and substring
Concatenation and substring 时间限制:1秒 内存限制:256兆题目描述In this problem, you are required to concatenate given integers and letters into a string S, and output a
2015-05-26 16:23:36
458
原创 Markdown个人笔记
一个很不错的学markdown网站:https://github.com/othree/markdown-syntax-zhtw/blob/master/syntax.md> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,> consectetuer adipiscing elit. Ali
2015-05-26 15:15:46
9802
原创 SOJ.Letters and Words
Letters and Words 时间限制:1秒 内存限制:256兆 题目描述Calculate the number of letters (including white spaces but excluding line breaks) and the number of wo
2015-05-25 15:07:26
1035
转载 C++的TXT操作
C++ 通过以下几个类支持文件的输入输出:ofstream: 写操作(输出)的文件类 (由ostream引申而来) ifstream: 读操作(输入)的文件类(由istream引申而来) fstream: 可同时读写操作的文件类 (由iostream引申而来)打开文件(Open a file)对这些类的一个对象所做的第一个操作通常就是将它和一个真正的文件
2015-05-18 14:41:21
565
原创 Factorial
Factorial 时间限制:1秒 内存限制:256兆 题目描述 Many years later, Alice grow up and she become a high-school student.One day she learned factorial on math class. The fac
2015-05-09 17:27:05
679
转载 c++ 不撞南墙不回头——树形动态规划(树规)
转自(http://www.cnblogs.com/gq-ouyang/archive/2013/02/26/2933431.html)不撞南墙不回头——树规总结 焦作一中信息学oy
2015-05-09 17:10:54
1384
转载 类的继承
继承(转自http://blog.youkuaiyun.com/kz_ang/article/details/7710026)方式:private 基类的公有成员与保护成员成为派生类的私有成员public 基类的成员访问权限不变protected 基类的公有成员与保护成员将成为派生类的保护成员三种继承方式的对比:特征 公有继承
2015-05-09 12:52:13
449
原创 SOJ.MyVector
MyVector时间限制:1秒 内存限制:256兆 题目描述有一个向量类MyVector,包括一个点的坐标位置x、y和z,实现其构造函数和三个友元函数,完成两个向量的加法、减法、点乘与叉乘运算。MyVector的定义如下: class MyVector {public: MyVe
2015-04-20 00:58:33
719
原创 SOJ.MyString Class
MyString Class 时间限制:1秒 内存限制:256兆 题目描述定义一个MyString类如下,该类有构造函数、拷贝构造函数、析构函数、成员函数和静态成员函数,有一个C字符串指针变量,还有一个静态成员变量numberOfObjects。请你完成类的实现。class MyString{
2015-04-20 00:57:40
472
原创 SOJ.MyVector
1001. MyVector 时间限制:1秒 内存限制:256兆 题目描述有一个向量类MyVector,包括一个点的坐标位置x、y和z,实现其构造函数和三个友元函数,完成两个向量的加法、减法、点乘与叉乘运算。MyVector的定义如下: class MyVector
2015-04-15 01:29:07
922
原创 Div 3
Div 3Time Limit:250MS Memory Limit:4096KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionThere is sequence 1, 12, 123, 1234, ..., 12345678910, ... . Given first N e
2015-03-30 20:16:04
681
原创 Coprimes
CoprimesTime Limit:250MS Memory Limit:4096KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionFor given integer N (1N104) find amount of positive numbers not greater
2015-03-30 19:43:18
546
原创 SOJ.Opening Ceremony
1003. Opening Ceremony 总提交数量:123通过数量:34 时间限制:1秒 内存限制:256兆 题目描述For the grand opening of
2015-03-29 20:41:07
635
原创 SOJ.Dice Game
1000. Dice Game 总提交数量:100通过数量:59 时间限制:1秒 内存限制:256兆 题目描述Gunnar and Emma play a lot of b
2015-03-29 19:33:21
819
转载 关于C++ const 的全面总结
C++中的const关键字的用法非常灵活,而使用const将大大改善程序的健壮性,本人根据各方面查到的资料进行总结如下,期望对朋友们有所帮助。Const 是C++中常用的类型修饰符,常类型是指使用类型修饰符const说明的类型,常类型的变量或对象的值是不能被更新的。 一、Const作用 如下表所示:No.作用说明参考代码
2015-03-23 22:36:53
453
原创 关于虚拟机装kali-linux的联网问题
我用的是VMware Workstation11,最近装了一个kali-linux,想玩一下密码破解,没想到装上之后网络连接显示的是活跃的却无法上网,我试过桥接等其它方式去联网,却依旧无法连上,在鸿鹄论坛上问过,也得不到满意的答案,求大神解惑!!!
2015-03-19 14:13:31
1650
原创 SOJ.分数排名查询
分数排名查询 总提交数量:641通过数量:239 时间限制:1秒 内存限制:256兆 题目描述张老师在同学们考试结束后,收到很多邮件。有的同学问学号为“12号”的多少分
2015-03-17 13:41:01
651
原创 SOJ.Output the Yanghui triangel
Output the Yanghui triangel 总提交数量:225通过数量:59 时间限制:1秒 内存限制:256兆 题目描述 Write program to o
2015-03-16 16:02:35
721
转载 结构体的定义以及使用
结构的定义定义一个结构的一般形式为:struct 结构名{成员表列}成员表由若干个成员组成,每个成员都是该结构的一个组成部分。对每个成员也必须作类型说明。例如:struct stu{int num;char name[20];int age;}结构类型变量的说明结构体定义并不是定义一个变量,而是定义了一种数据类型,这种类型是你定义的,
2015-03-16 15:29:11
521
原创 SOJ.旋转矩阵
旋转矩阵 总提交数量:14通过数量:10 时间限制:1秒 内存限制:256兆 题目描述输入一个n*n的字符矩阵,把它左转90度后输出。输入格式输入仅包含一个
2015-03-16 14:34:42
574
原创 SOJ.The hardest problem
1157. The hardest problem限制条件时间限制: 1 秒, 内存限制: 32 兆 题目描述In the final exam, you are given n problems to solve, each one of which has an integer value indicating its difficulty, the larger, the
2015-02-17 13:03:12
570
算法艺术与信息学竞赛
2015-01-10
O'Reilly:学习OpenCV(中文版)
2014-12-17
MYSQL 5.7 root 密码 忘记
2016-10-20
如何使一个代码完整(新人求教)
2015-11-04
关于C++输入输出流的一个小问题。。
2015-05-25
c++标识符相关知识。。。
2015-01-12
C++负数小数如何不按四舍五入保留两位小数
2015-01-09
客户机wn8.1,VM11虚拟机装了个kali linux,如何设置上网,急,谢!
2014-12-21
TA创建的收藏夹 TA关注的收藏夹
TA关注的人