摘要: #include <iostream> #include<conio.h> #include <windows.h> using namespace std; enum vehicleStaus {rest, running}; //车辆状态:泊车、行进 class vehicle //车辆类,虚基 阅读全文
posted @ 2017-04-26 21:29 zhchoutai 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 今天中午看了最新一期的“开讲啦”。一直都非常喜欢这个节目。一次重新有温度的演讲传递给我们无尽的正能量。这一期的嘉宾是魏世杰老人。他的前半生致力于两弹一星的研究,冒着随时都有可能牺牲的危急坚持了二十五年;然而更让我感动的是老人的后半生,照应患有精神分裂症的妻子和女儿还有先天性弱智的儿子,这种压力可想而 阅读全文
posted @ 2017-04-26 20:29 zhchoutai 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 代码整个运行流程 參数设置 input数据。设置数据格式 batchFinished(),处理数据(Tokenzier。Stemming,Stopwords) determineDictionary(); 统计计算(TF。IDF) 归一化 output 一些变量和方法的作用 m_Dictionary 阅读全文
posted @ 2017-04-26 20:24 zhchoutai 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 1、计算机中的进制 2进制:逢二进1 0 1 8进制:逢八进1 0 1 2 3 4 5 6 7 10进制:逢十进1 默认的进制 0 - 9 16进制:逢十六进1 0 - 9 A B C D E F (内存的地址格式) 2、进制的转换问题 三个要素: 数位(0-7)、 基数(每一位能取值的个数)、 位 阅读全文
posted @ 2017-04-26 19:12 zhchoutai 阅读(348) 评论(0) 推荐(0) 编辑
摘要: public class HighFrequencyWord { public static void findFrequencyWord(String str) { Collection<Integer> al=new ArrayList<Integer>(); Map<String,Intege 阅读全文
posted @ 2017-04-26 18:02 zhchoutai 阅读(649) 评论(0) 推荐(0) 编辑
摘要: - (void)timerFireMethod:(NSTimer*)theTimer//弹出框 { UIAlertView *promptAlert = (UIAlertView*)[theTimer userInfo]; [promptAlert dismissWithClickedButtonI 阅读全文
posted @ 2017-04-26 17:28 zhchoutai 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 在学习Java时和《编程导论(Java)》中,大量使用了重载的System.out.println()等类似的输出语句。特别是书籍中,一行语句中包括System.out.println会显得太长,超过一行代码40个字符的限制,因而请静态引入tips.Print并使用相应方法代替它们。通常以 p替代S 阅读全文
posted @ 2017-04-26 16:28 zhchoutai 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 题目:给你一个X和O组成的串,每一个O有一个分。为他前面连续的O个数+1,求全部O的分数和。 分析:dp,简单题。lis类似物。每一个位记录连续的个数就可以。 说明:快500了(⊙_⊙)。 #include <algorithm> #include <iostream> #include <cstd 阅读全文
posted @ 2017-04-26 15:10 zhchoutai 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Gallery组件用于拖拽浏览图片,以下我们就来看一下怎样实现。 一、实现Gallery 1.布局文件非常easy: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android. 阅读全文
posted @ 2017-04-26 14:17 zhchoutai 阅读(134) 评论(0) 推荐(0) 编辑
摘要: edittext 默认自己主动获取焦点的 并且会出现小键盘非常烦人 <LinearLayout android:id="@+id/focus" android:layout_width="fill_parent" android:layout_height="60dp" android:backgr 阅读全文
posted @ 2017-04-26 12:54 zhchoutai 阅读(1569) 评论(0) 推荐(0) 编辑
摘要: 使用标签的缺点在于必需要有源代码(由于标签必须放在源代码上),当我们并没有程序源代码的时候。我们仅仅有使用xml进行配置。 比如我们在xml中配置某个类的属性 <bean name="studentService"class="com.bjsxt.service.StudentService"> < 阅读全文
posted @ 2017-04-26 12:07 zhchoutai 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 声明 笔者近期意外的发现 笔者的个人站点 http://tiankonguse.com/ 的非常多文章被其他站点转载。可是转载时未声明文章来源或參考自 http://tiankonguse.com/ 站点,因此。笔者加入此条声明。 郑重声明:这篇记录《【百度之星2014~复赛 解题报告~正解】The 阅读全文
posted @ 2017-04-26 11:28 zhchoutai 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 依据出生日期计算年龄 public class DateGetAge { public static int getAge(Date birthDay) throws Exception { Calendar cal = Calendar.getInstance(); if (cal.before( 阅读全文
posted @ 2017-04-26 10:45 zhchoutai 阅读(659) 评论(0) 推荐(0) 编辑
摘要: where 1=1; 这个条件始终为True,在不定数量查询条件情况下。1=1能够非常方便的规范语句。 一、不用where 1=1 在多条件查询中的困扰 举个样例,假设您做查询页面,而且。可查询的选项有多个,同一时候。还让用户自行选择并输入查询关键词,那么,按平时的查询语句的动态构造,代码大体例如以 阅读全文
posted @ 2017-04-26 09:24 zhchoutai 阅读(749) 评论(0) 推荐(0) 编辑
摘要: s3c6410 Linux 驱动开发环境搭建 —— 既然你是做Linux开发的,你还用虚拟机? 非常多人都在win下做开发,于是SD_writer.exe之类的烧写工具“大行其道”,多是用虚拟机Linux。全然转到Linux下学习開始蛮不爽的,开发板制作商送的教程都是些讲Win-CE的东东,感觉实质 阅读全文
posted @ 2017-04-26 08:10 zhchoutai 阅读(502) 评论(0) 推荐(0) 编辑