$(function(){ // 判断整数value是否等于0 jQuery.validator.addMethod("isIntEqZero", function(value, element) { value=parseInt(value); ...
分类:
Web程序 时间:
2014-08-11 11:36:32
阅读次数:
380
1、用sort对结构体中字符串进行二级排序
#include
#include
using namespace std;
struct s
{
int d;
char c[10];
}ss[15];
bool cmp(s a,s b)
{
if(strcmp(a.c,b.c)!=0)
...
分类:
其他好文 时间:
2014-08-11 06:19:01
阅读次数:
171
ATL宏:USES_CONVERSION;W2AA2WCString StringUtil::UTF8_to_UNICODE(const char *utf8_string, int length){int wcsLen = ::MultiByteToWideChar(CP_UTF8, NULL, ...
分类:
编程语言 时间:
2014-08-11 00:17:31
阅读次数:
364
staticstd::wstringMBytesToWString(constchar*lpcszString);staticstd::stringWStringToMBytes(constwchar_t*lpwcszWString);staticstd::wstringUTF8ToWStrin.....
分类:
编程语言 时间:
2014-08-11 00:15:30
阅读次数:
446
1.安装linux时选择中文系统,或安装后vi /etc/sysconfig/i18n文件改为:LANG= zh_CN.UTF-8 2.在secureCRT里面: Session Options(会话选项) -> Terminal(终端) -> Appearance(显示), 将Fonts(字体)选...
分类:
其他好文 时间:
2014-08-11 00:02:10
阅读次数:
296
#include #include #include #include #include using namespace std;struct node{ char msg[20]; int a,b;};struct cmp{ bool operator()(const node ...
分类:
其他好文 时间:
2014-08-10 21:17:20
阅读次数:
214
#include#includeusing namespace std;int main(void){ while(true) { set s; int n, doubles = 0; while(cin>>n && n) { if(n == -1) ...
分类:
其他好文 时间:
2014-08-10 21:11:20
阅读次数:
298
C语言:数组8(统计各分数段的人数)时间限制(普通/Java):1000MS/3000MS 运行内存限制:65536KByte总提交:491 测试通过:298描述输入一个班C语言的考试成绩,统计0-59、60-69、70-79、80-89、90-100每个分数...
分类:
其他好文 时间:
2014-08-10 18:31:20
阅读次数:
504
极目,远眺(752284118) 16:03:43poj 1002 用C++提交AC,G++超时#include #include #include #include #include using namespace std;map my;char a[30]="22233344455566677....
分类:
其他好文 时间:
2014-08-10 18:28:30
阅读次数:
233
1、malloc作用:分配内存块原型:void *malloc(size_t size);size表示要分配的字节数返回值:返回一个指向所分配空间的void指针,假设没有足够的内存可用,则返回NULL。假设要返回一个指向特定类型的指针,则在返回值上用一个类型转换。比如:char* p; p=(cha...
分类:
其他好文 时间:
2014-08-10 18:14:11
阅读次数:
196