上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 25 下一页
摘要: #include#include#include#includeintmain(){ inta[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16}; intn=16; inti,j,T=1000,tmp; srand(unsigned(time(NULL))); w... 阅读全文
posted @ 2014-08-10 10:09 商商-77 阅读(627) 评论(0) 推荐(0)
摘要: board.h#ifndefBOARD_H#defineBOARD_H#defineMAX_X40#defineMAX_Y30#defineNORMAL_LABEL0//普通label#defineBORDER_LABEL1//边界label#defineSNAKE_LABEL2//蛇身label#... 阅读全文
posted @ 2014-08-10 10:09 商商-77 阅读(829) 评论(0) 推荐(0)
摘要: #include"mainwindow.h"#include#include#include#include#include#include#includeMainWindow::MainWindow(QWidget*parent):QWidget(parent){init();this->setF... 阅读全文
posted @ 2014-08-10 10:09 商商-77 阅读(313) 评论(0) 推荐(0)
摘要: #include"iostream"usingnamespacestd;classA{public:A(intx1){x=x1;}voiddisp(){coutusingnamespacestd;#definePRICE30//注意这不是语句,末尾不要加分号intmain(){ intnum,tot... 阅读全文
posted @ 2014-08-10 10:09 商商-77 阅读(184) 评论(0) 推荐(0)
摘要: 1.菜单栏上的弹出窗口voidMainWindow::on_new_action_triggered(){MyDialogmyDialog;//MyDialog是一个uimyDialog.setModal(true);myDialog.exec();/*******上面的写法弹出的窗口挡住后面的窗口... 阅读全文
posted @ 2014-08-10 10:09 商商-77 阅读(154) 评论(0) 推荐(0)
摘要: QT连接数据库,在pro文件中加上QT += sql连接数据库QSqlDatabase OpenDB(){ QSqlDatabase db=QSqlDatabase::addDatabase("QODBC"); // 注意,对于express版本数据库, 一定要加\\sqlexpress... 阅读全文
posted @ 2014-08-10 10:09 商商-77 阅读(201) 评论(0) 推荐(0)
摘要: 1.简单Java多线程例子(继承Thread)public class hello extends Thread{ private String name; ... 阅读全文
posted @ 2014-08-10 10:09 商商-77 阅读(178) 评论(0) 推荐(0)
摘要: function initEcAd() {document.all.AdLayer1.style.posTop = -200;document.all.AdLayer1.style.visibility = 'visible'document.all.AdLayer2.style.posTop = ... 阅读全文
posted @ 2014-08-10 10:09 商商-77 阅读(175) 评论(0) 推荐(0)
摘要: QT += core gui widgets //引入需要用到的库qDebug()setStyleSheet("background:red; border-radius:25px");//设置样式表label->setFont(QFont("宋体",20));//设置标签的字体及大小ctrl + ... 阅读全文
posted @ 2014-08-10 10:09 商商-77 阅读(369) 评论(0) 推荐(0)
摘要: 我用的是ArcGIS中自带的python,版本是2.6.5print "Hello world";i=9;print i;a = "Hello world"print a;可以在三引号中自由使用单引号和双引号。转义字符 \n 和其他语言类似。变量的命名和其他语言类似。使用变量时只需要给它们赋一个值,... 阅读全文
posted @ 2014-08-10 10:09 商商-77 阅读(145) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 25 下一页