公告版位
需要找什麼嗎? 左邊分類或許可以幫助你...
安安你好  
 
#include<QApplication>
#include<QLabel>
 
intmain(intargc,char*argv[]) {
 
    QApplicationa(argc,argv);
 
    QWidget*w=newQWidget();
 
    QLabeltxt(w);
    txt.setText("世界你好");
 
    w->setWindowTitle("安安你好");
    w->setMinimumWidth(300);
    w->setMinimumHeight(200);
    w->show();
 
    returna.exec();
}



安安你好_2  

#include<QApplication>
#include<QLabel>
#include<QVBoxLayout>
#include<QPushButton>
 
intmain(intargc,char*argv[]){
 
    QApplicationa(argc,argv);
 
    QWidget*w=newQWidget();
 
    //建立文字(Label)
    QLabeltxt(w);
    txt.setText("世界你好");
 
    //建立按鈕(Button)
    QPushButton*b=newQPushButton(QObject::tr("關閉拉"),w);
    QObject::connect(b,SIGNAL(clicked()),w,SLOT(close()));//按下按鈕關閉程式
 
    //LabelButton加入垂直Layout
    QVBoxLayout*layout=newQVBoxLayout;
    layout->addWidget(&txt);
    layout->addWidget(b);
 
    //Layout加入Widget
    w->setLayout(layout);
 
    //設定:視窗標題、大小
    w->setWindowTitle("安安你好");
    w->setMinimumWidth(300);
    w->setMinimumHeight(200);
 
    //顯示視窗
    w->show();
 
    returna.exec();
}
 
 
 

黃彥霖 發表在 痞客邦 留言(0) 人氣()

PrtScr%20capture_2.jpg 

 
直接顯示:

import org.bytedeco.javacv.CanvasFrame;
import org.bytedeco.javacv.Frame;
import org.bytedeco.javacv.FrameGrabber;
import org.bytedeco.javacv.VideoInputFrameGrabber;
 

黃彥霖 發表在 痞客邦 留言(0) 人氣()

這是進階版,入板可以參考這裡 http://lolikitty.pixnet.net/blog/post/68347592

--------------------------------------------------------------------------------------

MyServer.java


import java.net.*;

public class MyServer {

黃彥霖 發表在 痞客邦 留言(2) 人氣()

Java 客戶端
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.util.List;
import java.util.Map;

黃彥霖 發表在 痞客邦 留言(0) 人氣()

雖然我標題寫 Json、Jsonb 操作,但實際上我這裡只會用 Jsonb 來示範

會用 Jsonb 實際上就會用 Json ,因為 Jsonb 效能比較好 (資料無排序),但如果你要有排序功能,可以用傳統 Json 來操作

前置作業重點:

插入 Jsonb 無法用 INSERT INTO ,因為他找不到 資料 插....,所以要先用 INSERT INTO 先插入一個 空 資料,這樣未來 UPDATE 才找的到洞插入...

更多資源可以參考 PostgreSQL 官方的 Json 文件:http://www.postgresql.org/docs/9.5/static/function...

黃彥霖 發表在 痞客邦 留言(1) 人氣()