上一页 1 ··· 4 5 6 7 8
括号匹配Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the corr... Read More
posted @ 2015-02-19 13:37 sunalive Views(125) Comments(0) Diggs(0)
#include #include #include #include #include #include #include using namespace std;bool pre_arry[1100];void pre_cnt() //素数筛{ memset(pre_arry,1,sizeof... Read More
posted @ 2014-06-03 10:32 sunalive Views(99) Comments(0) Diggs(0)
#include #include #include #include #include #include #include using namespace std;void cmp(char s[]){ int i=0; char tmp; if(s[0]>s[1]){ tmp = s[0];... Read More
posted @ 2014-04-26 11:16 sunalive Views(163) Comments(0) Diggs(0)
素数筛 今天让张神帮我看写了个素数筛,大神就是大神不多说 直接上代码! #include #include #include #include #include #include #include using namespace std;bool pre_arry[1100];void pre_cn... Read More
posted @ 2014-04-25 21:39 sunalive Views(138) Comments(0) Diggs(0)
刚吃完饭,写一会python 准备去上课,哇咔咔! 1.python是动态类型语言,也就是说 不需要预先声明变量的类型。 不支持 自增++ , 自减-- Read More
posted @ 2014-03-21 12:44 sunalive Views(108) Comments(0) Diggs(0)
1.如上图,下载最新adt-bundle: http://developer.android.com/sdk/index.html 里面集成了 eclipse,SDK,SDK Manager。2.设置环境变量,需要将SDK中tools,platform-tools路径都添加进path中。例如,我电脑... Read More
posted @ 2014-01-25 19:51 sunalive Views(141) Comments(0) Diggs(0)
来自百度:搜索顺序为:系统目录-->环境变量目录-->用户自定义目录。而""则是用户自定义目录-->系统目录-->环境变量目录.至于这区别带来的影响就是效率问题。如果一个你自己定义的头文件,你用来包含,那么搜索这个头文件时,将会先从系统目录查找。其实这个头文件可能就在你的工程目录下,但是还是要把系统... Read More
posted @ 2013-03-19 22:26 sunalive Views(488) Comments(0) Diggs(0)
问题描述:c语言程序一闪就消失,看不到输出结果产生原因:NULL解决方法:1.添加语句:最后添加getchar();或是 调系统的 system("pause"),要添加头文件stdlib.h; Read More
posted @ 2013-03-19 22:14 sunalive Views(416) Comments(0) Diggs(0)
3月12日,买了本程序设计导引,准备在poj上刷题,但感觉难度挺大的,慢慢来吧。 Read More
posted @ 2013-03-12 19:15 sunalive Views(159) Comments(0) Diggs(0)
上一页 1 ··· 4 5 6 7 8