2009-11-22 00:41
this->codec=QTextCodec::codecForName("UTF-8");
m_ui->butall->setText(codec->toUnicode("猪猪")); |
2009-11-19 19:04
//start
#include "stuin.h"
#include "ui_stuin.h"
Stuin::Stuin(QWidget *parent)
: QWidget(parent), ui(new Ui::Stuin |
2009-11-18 11:42
#include "strmod.h"
int strmod ::rowCount(const QModelIndex &parent) const{
return this->stringList.count();
}
QVariant strmod::data(co |
2009-11-18 11:03
#include "mythread.h"
Mythread::Mythread(QString myfn)
{
this->fn=myfn;
|
2009-11-18 11:02
#include <QtGui/QApplication>
#include <QSplitter>
#include <QDirModel>
#include <QTreeView>
#include <QListView>
|
2009-11-17 22:22
#include <QtGui/QApplication>
#include "mainwindow.h"
#include "login.h"
#include <QDebug>
int main(int argc, char *argv[])
|
2009-11-16 11:32
#include <stdio.h>
#include <string.h>
#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
using namespace std;
const int SIZE = 40010;
const int LEN = 10010;
const int NDSZ = LEN*2;
class Edge{
public:
int fr,to;
Edge(int f=0,int t=0):fr(f),to(t){};
};
Edge edat[SIZE];
Edge * front[SIZE];
int ext;
class Node{
public:
int nowid;
int frst,fr |
2009-11-14 18:01
<html>
<head>
<script type="text/xquery">
declare sequential function local:main(){
browser:alert("miao")
};
</script>
</head>
<body>
<h1>miao miao </h1>
</body>
</html>
|
2009-11-13 09:26
#include <stdio.h>
#include <string.h>
const int SIZE=30;
char pre[SIZE];
char mid[SIZE];
char sufix(SIZE);
class Node{
public:
Node * le , *ri;
char val;
Node(char v):val(v),le(NULL),ri(NULL){};
};
Node * work( int lo, int hi);
void show(Node * );
void clear(Node *);
int nd=0;
int main(){
// freopen("dat.txt","r",stdin);
while (scanf("% |
2009-11-11 09:35
//T.g
//start
grammar T;
r: 'call' ID ';'{System.out.printf("invoke "+$ID.text);};
ID: 'a'..'z'+;
WS: (' '|'\n'|'\r')+ {$channel=HIDDEN;} ;
//end
//start Test.java
import org.antlr.runtime.*;
public class Test{
public static void main(String atgs[]) throws Exception{
ANTLRInputStream input = new ANTLRInputStream(System.in);
TLexer lexer = new TLexer(input);
CommonTokenSt |
2009-11-09 23:45
/*
LANG: C++
ID: yjyfrom1
PROG: c |
2009-11-04 23:12
Windows IP Configuration
Host Name . . . . . . . . . . . . : YJYHOME
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . |
2009-11-04 17:12
2009-11-04 15:03
1〉新建指针
2〉主机名:smtp.yjy0711.com //可以从正向找
|
2009-11-03 21:19
//start
#include <stdio.h>
const int SIZE = 100;
char buff[SIZE];
unsigned int dat[]={0x4500,
0x003c ,
0x4d65 ,
0x0000 ,
0x8001,
0x0000 ,
0xac10 ,
0xe027,
0xac10 ,
0xe001};
int main(){
int i;
int len =sizeof(dat)/sizeof(dat[0]);
printf("len:%d\n",len);
int sum=0;
for (i=0;i<len;i++){
printf("0x%04X\n",dat[i]);
sum+=dat[i];
}
sum= |
|
|