原创 C++ GUI Qt4編程筆記1

信號和槽,以及簡單佈局 #include <QApplication> #include <QHBoxLayout> #include <QSlider> #include <QSpinBox> int main(int argc,

原创 pygame入門練習

1.畫圓和矩形 import pygame pygame.init() screen = pygame.display.set_mode([640,480]) pygame.display.set_caption('Draw')

原创 html參考

HTML Basic Document <html> <head> <title>Document name goes here</title> </head> <body> Visible text goes here </body

原创 wpf登錄窗口示例

對項目(我這兒是WpfApplication1)右鍵-添加-新建項,左側選數據,選ado.net模型 點添加之後,選擇從數據庫生成(如果要重新創建數據庫選空模型),下一步之後選擇新建連接(會自動創建連接字符串),服務器名寫本機名,寫已有

原创 C++ 控制檯簡單電話本實現

<span style="font-family:Courier New;font-size:14px;">#include<iostream> #include<fstream> #include<string> using names

原创 python shell電話本sqlite版

<span style="font-family:Courier New;font-size:14px;">#-*- coding:utf-8 -*- import sqlite3 import os conn=sqlite3.c

原创 VS opengl開發配置

<img src="https://img-blog.csdn.net/20141106162518018?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvTERaMTk0Mw==/font/5a

原创 第一個Windows窗體程序

/*------------------------------------------------------------ HELLOWIN.C -- Displays "Hello, Windows 98!" in client

原创 pydev django示例

#urls.py <span style="font-family:Courier New;font-size:14px;">from django.conf.urls import include, url from django.c

原创 python shell電話本

<span style="font-family:Courier New;font-size:14px;">class People: def __init__(self,*args, **kwargs): sel

原创 C素數相關

#include<stdio.h> #include<math.h> int isPrime(int); //int isPrime2(int); //void primeDecompositon(int num); int mai

原创 django配置

首先安裝python。 下載django,解壓到任意位置,在cmd中切換路徑到該位置,運行python setup.py install(要求先把python配入環境變量) 接着創建第一個項目 首先cd到待創建項目的位置,然後運行pyth

原创 qt用設計器實現簡單四則運算計算器

////dialog.h #ifndef DIALOG_H #define DIALOG_H #include <QDialog> #include <QString> namespace Ui { class Dialog; }

原创 Qt連接數據庫之sqlite

先是控制檯連接,稍後轉GUI #include <QCoreApplication> #include<QtSql> #include<QDebug> #include<QString> int main(int argc, char

原创 C++初始化列表

#include<iostream> using namespace std; class firstClass { private: int a,b; public: firstClass(int mya,int myb)