ref:http://www.cplusplus.com/doc/tutorial/preprocessor/concolusion:directives:#define #undef#include#if #else #elif #endif #ifdef #ifndef#error ( #war...
分类:
编程语言 时间:
2015-08-09 23:50:31
阅读次数:
159
1:android studio 新建工程出错Error:Execution failed for task ':app:preDexDebug'.com.android.ide.common.process.ProcessException: org.gradle.process.internal...
分类:
移动开发 时间:
2015-08-09 18:36:32
阅读次数:
402
在C++的Windows 应用程序中经常碰到这种情况。解决方法:加入如下转换函数:LPCWSTR stringToLPCWSTR(std::string orig){ size_t origsize = orig.length() + 1; const size_t newsize = 100; s...
分类:
其他好文 时间:
2015-08-09 16:47:21
阅读次数:
136
/etc/init.d/mysql status提示ERROR! MySQL is running but PID file could not be found先打印MYSQL进程ps aux | grep mysql然后KILL进程kill -9 pid1 pid2 …再启动MYSQL/etc/...
分类:
数据库 时间:
2015-08-09 16:46:45
阅读次数:
127
今天在退房手续,变化了profile,当再次进行整理编译项目时。就出现了这个问题,在xCode 6 开发环境下出现了,出现这个错误提示Code Sign error: Provisioning profile XXXX can't be found 经查找 找到解决方式与大家共享,解决方式例如以下:...
分类:
其他好文 时间:
2015-08-09 15:34:31
阅读次数:
113
今天在使用bootstrap的时候引入的js文件出现错误Syntax error on token "Invalid Regular Expression Options", no accurate correc;大概意思就是无效的表达式什么的,具体解决方法如下:1、选中报错的js文件或报错内容。2...
分类:
Web程序 时间:
2015-08-09 14:03:46
阅读次数:
360
数组:数组的值可以改变但是数组的名不能改变:eg:scala>valgg=Array("ssss","ddddd")(数组的定义)scala>valgrre=Array(1,2,3)scala>grreres12:Array[Int]=Array(1,2,3)scala>grre=gg<console>:9:error:reassignmenttovalgrre=gg^scala>grreres13:Array..
分类:
编程语言 时间:
2015-08-09 10:59:45
阅读次数:
209
#include<stdio.h>#include<math.h>voidmain()
{
doublea,x0,x1;printf("inputa:\n");scanf("%lf",&a);if(a<0)printf("ERROR!\n");else
{
x0=a/2;
x1=(x0+a/x0)/2;do
{
x0=x1;
x1=(x0+a/x0)/2;
}while(fabs(x0-x1)>=1e-6);
}printf("Result:\n");printf(..
分类:
编程语言 时间:
2015-08-09 10:58:40
阅读次数:
136
#include<stdio.h>
#include<math.h>
voidmain()
{
doublea,x0,x1;
printf("inputa:\n");
scanf("%lf",&a);
if(a<0)printf("ERROR!\n");
else
{
x0=a/2;
x1=(x0+a/x0)/2;
do
{
x0=x1;
x1=(x0+a/x0)/2;
}while(fabs(x0-x1)>=1e-6);
}
printf("Result:\n")..
分类:
编程语言 时间:
2015-08-09 10:57:36
阅读次数:
101
#include<stdio.h>
#include<math.h>
voidmain()
{
doublea,x0,x1;
printf("inputa:\n");
scanf("%lf",&a);
if(a<0)printf("ERROR!\n");
else
{
x0=a/2;
x1=(x0+a/x0)/2;
do
{
x0=x1;
x1=(x0+a/x0)/2;
}while(fabs(x0-x1)>=1e-6);
}
printf("Result:\n")..
分类:
编程语言 时间:
2015-08-09 10:57:12
阅读次数:
119