代码:
#include
#include
#include
#include
int main()
{
int num[100];
int odd = 0, even = 0;
std::string str;
getline(std::cin, str);
std::stringstream s(str);
int j = 0;
while(getline(s, s...
分类:
其他好文 时间:
2014-07-13 13:54:31
阅读次数:
280
执行:
./configure --prefix=/usr/local/php --enable-fastcgi --enable-fpm
之后出现
Running FastCGI Process Manager checks
checking for php-fpm config file path... $prefix/etc/php-fpm.conf
checking for ...
分类:
其他好文 时间:
2014-07-13 13:50:43
阅读次数:
205
用Eclipse导入Java项目时,经常会出现“No projects are found to import”错误(尤其是导入网上下载的项目时),这是因为文件夹里面没有.project和.classpath两个文件。解决的办法很简单:1、从其他Java项目里面复制这两个文件2、修改文件,.clas...
分类:
编程语言 时间:
2014-07-13 09:07:44
阅读次数:
245
在Linux下执行svn add *时出现如下错误:svn: Valid UTF-8 data(hex: 4b)followed by invalid UTF-8 sequence(hex: fc 63 68 65)出现这个错误是因为svn库里有文件的名字不是utf-8编码的,这种情况对于中文来说很...
分类:
系统相关 时间:
2014-07-13 08:03:13
阅读次数:
324
前几天发布应用时出现了如下所示的一段错误提示信息:weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUNDproblem: cvc-enumeration-valid: string value '3.0' is ...
分类:
Web程序 时间:
2014-07-13 00:53:05
阅读次数:
367
今天在搭界面的时候发现个问题,以前从来没碰到过,感觉很奇葩,找了好长时间终于找到了。把这个警告截图上来和大家分享下。
这个提示的意思是说你用了这个方法
[UIImage imageNamed:name];但是这个name却是空的,所以就报了这个错了。
解决方法,在项目中搜索[UIImage imageNamed:,然后打印看看所谓的name是否为空。找到后替换。...
分类:
其他好文 时间:
2014-07-12 22:59:25
阅读次数:
397
1.修改redhat enterprise5 语言
问题描述:切换语言
cd /etc/sysconfig
vi i18n
将LANG=en_US.UTF-8
改成LANG=zh_CN.gb2312
2.bash: ifconfig: command not found
问题描述:
切换到root用户下
[root@localhost /]$ ifconfig
依然提示:“bash: ifconfig: command not found”
whereis ifconfig 看一下这个命令在...
分类:
系统相关 时间:
2014-07-12 22:56:34
阅读次数:
416
1
最简单而又令人兴奋的命令: manage.py syncdb
创建了指定app中的model对应的数据库表,如果是第一次使用此命令,会提示是否创建超级用户,输入用户名,Email和密码,接着可以看到在创建索引:
2. validate
验证Model的正确性:manage.py validate,若Model全部有效,会提示:0 errors found.
3....
分类:
数据库 时间:
2014-07-12 20:31:24
阅读次数:
278
点击进行安装,将会弹出错误提示是:Cannotcompletetheinstallbecauseoneormorerequireditemscouldnotbefound.Softwarebeinginstalled:AndroidDevelopmentTools16.0.1.v2011121502...
分类:
其他好文 时间:
2014-07-12 15:48:14
阅读次数:
262