main.cxx#include #include #include #include using
namespace std; int main() { sqlite3* file; int flag; flag =
sqlite3_open("./stu.db", &file); if(...
分类:
数据库 时间:
2014-06-29 14:36:03
阅读次数:
254
最近写了一个shell脚本,用到了cp、time、cut、awk命令,把他们的使用方法给写下来:1.cp和mvcp命令:用来完成文件的复制,从源文件夹复制到目标文件夹。执行后源文件夹和目标文件夹均有源文件。mv
命令:用来移动文件。执行后,源文件夹中没有源文件。我经常用mv命令来重命名文件注意:cp...
分类:
系统相关 时间:
2014-06-29 14:03:19
阅读次数:
5085
今天在安装Aptana Studio
2时出现这个东东,卸载后再安装依旧不行最后找到原因原因:就是由于你把“我的文档”的位置修改造成的。但Aptana还以为“我的文档”的位置是在系统的默认路径下。解决办法:右键快捷方式,找到“属性”,把“目标”修改为"D:/Program
Files/Aptana ...
分类:
其他好文 时间:
2014-05-30 09:38:25
阅读次数:
250
事件: 今软件包有更新,进入更新管理器,点击安装更新,出现错误。错误提示:E: 无法获得锁
/var/cache/apt/archives/lock - open (11 资源临时不可用)E:
无法对下载目录加锁解决步骤:将错误提示输入google中搜索。获得第一个方案,打开终端,输入: ps -a...
分类:
其他好文 时间:
2014-05-30 09:12:32
阅读次数:
246
mysql too many open
connections问题解决方法。原文参考:http://www.jbxue.com/db/10068.html原因主要是:max_connections配置问题导致,它必须在[mysqld]下面才会生效。曾经以为在my.cnf写入max_connectio...
分类:
数据库 时间:
2014-05-30 05:22:53
阅读次数:
319
错误提示:E: Could not get lock /var/lib/dpkg/lock -
open (11: Resource temporarily unavailable) E: Unable to lock the administration
directory (/var/lib/d...
分类:
其他好文 时间:
2014-05-30 03:01:41
阅读次数:
234
点击Open
file导入arff格式的数据,这里我导入weka内置的weather.numeric.arff数据集查看preprocess右边的三个按钮,分别是分类、聚类、关联分析,选择你需要使用的功能这里我选择分类,点击choose按钮选择要使用的分类方法这里选择j48,一种决策树算法,再点击s...
分类:
其他好文 时间:
2014-05-29 22:57:28
阅读次数:
462
1. 最基本的读文件方法:# File: readline-example-1.pyfile =
open("sample.txt")while 1: line = file.readline() if not line: break pass # do
something 一行一行得从文件读数据....
分类:
编程语言 时间:
2014-05-29 01:34:30
阅读次数:
402
使用这个功能时,遇到几个问题: 1. 当点击library时,ie报错:A problem
with this webpage caused Internet Explorer to close and reopen the tab
解决方法:使用Internet Explorer (No Add-...
分类:
其他好文 时间:
2014-05-28 16:17:47
阅读次数:
536
一、if判断数字: $A=12 $B=15 if(("$A"<"$B"))
if(("$A"=="$B"))字符串: $A="HELLO" $B="WORLD" if [ "$A" = "FACT_LOGIN_USER" ] if [
"$A" = "$B" ]PS:字符串比较的时候...
分类:
其他好文 时间:
2014-05-28 09:32:44
阅读次数:
347