摘要: 用来将Java代码插入Servlet的_jspService方法中第个访客 第个访客 阅读全文
posted @ 2013-10-17 19:30 ONWAYO 阅读(136) 评论(0) 推荐(0)
摘要: 1、一开始jsp的默认文件中是这样子的这时不管是从bean取数据还是out.print("中文")都会乱码在jsp文件开始中输入主要是第二句的页面编码2、如果webapplication的编码规则是utf-8,如网页头中的:那么js文件中如果有中文输出就会出现乱码(如标题栏等),解决此个问题可在引用javascript输出的地方加上charset="gb2312"或charset="big5"(假设输出的是Big5繁体字)。另一种解决方法是把js文件保存为utf-8编码。用代码编译器将js文件保存为utf-8编码(如:myeclips 阅读全文
posted @ 2013-10-17 17:06 ONWAYO 阅读(193) 评论(0) 推荐(0)
摘要: #include ""先从本地目录开始寻找,然后去系统路径#include 先从系统目录寻找,后从本地目录两者均可,速度不同引用非自己定义的头文件时最好用#include 阅读全文
posted @ 2013-10-07 16:40 ONWAYO 阅读(238) 评论(0) 推荐(0)
摘要: 1 CString str;2 double pos;3 TCHAR* strTmp;//临时(无用?)4 GetDlgItem(IDC_EDIT1)->GetWindowText(str);5 pos = wcstod(str,&strTmp); 阅读全文
posted @ 2013-09-14 15:15 ONWAYO 阅读(111) 评论(0) 推荐(0)
摘要: 错误提示:Project : error PRJ0019: 某个工具从以下位置返回了错误代码: "正在执行预链接事件...")解决方法1.对着"项目"右键 属性2.在“配置属性"下的“生成事件”中的“预链接事件”中,把“命令行”中的内容删掉,然后就可以编译成功了。 阅读全文
posted @ 2013-05-27 13:05 ONWAYO 阅读(359) 评论(0) 推荐(0)
摘要: 首次写博客,见谅!win32控制台程序 1 #include "stdafx.h" 2 #include 3 #include 4 #include 5 #include 6 #include 7 8 using namespace std; 9 10 11 double gaussrand()12 {13 static double V1, V2, S;14 static int phase = 0;15 double X;16 double a[100];17 srand((unsigned)time(NULL));18 19 for (in... 阅读全文
posted @ 2013-01-27 20:35 ONWAYO 阅读(6006) 评论(0) 推荐(0)