|
|
- さみ はらしない
- 5 years ago
- Views:
Transcription
1 Qt4.0 GUI Nishio
2
3 3 1 Hello Qt! Hello Qt! (QLabel) (QPushButton) (QFont) Layout Layout Layout QGridLayout Layout Layout (addlayout) SIGNAL/SLOT SIGNAL/SLOT Slot Connection Signal/Slot Qt Designer Qt Designer Qt Designer Signal/Slot
4
5 5 1 Hello Qt! 1.1 Hello Qt! HelloQt! 1 #include <QApplication> 2 #include <QLabel> 3 4 int main(int argc, char** argv) 5 { 6 QApplication app(argc, argv); 7 QLabel* label = new QLabel("Hello Qt!"); 8 label->show(); 9 return app.exec(); 10 } Linux qmake -project qmake make Windows VisualStudio
6 1.1Hello Qt! qmake -project -t vcapp -o hello.pro qmake hello.vcproj VisualStudio Windows : Windows Hello 1,2 QApplication QLabel Qt GUI QApplication Qt 6 QApplication QApplication argc argv Qt 7 Hello Qt! 8 9 Qt QLabel new delete 6
7 1 Hello Qt! 1.2 (QLabel) 1.1 QLabel QLabel QLabel* label = new QLabel("Hello Qt!"); QLabel* label = new QLabel("<i>Hello Qt!</i>"); : Windows Hello2 <i> </i> HTML HTML QLabel QLabel* label = new QLabel("<h2><i>Hello<br>Qt!</i></h2>"); : Linux Test2 HTML WWW ( 7
8 1.3 (QPushButton) 1.3 (QPushButton) 1 #include <QApplication> 2 #include <QPushButton> 3 4 int main(int argc, char** argv) 5 { 6 QApplication app(argc, argv); 7 QPushButton* button = new QPushButton("Hello Qt!"); 8 button->resize(200,50); 9 button->move(100,50); 10 button->show(); 11 return app.exec(); 12 } 1.4: QPushButton (on Windows) QLabel QPushButton 8 9 resize 200Pixels, 50Pixels move move( x, y ) (0,0) x y resize, move QPushButton QLabel 8
9 1 Hello Qt! QPushButton QLabel HTML Widget (QFont) (QPushButton) Qt #include <QFont> button->setfont( QFont("Times", 15, QFont::Bold) ); QFont QFont QFont QFont(const QString & family, int pointsize = -1, int weight = -1, bool italic = false ); setfont QFont QFont 1 Times System Windows Tahoma 2 3 QFont::Bold 75 QFont::Bold QFont::Normal(50 ) QFont::Light( Window Gadget QPush- Button QLabel 9
10 1.5 4 bool true 1.5 button->setfont( QFont("Times", 15, QFont::Bold, true) ); 1.5: QFont (on Windows) #include <QApplication> 2 #include <QLabel> 3 4 int main(int argc, char** argv) 5 { 6 QApplication app(argc, argv); 7 QLabel* label = new QLabel(" Qt"); 8 label->show(); 9 return app.exec(); 10 } 1.6 Linux Windows 10
11 1 Hello Qt! 1.6: (on Linux) Windows Shift-JIS Unix EUC-JP UTF-8 Qt 1 #include <QApplication> 2 #include <QLabel> 3 #include <QTextCodec> 4 #include <QString> 5 6 int main(int argc, char** argv) 7 { 8 QApplication app(argc, argv); 9 QTextCodec::setCodecForTr(QTextCodec::codecForLocale()); 10 QLabel* label = new QLabel(QObject::tr(" Qt")); 11 label->show(); 12 return app.exec(); 13 } 1.7 (a)on Linux (b)on Windows 1.7:
12 1.5 QTextCodec::setCodecForTr(QTextCodec::codecForLocale()); setcodecfortr QTextCodec QTextCodec::codecForLocale() QTextCodec::setCodecForTr(QTextCodec::codecForName( Shift-JIS ) ); codecforname 10 QObject::tr tr 12
13 13 2 Layout 2.1 Layout 1 1 #include <QApplication> 2 #include <QPushButton> 3 4 int main(int argc, char** argv) 5 { 6 QApplication app(argc, argv); 7 QPushButton* button = new QPushButton("Hello Qt!"); 8 QPushButton* button2 = new QPushButton("Goodbye"); 9 button->show(); 10 button2->show(); 11 return app.exec(); 12 } : (on Windows)
14 2.2 Layout 1 2 MainWindow Layout Layout 2.2 Layout Layout QHBoxLayout QVBoxLayout QHBoxLayout H Horizontal QVBoxLayout V Vertical QHBoxLayout 3 Layout 1 #include <QApplication> 2 #include <QPushButton> 3 #include <QHBoxLayout> 4 5 int main(int argc, char** argv) 6 { 7 QApplication app(argc, argv); 8 QWidget* window = new QWidget; 9 QPushButton* buttona = new QPushButton("Button A"); 10 QPushButton* buttonb = new QPushButton("Button B"); 11 QPushButton* buttonc = new QPushButton("Button C"); 12 QHBoxLayout* layout = new QHBoxLayout; layout->addwidget(buttona); 1 show 2 14
15 2 Layout 15 layout->addwidget(buttonb); 16 layout->addwidget(buttonc); 17 window->setlayout(layout); 18 window->show(); return app.exec(); 21 } 3 <QHBoxLayout> QHBoxLayout 8 QWidget window QHBoxLayout : (on Windows) QHBoxLayout QVBoxLayout QVBoxLayout QGridLayout QGridLayout Layout QGrid- Layout QHBoxLayout QVBoxLayout 1 #include <QApplication> 2 #include <QPushButton> 15
16 2.3QGridLayout 2.3: (on Windows) 3 #include <QGridLayout> 4 5 int main(int argc, char** argv) 6 { 7 QApplication app(argc, argv); 8 QWidget* window = new QWidget; 9 QPushButton* buttona = new QPushButton("Button A"); 10 QPushButton* buttonb = new QPushButton("Button B"); 11 QPushButton* buttonc = new QPushButton("Button C"); 12 QGridLayout* layout = new QGridLayout; layout->addwidget(buttona,0,0); 15 layout->addwidget(buttonb,0,1); 16 layout->addwidget(buttonc,1,0,1,2); window->setlayout(layout); 19 window->show(); 20 return app.exec(); 21 } 2.4 addwidget addwidget ) 16
17 2 Layout 2.4: (on Windows) 2.5: GridLayout 2.4 Layout Layout (addlayout) addlayout Layout Layout 1 #include <QApplication> 2 #include <QPushButton> 3 #include <QHBoxLayout> 4 #include <QVBoxLayout> 5 6 int main(int argc, char** argv) 7 { 8 QApplication app(argc, argv); 9 QWidget* window = new QWidget; 10 QPushButton* buttona = new QPushButton("Button A"); 11 QPushButton* buttonb = new QPushButton("Button B"); 12 QPushButton* buttonc = new QPushButton("Button C"); 17
18 2.4Layout Layout (addlayout) 13 QPushButton* buttond = new QPushButton("Button D"); QVBoxLayout* mainlayout = new QVBoxLayout; 16 QHBoxLayout* layouta = new QHBoxLayout; 17 QVBoxLayout* layoutb = new QVBoxLayout; layouta->addwidget(buttona); 20 layouta->addwidget(buttonb); 21 layoutb->addwidget(buttonc); 22 layoutb->addwidget(buttond); mainlayout->addlayout(layouta); 25 mainlayout->addlayout(layoutb); window->setlayout(mainlayout); 28 window->show(); 29 return app.exec(); 30 } mainlayout : (on Windows) 18
19 2 Layout 2.5 new delete delete 3 buttona buttonb delete Qt delete delete delete 3 new delete 19
20
21 21 3 SIGNAL/SLOT 3.1 SIGNAL/SLOT Qt Qt / (Signal and Slot) (QPushButton) clicked clicked SLOT SLOT quit ) 1 #include <QApplication> 2 #include <QPushButton> 3 4 int main(int argc, char** argv) 5 { 6 QApplication app(argc, argv); 7 QPushButton* button = new QPushButton("Quit"); 8 QObject::connect(button, SIGNAL( clicked() ), 9 &app, SLOT(quit()) ); 10 button->show(); 11 return app.exec(); 12 } 3.1 connect ( ) Quit button 2 SIGNAL(
22 3.2 Slot 3.1: (on Windows) ) QPushButton clicked clicked 3,4 app 3 4 SLOT( ) QApplication quit 3.2: Signal/Slot 3.2 Slot
23 3 SIGNAL/SLOT 3.3: (on Windows) QLineEdit QLabel Signal textchanged (QLineEdit ) Slot Signal QLabel QLineEdit QLabel settext Window QLineEdit Window setwindowtitle 1 #include <QApplication> 2 #include <QLabel> 3 #include <QHBoxLayout> 4 #include <QLineEdit> 5 6 int main(int argc, char** argv) 7 { 8 QApplication app(argc, argv); 9 QLabel* label = new QLabel("Hello"); 10 QLineEdit* edit = new QLineEdit; 11 QWidget* window = new QWidget; 12 QHBoxLayout* layout = new QHBoxLayout; QObject::connect(edit,SIGNAL(textChanged(QString)), 15 label,slot(settext(qstring)) ); 16 QObject::connect(edit,SIGNAL(textChanged(QString)), 17 window,slot(setwindowtitle(qstring)) ); layout->addwidget(edit); 20 layout->addwidget(label); 21 window->setlayout(layout); 23
24 3.2 Slot 22 window->show(); return app.exec(); 25 } Signal/Slot : Signal/Slot 14,15 edit textchanged label settext QString C++ string textchanged() textchanged(qstring) settext label edit 16,17 setwindowtitle window Title edit 24
25 3 SIGNAL/SLOT 3.3 Connection connect Signal Slot connect disconnect connect 3.1 disconnect 1 #include <QApplication> 2 #include <QPushButton> 3 4 int main(int argc, char** argv) 5 { 6 QApplication app(argc, argv); 7 QPushButton* button = new QPushButton("Quit"); 8 QObject::connect(button, SIGNAL( clicked() ), 9 &app, SLOT(quit()) ); 10 QObject::disconnect(button, SIGNAL( clicked() ), 11 &app, SLOT(quit()) ); 12 button->show(); 13 return app.exec(); 14 } connect disconnect 3.4 Signal/Slot connect connect(sender, SIGNAL(signal), receiver, SLOT(slot) ); sender : SIGNAL(signal) : signal receiver : SLOT(slot) : 25
26
27 main main cpp main.h 4.1, : (on Windows) 4.2: (on Windows) 4.1 set 4.2
28 4.1 1 //main.h 2 3 #ifndef MAIN_H_ 4 #define MAIN_H_ 5 6 #include <QDialog> 7 8 class QLabel; 9 class QPushButton; 10 class QLineEdit; class MainDialog : public QDialog 13 { 14 Q_OBJECT 15 public: 16 MainDialog(QWidget* parent = 0); 17 private slots: 18 void setlabeltext(); 19 private: 20 QLabel* label; 21 QPushButton* setbutton; 22 QLineEdit* lineedit; 23 }; #endif 1 //01.cpp 2 3 #include <QtGui> 4 #include "main.h" 5 6 MainDialog::MainDialog(QWidget* parent) 7 : QDialog(parent) 8 { 9 label = new QLabel(tr("empty") ); 10 setbutton = new QPushButton(tr("Set") ); 11 lineedit = new QLineEdit; 28
29 connect(setbutton,signal(clicked() ),this,slot(setlabeltext() ) ); QHBoxLayout* layout = new QHBoxLayout; 16 layout->addwidget(lineedit); 17 layout->addwidget(label); 18 layout->addwidget(setbutton); 19 setlayout(layout); 20 } void MainDialog::setLabelText() 23 { 24 QString text = lineedit->text(); 25 label->settext(text); 26 } int main(int argc, char** argv) 29 { 30 QApplication app(argc,argv); 31 MainDialog* dialog = new MainDialog; 32 dialog->show(); 33 return app.exec(); 34 } main.h 3,4 C C++ Visual C++ #pragma once 6 QDialog 8,9,10 QLabel,QPushButton,QLineEdit QLabel #include <QLabel> 29
30 MainWindow QDialog : 14 Q_OBJECT 17 slots 17 private slots: setlabeltext Slot connect setlabeltext Signal Signal signals: signals: private signals: public signals: 01.cpp 3 <QtGui> QLabel QPush- Button Qt GUI 1 QtGui 1 QtCore QtGui 30
31 4 7 QDialog parent 0 13 connect setlabeltext QDialog connect QObject:: 2 22 setlabeltext lineedit label : (on Windows) 4.4 Show Second Dialog 4.5 OK QDialog QObject QDialog QWidget QWidget QObject 31
32 : (on Windows) 4.6: ok (on Windows) 1 //main.cpp 2 3 #include <QtGui> 4 #include "MainDialog.h" 5 #include "SecondDialog.h" 6 7 int main(int argc, char** argv) 8 { 9 QApplication app(argc, argv); 10 MainDialog* dialog = new MainDialog; 11 dialog->show(); 12 return app.exec(); 13 } 1 //MainDialog.h 2 3 #ifndef MAINDIALOG_H_ 4 #define MAINDIALOG_H_ 5 6 #include <QDialog> 32
33 4 7 8 class QPushButton; 9 class QLabel; class MainDialog : public QDialog 12 { 13 Q_OBJECT 14 public: 15 MainDialog(QWidget* parent = 0); 16 private slots: 17 void showseconddialog(); 18 private: 19 QPushButton* showdialogbutton; 20 QLabel* textlabel; 21 }; #endif 1 //MainDialog.cpp 2 3 #include <QtGui> 4 #include "MainDialog.h" 5 #include "SecondDialog.h" 6 7 MainDialog::MainDialog(QWidget* parent) : QDialog(parent) 8 { 9 showdialogbutton = new QPushButton("Show Second Dialog"); 10 textlabel = new QLabel("empty"); 11 connect(showdialogbutton,signal(clicked()), 12 this,slot(showseconddialog()) ); QHBoxLayout* layout = new QHBoxLayout; 15 layout->addwidget(textlabel); 16 layout->addwidget(showdialogbutton); 17 setlayout(layout); 18 } 19 33
34 void MainDialog::showSecondDialog() 21 { 22 SecondDialog seconddialog(this); 23 if(seconddialog.exec()) { 24 QString str = seconddialog.getlineedittext(); 25 textlabel->settext(str); 26 } 27 } 1 //SecondDialog.h 2 3 #ifndef SECONDDIALOG_H_ 4 #define SECONDDIALOG_H_ 5 6 #include <QDialog> 7 8 class QPushButton; 9 class QLineEdit; class SecondDialog : public QDialog 12 { 13 Q_OBJECT 14 public: 15 SecondDialog(QWidget* parent = 0); 16 QString getlineedittext(); 17 private: 18 QPushButton* okbutton; 19 QPushButton* cancelbutton; 20 QLineEdit* editor; 21 }; #endif 1 //SecondDialog.cpp 2 3 #include <QtGui> 4 #include "SecondDialog.h" 34
35 4 5 6 SecondDialog::SecondDialog(QWidget* parent) : QDialog(parent) 7 { 8 okbutton = new QPushButton(tr("&OK") ); 9 cancelbutton = new QPushButton(tr("&Cancel") ); 10 editor = new QLineEdit; QHBoxLayout* layout = new QHBoxLayout; 13 layout->addwidget(editor); 14 layout->addwidget(okbutton); 15 layout->addwidget(cancelbutton); 16 setlayout(layout); connect(okbutton, SIGNAL(clicked()), this, SLOT(accept()) ); 19 connect(cancelbutton,signal(clicked()), this, SLOT(reject()) ); 20 } QString SecondDialog::getLineEditText() 23 { 24 return editor->text(); 25 } main.cpp MainDialog.h MainDialog.cpp connect Show Second Dialog showseconddialog showseconddialog 22 2 seconddialog this seconddialog.cpp MainDialog seconddialog seconddialog.exec() seconddialog seconddialog MainDialog seconddialog.exec() QDialog::Accepted QDialog::Rejected 35
36 4.3 QDialog::Accepted 1 QDialog::Rejected 0 Accepted 24,25 Rejected 24,25 SecondDialog.h 2 SecondDialog.cpp 18,19 okbutton accept cancelbutton reject accept reject MainDialog.cpp 23 exec QDialog::Accepted QDialog::Rejected //main.cpp 2 3 #include <QtGui> 4 #include "MainDialog.h" 5 #include "SecondDialog.h" 6 7 int main(int argc, char** argv) 8 { 9 QApplication app(argc, argv); 10 MainDialog* dialog = new MainDialog; 11 dialog->show(); 12 return app.exec(); 13 } 1 //MainDialog.h 2 3 #ifndef MAINDIALOG_H_ 4 #define MAINDIALOG_H_ 5 36
37 4 6 #include <QDialog> 7 8 class QPushButton; 9 class QLabel; 10 class SecondDialog; class MainDialog : public QDialog 13 { 14 Q_OBJECT 15 public: 16 MainDialog(QWidget* parent = 0); 17 public slots: 18 void showseconddialog(); 19 void settextlabel(); 20 private: 21 QPushButton* showdialogbutton; 22 QLabel* textlabel; 23 SecondDialog* seconddialog; 24 }; #endif 1 //MainDialog.cpp 2 3 #include <QtGui> 4 #include "MainDialog.h" 5 #include "SecondDialog.h" 6 7 MainDialog::MainDialog(QWidget* parent) : QDialog(parent), seconddialog(null) 8 { 9 showdialogbutton = new QPushButton("Show Second Dialog"); 10 textlabel = new QLabel("empty"); 11 connect(showdialogbutton, SIGNAL(clicked()), 12 this, SLOT(showSecondDialog()) ); QHBoxLayout* layout = new QHBoxLayout; 15 layout->addwidget(textlabel); 37
38 layout->addwidget(showdialogbutton); 17 setlayout(layout); 18 } void MainDialog::showSecondDialog() 21 { 22 if(!seconddialog){ 23 seconddialog = new SecondDialog; 24 connect(seconddialog, SIGNAL(okButtonClicked() ), 25 this, SLOT(setTextLabel()) ); 26 } 27 if(seconddialog->ishidden() ) { 28 seconddialog->show(); 29 }else{ 30 seconddialog->activatewindow(); 31 } 32 } void MainDialog::setTextLabel() 35 { 36 QString str = seconddialog->getlineedittext(); 37 textlabel->settext(str); 38 } 1 //SecondDialog.h 2 3 #ifndef SECONDDIALOG_H_ 4 #define SECONDDIALOG_H_ 5 6 #include <QDialog> 7 8 class QPushButton; 9 class QLineEdit; 10 class QString; class SecondDialog : public QDialog 13 { 38
39 4 14 Q_OBJECT 15 public: 16 SecondDialog(QWidget* parent = 0); 17 QString getlineedittext(); 18 signals: 19 void okbuttonclicked(); 20 private: 21 QPushButton* okbutton; 22 QPushButton* cancelbutton; 23 QLineEdit* editor; 24 }; #endif 1 //SecondDialog.cpp 2 3 #include <QtGui> 4 #include "SecondDialog.h" 5 6 SecondDialog::SecondDialog(QWidget* parent) : QDialog(parent) 7 { 8 okbutton = new QPushButton(tr("&OK") ); 9 cancelbutton = new QPushButton(tr("&Cancel") ); 10 editor = new QLineEdit; QHBoxLayout* layout = new QHBoxLayout; 13 layout->addwidget(editor); 14 layout->addwidget(okbutton); 15 layout->addwidget(cancelbutton); 16 setlayout(layout); connect(okbutton,signal(clicked()),this,signal(okbuttonclicked()) ); 19 connect(okbutton,signal(clicked()), this, SLOT(close()) ); 20 connect(cancelbutton,signal(clicked()), this, SLOT(close()) ); 21 } QString SecondDialog::getLineEditText() 39
40 { 25 return editor->text(); 26 } MainDialog.cpp showseconddialog Show Second Dialog 22 if seconddialog NULL seconddialog 24 seconddialog okbuttonclicked settext- Label okbuttonclicked SecondDialog.h settextlabel seconddialog MainDialog getlineedittext SecondDialog.h Second- Dialog.cpp SecondDialog.h 18,19 SecondDialog.cpp 18,19 SecondDialog.h 18 signals: 19 okbuttonclicked okbuttonclicked Qt SecondDialog.cpp 18 okbutton okbuttonclicked connect 4 SLOT 18 SIGNAL 19,20 okbutton cancelbutton close connect getlineedittext seconddialog 40
41 41 5 Qt Designer 5.1 Qt Designer Qt Designer GUI Widget Qt Designer Qt Designer 5.2 Qt Designer Designer Windows Qt by Trolltech v4.3.1 (Open- Source) Designer Linux designer Dialog without Buttons OK 5.1 Dialog -untitled 5.3 Line Edit,Label,Push Button 5.2 Push Button &Ok O
42 : Qt Designer (on Windows) 5.3 QHBoxLayout QVBoxLayout QGridLayout Ok Cancel
43 5 Qt Designer 5.2: Qt Designer(on Windows) Label Label Label 5.5 minimumsize width 100,height 0 Label 100 line Edit minimumsize 100, Signal/Slot Signal/Slot Qt Designer / Designer 5.6 / 43
44 5.4Signal/Slot 5.3: Qt Designer(on Windows) 5.4: Qt Designer(on Windows) / 5.7 / Ok (Signal:clicked (Slot:accept ok / 5.8 Cancel reject 5.9 Ok Cancel lineedit label lineedit 44
45 5 Qt Designer 5.5: Qt Designer(on Windows) lineedit label lineedit textchanged(qstring) label settext(qstring) lineedit textchanged(qstring) setwindowtitle(qstring) 5.10 lineedit label lineedit 45
46 5.4Signal/Slot 5.6: Qt Designer(on Windows) 5.7: Qt Designer(on Windows) 46
47 5 Qt Designer 5.8: Qt Designer(on Windows) 5.9: Qt Designer(on Windows) 5.10: Qt Designer(on Windows) 47
48
49 49 [1] Jasmin Blanchette & Mark Summerfield, C++ GUI Programming with Qt4. [2] Trolltech, Qt Assistant Tutorial and Examples Qt Tutorial [3] Trolltech, Qt Assistant All Classes [4] Trolltech, Qt Assistant Core Features Layout Management
Qt for OSC2011
Qt : UI Qt Development Frameworks, Nokia (Takumi Asaki) Field Service Engineer Qt Development Frameworks, Nokia 1996 Qt ( )Trolltech 2006 2008 Trolltech Nokia / 54 Qt Qt Qt / 54 Qt Qt Framework Code less
More informationQt-OSC2011-Hokkaido.pptx
Qt : UI Nokia, Qt (Tasuku Suzuki) Field Service Engineer Nokia, Qt 2001 Qt Qt ( )Trolltech 2006 2008 Trolltech Nokia Qt http://qt.nokia.com/title-jp http://labs.qt.nokia.co.jp/ http://twitter.com/task_jp
More informationQtopia開発チュートリアル
SL Qtopia (1.10 2003 1 22 ) SL-A300 Qtopia 2003 1 22 control QtDesigner Qt 2002 12 13 XScale ARM Intel Corporation Linux Linus Torvalds TrolltechQtQt/EmbeddedQtopia TrollTech 2 SL-A300 Qtopia...5...5 1...6
More informationQt-OSC2011-Kyoto
Qt : UI Nokia, Qt (Takumi Asaki) Field Service Engineer Qt, Developer Experience & Marketplace, Nokia 1996 Qt ( )Trolltech 2006 2008 Trolltech Nokia / 46 Qt Qt Qt 5 / 46 Qt Qt Framework Code less Create
More informationr08.dvi
19 8 ( ) 019.4.0 1 1.1 (linked list) ( ) next ( 1) (head) (tail) ( ) top head tail head data next 1: NULL nil ( ) NULL ( NULL ) ( 1 ) (double linked list ) ( ) 1 next 1 prev 1 head cur tail head cur prev
More informationohp08.dvi
19 8 ( ) 2019.4.20 1 (linked list) ( ) next ( 1) (head) (tail) ( ) top head tail head data next 1: 2 (2) NULL nil ( ) NULL ( NULL ) ( 1 ) (double linked list ) ( 2) 3 (3) head cur tail head cur prev data
More informationQt 導入手引書
Qt 導入手引書 (Windows - Visual Studio 用 ) 2009 年 12 月 25 日 第 9 版 株式会社 SRA 目次 1 Qt のインストール... 3 1.1 インストール準備... 4 1.2 インストール手順... 5 1.3 インストールファイル... 15 1.4 アンインストール手順... 17 2 Qt の簡単な使い方... 18 2.1 サンプルプログラムの実行方法...
More informationQt 導入手引書
Qt 導 入 手 引 書 (X11) 2009 年 12 月 25 日 第 5 版 株 式 会 社 SRA 目 次 1 Qt のインストール... 3 1.1 インストール 準 備... 3 1.2 インストール 手 順... 4 1.3 インストールファイル... 6 1.4 アンインストール 手 順... 8 2 Qt の 簡 単 な 使 い 方... 9 2.1 サンプルプログラムの 実 行
More informationCondition DAQ condition condition 2 3 XML key value
Condition DAQ condition 2009 6 10 2009 7 2 2009 7 3 2010 8 3 1 2 2 condition 2 3 XML key value 3 4 4 4.1............................. 5 4.2...................... 5 5 6 6 Makefile 7 7 9 7.1 Condition.h.............................
More informationQtプログラミング
ALPHA XG シリーズ Qt プログラミング PROJECT Co.,LTD. Rev1.0 2013/01/31 目次 1. 概要 1 1.1 はじめに...1 1.2 開発言語について...1 1.3 Qt の GUI 開発環境について...1 2. Qt Creator の概要 2 2.1 システム概要...2 2.2 Qt システム構成...2 3. Qt Creator のインストール
More informationdouble float
2015 3 13 1 2 2 3 2.1.......................... 3 2.2............................. 3 3 4 3.1............................... 4 3.2 double float......................... 5 3.3 main.......................
More informationohp03.dvi
19 3 ( ) 2019.4.20 CS 1 (comand line arguments) Unix./a.out aa bbb ccc ( ) C main void int main(int argc, char *argv[]) {... 2 (2) argc argv argc ( ) argv (C char ) ( 1) argc 4 argv NULL. / a. o u t \0
More informationprogrammingII2019-v01
II 2019 2Q A 6/11 6/18 6/25 7/2 7/9 7/16 7/23 B 6/12 6/19 6/24 7/3 7/10 7/17 7/24 x = 0 dv(t) dt = g Z t2 t 1 dv(t) dt dt = Z t2 t 1 gdt g v(t 2 ) = v(t 1 ) + g(t 2 t 1 ) v v(t) x g(t 2 t 1 ) t 1 t 2
More informationWinHPC ppt
MPI.NET C# 2 2009 1 20 MPI.NET MPI.NET C# MPI.NET C# MPI MPI.NET 1 1 MPI.NET C# Hello World MPI.NET.NET Framework.NET C# API C# Microsoft.NET java.net (Visual Basic.NET Visual C++) C# class Helloworld
More informationuntitled
WIL (Visual C++ 2005 MFC ) WIL (Visual C++ 2005) Visual C++ 2005 Visual C++ WIL MFC 0 Visual C++ 2005 WIL Visual C++ WIL 1. Microsoft Visual Studio 2005 2. 3. VC 4. WIL EVC C: Program Files FAST WIL Include
More informationjoho07-1.ppt
0xbffffc5c 0xbffffc60 xxxxxxxx xxxxxxxx 00001010 00000000 00000000 00000000 01100011 00000000 00000000 00000000 xxxxxxxx x y 2 func1 func2 double func1(double y) { y = y + 5.0; return y; } double func2(double*
More informationLiveCode初心者開発入門サンプル
/ About LiveCode 01:... 11 02: Create... 15 set 03:... 21 name title LiveCode 04:... 29 global local width height 05:... 37 Controls Tools Palette Script Editor message handler 06:... 52 RGB 07:... 63
More informationA, K, Q, J, 10, 9, 8, 7, 6, 5, 4, 3,
40 2 1. 2 2. 52 3. A, K, Q, J, 10, 9, 8, 7, 6, 5, 4, 3, 2 4. 13 5. 6. 7. 8. 9. 13 10. 11. 12. 1 VC++ VC++ Visual C++ Professional 2010 Visual C++ 2010 express Windows whist 2 OK] 3 Form1 size 800, 500
More informationex12.dvi
1 0. C, char., char, 0,. C, ("),., char str[]="abc" ; str abc.,, str 4. str 3. char str[10]="abc" ;, str 10, str 3., char s[]="abc", t[10] ;, t = s. ASCII, 0x00 0x7F, char., "abc" 3, 1. 1 8 256, 2., 2
More information1: Preference Display 1 package sample. pref ; 2 3 import android. app. Activity ; 4 import android. content. Intent ; 5 import android. content. Shar
Android 2 1 (Activity) (layout strings.xml) XML Activity (Intent manifest) Android Eclipse XML Preference, DataBase, File 3 2 Preference Preference Preference URL:[http://www.aichi-pu.ac.jp/ist/lab/yamamoto/android/android-tutorial/tutorial02/tutorial02.pdf]
More informationr07.dvi
19 7 ( ) 2019.4.20 1 1.1 (data structure ( (dynamic data structure 1 malloc C free C (garbage collection GC C GC(conservative GC 2 1.2 data next p 3 5 7 9 p 3 5 7 9 p 3 5 7 9 1 1: (single linked list 1
More informationII ( ) prog8-1.c s1542h017%./prog8-1 1 => 35 Hiroshi 2 => 23 Koji 3 => 67 Satoshi 4 => 87 Junko 5 => 64 Ichiro 6 => 89 Mari 7 => 73 D
II 8 2003 11 12 1 6 ( ) prog8-1.c s1542h017%./prog8-1 1 => 35 Hiroshi 2 => 23 Koji 3 => 67 Satoshi 4 => 87 Junko 5 => 64 Ichiro 6 => 89 Mari 7 => 73 Daisuke 8 =>. 73 Daisuke 35 Hiroshi 64 Ichiro 87 Junko
More informationohp07.dvi
19 7 ( ) 2019.4.20 1 (data structure) ( ) (dynamic data structure) 1 malloc C free 1 (static data structure) 2 (2) C (garbage collection GC) C GC(conservative GC) 2 2 conservative GC 3 data next p 3 5
More information(pack ) Toplevel
1 1 2 2 3 (pack ) 6 3.1................................... 6 3.2 1............................ 8 3.3 Toplevel........................................ 9 3.4............................... 10 3.5 Toplevel..................................
More informationTOEIC
TOEIC 1 1 3 1.1.............................................. 3 1.2 C#........................................... 3 2 Visual Studio.NET Windows 5 2.1....................................... 5 2.2..........................................
More informationQt 導入手引書
Qt 導 入 手 引 書 (Mac OS X) 2009 年 12 月 25 日 第 4 版 株 式 会 社 SRA 目 次 1 Qt のインストール... 3 1.1 インストール 準 備... 3 1.2 インストール 手 順... 4 1.3 インストールファイル...11 1.4 アンインストール 手 順... 15 2 Qt の 簡 単 な 使 い 方... 16 2.1 サンプルプログラムの
More informationtuat1.dvi
( 1 ) http://ist.ksc.kwansei.ac.jp/ tutimura/ 2012 6 23 ( 1 ) 1 / 58 C ( 1 ) 2 / 58 2008 9 2002 2005 T E X ptetex3, ptexlive pt E X UTF-8 xdvi-jp 3 ( 1 ) 3 / 58 ( 1 ) 4 / 58 C,... ( 1 ) 5 / 58 6/23( )
More informationr03.dvi
19 ( ) 019.4.0 CS 1 (comand line arguments) Unix./a.out aa bbb ccc ( ) C main void... argc argv argc ( ) argv (C char ) ( 1) argc 4 argv NULL. / a. o u t \0 a a \0 b b b \0 c c c \0 1: // argdemo1.c ---
More informationA/B (2018/10/19) Ver kurino/2018/soft/soft.html A/B
A/B (2018/10/19) Ver. 1.0 kurino@math.cst.nihon-u.ac.jp http://edu-gw2.math.cst.nihon-u.ac.jp/ kurino/2018/soft/soft.html 2018 10 19 A/B 1 2018 10 19 2 1 1 1.1 OHP.................................... 1
More informationグラフと組み合わせ 課題 7 ( 解答例 ) 2013/5/27 1 列挙 n 個の文字の集合 { } S = a, a,, an の全てからなる文字列 つまり同じ文字を含まない 長さ n の文字列を列挙する 方法を考える 1. 何通りの文字列があるかを答えなさい また そのことが正しい
グラフと組み合わせ 課題 7 ( 解答例 ) 2013/5/27 1 列挙 n 個の文字の集合 { S = a, a,, an 0 1 1 の全てからなる文字列 つまり同じ文字を含まない 長さ n の文字列を列挙する 方法を考える 1. 何通りの文字列があるかを答えなさい また そのことが正しいことを数学的帰納法で示しなさい 2. 文字列を列挙する再帰的アルゴリズムを構築しなさい 3. n = 4
More informationex01.dvi
,. 0. 0.0. C () /******************************* * $Id: ex_0_0.c,v.2 2006-04-0 3:37:00+09 naito Exp $ * * 0. 0.0 *******************************/ #include int main(int argc, char **argv) double
More informationÆþÌçGTK+
GTK+ 2016 11 1 iii GTK+ GUI GIMP GIMP GTK+ Windows GNOME GTK+ GTK+ GNOME KDE Qt GTK+ GTK+ GUI GUI Glade Anjuta GUI GUI GTK+, GUI GTK+, GTK+ 2 2009., GTK+ 3, 2., 2009 GTK+ 3,. 2016 10 iv C GUI GTK+ GUI
More informationI ASCII ( ) NUL 16 DLE SP P p 1 SOH 17 DC1! 1 A Q a q STX 2 18 DC2 " 2 B R b
I 4 003 4 30 1 ASCII ( ) 0 17 0 NUL 16 DLE SP 0 @ P 3 48 64 80 96 11 p 1 SOH 17 DC1! 1 A Q a 33 49 65 81 97 113 q STX 18 DC " B R b 34 50 66 8 98 114 r 3 ETX 19 DC3 # 3 C S c 35 51 67 83 99 115 s 4 EOT
More information¥×¥í¥°¥é¥ß¥ó¥°±é½¬I Exercise on Programming I [1zh] ` `%%%`#`&12_`__~~~alse
I Exercise on Programming I http://bit.ly/oitprog1 1, 2 of 14 ( RD S ) I 1, 2 of 14 1 / 44 Ruby Ruby ( RD S ) I 1, 2 of 14 2 / 44 7 5 9 2 9 3 3 2 6 5 1 3 2 5 6 4 7 8 4 5 2 7 9 6 4 7 1 3 ( RD S ) I 1, 2
More informationHARK Designer Documentation 0.5.0 HARK support team 2013 08 13 Contents 1 3 2 5 2.1.......................................... 5 2.2.............................................. 5 2.3 1: HARK Designer.................................
More information1.ppt
/* * Program name: hello.c */ #include int main() { printf( hello, world\n ); return 0; /* * Program name: Hello.java */ import java.io.*; class Hello { public static void main(string[] arg)
More information解きながら学ぶC++入門編
!... 38!=... 35 "... 112 " "... 311 " "... 4, 264 #... 371 #define... 126, 371 #endif... 369 #if... 369 #ifndef... 369 #include... 3, 311 #undef... 371 %... 17, 18 %=... 85 &... 222 &... 203 &&... 40 &=...
More information新・明解C言語 実践編
第 1 章 見 21 1-1 見えないエラー 見 List 1-1 "max2x1.h" a, b max2 List 1-1 chap01/max2x1.h max2 "max2x1.h" #define max2(a, b) ((a) > (b)? (a) : (b)) max2 List 1-2 List 1-2 chap01/max2x1test.c max2 #include
More information1-4 int a; std::cin >> a; std::cout << "a = " << a << std::endl; C++( 1-4 ) stdio.h iostream iostream.h C++ include.h 1-4 scanf() std::cin >>
1 C++ 1.1 C C++ C++ C C C++ 1.1.1 C printf() scanf() C++ C hello world printf() 1-1 #include printf( "hello world\n" ); C++ 1-2 std::cout
More information10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV
tutimura@mist.i.u-tokyo.ac.jp kaneko@ipl.t.u-tokyo.ac.jp http://www.misojiro.t.u-tokyo.ac.jp/ tutimura/sem3/ 2002 12 11 p.1/33 10/16 1. 10/23 2. 10/30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20
More information10-C.._241_266_.Z
Windows 10 1 2 3 4 5 Visual Studio 2008LINQ MySchedule 242 Microsoft Visual C# 2008 10 Windows 243 1 LINQIEnumerableXML LINQ to Object q Form1.cs w RefreshListBox private void RefreshListBox() schedulelistbox.items.clear();
More informationObject MenuComponent MenuBar MenuItem Menu CheckboxMenuItem
Java Object MenuComponent MenuBar MenuItem Menu CheckboxMenuItem 2 MenuComponent MenuComponent setfont() void setfont(font f) MenuBar MenuBar MenuBar() MenuBar add() Menu add(menu m) Menu Menu Menu String
More informationSystemC言語概論
SystemC CPU S/W 2004/01/29 4 SystemC 1 SystemC 2.0.1 CPU S/W 3 ISS SystemC Co-Simulation 2004/01/29 4 SystemC 2 ISS SystemC Co-Simulation GenericCPU_Base ( ) GenericCPU_ISS GenericCPU_Prog GenericCPU_CoSim
More informationMicrosoft Word - C.....u.K...doc
C uwêííôöðöõ Ð C ÔÖÐÖÕ ÐÊÉÌÊ C ÔÖÐÖÕÊ C ÔÖÐÖÕÊ Ç Ê Æ ~ if eíè ~ for ÒÑÒ ÌÆÊÉÉÊ ~ switch ÉeÍÈ ~ while ÒÑÒ ÊÍÍÔÖÐÖÕÊ ~ 1 C ÔÖÐÖÕ ÐÊÉÌÊ uê~ ÏÒÏÑ Ð ÓÏÖ CUI Ô ÑÊ ÏÒÏÑ ÔÖÐÖÕÎ d ÈÍÉÇÊ ÆÒ Ö ÒÐÑÒ ÊÔÎÏÖÎ d ÉÇÍÊ
More information1.3 ( ) ( ) C
1 1.1 (Data Base) (Container) C++ Java 1.2 1 1.3 ( ) ( ) 1. 2. 3. C++ 2 2.1 2.2 2.3 2 C Fortran C++ Java 3 3.1 (Vector) 1. 2. ( ) 3.2 3 3.3 C++ C++ STL C++ (Template) vector vector< > ; int arrayint vector
More informationyacc.dvi
2017 c 8 Yacc Mini-C C/C++, yacc, Mini-C, run,, Mini-C 81 Yacc Yacc, 1, 2 ( ), while ::= "while" "(" ")" while yacc 1: st while : lex KW WHILE lex LPAREN expression lex RPAREN statement 2: 3: $$ = new
More informationB 10 : N ip2003f10.tex B : 9/12/ :02 p.1/71
B 10 : ks91@sfc.wide.ad.jp N206 2003 ip2003f10.tex B : 9/12/2003 10:02 p.1/71 : / ip2003f10.tex B : 9/12/2003 10:02 p.2/71 ip2003f10.tex B : 9/12/2003 10:02 p.3/71 1 http://java.sun.com/j2se/1.4.1/docs/api/
More informationとても使いやすい Boost の serialization
とても使いやすい Boost の serialization Zegrahm シリアライズ ( 直列化 ) シリアライズ ( 直列化 ) とは何か? オブジェクトデータをバイト列や XML フォーマットに変換すること もう少しわかりやすく表現すると オブジェクトの状態を表す変数 ( フィールド ) とオブジェクトの種類を表す何らかの識別子をファイル化出来るようなバイト列 XML フォーマット形式で書き出す事を言う
More information「Android Studioではじめる 簡単Androidアプリ開発」正誤表
Android Studio Android 2016/04/19 Android Studio Android *1 Android Studio Android Studio Android Studio Android Studio Android PDF : Android Studio Android Android Studio Android *2 c R TM *1 Android
More informationSafari AppletViewer Web HTML Netscape Web Web 15-1 Applet Web Applet init Web paint Web start Web HTML stop destroy update init Web paint start Web up
Safari AppletViewer Web HTML Netscape Web Web 15-1 Applet Web Applet init Web paint Web start Web HTML stop destroy update init Web paint start Web update Event Driven paint Signature Overwriting Overriding
More informationpara02-2.dvi
2002 2 2002 4 23 : MPI MPI 1 MPI MPI(Message Passing Interface) MPI UNIX Windows Machintosh OS, MPI 2 1 1 2 2.1 1 1 1 1 1 1 Fig. 1 A B C F Fig. 2 A B F Fig. 1 1 1 Fig. 2 2.2 Fig. 3 1 . Fig. 4 Fig. 3 Fig.
More information273? C
TSG Theoretical Science Group 273? C 2-1.................................. 2 -1. Windows Mac Mac UNIX CUI bash >_ Finder TSG No.273? 2 3 pwd ls cd ( ) change directory 3 TSG No.273? cd hoge cd hoge cd....../
More informationVB.NETコーディング標準
(C) Copyright 2002 Java ( ) VB.NET C# AS-IS extremeprogramming-jp@objectclub.esm.co.jp bata@gold.ocn.ne.jp Copyright (c) 2000,2001 Eiwa System Management, Inc. Object Club Kenji Hiranabe02/09/26 Copyright
More informationOpenCV IS Report No Report Medical Information System Labratry
OpenCV 2014 8 25 IS Report No. 2014090201 Report Medical Information System Labratry Abstract OpenCV OpenCV 1............................ 2 1.1 OpenCV.......................... 2 1.2......................
More information3 Java 3.1 Hello World! Hello World public class HelloWorld { public static void main(string[] args) { System.out.println("Hello World");
(Basic Theory of Information Processing) Java (eclipse ) Hello World! eclipse Java 1 3 Java 3.1 Hello World! Hello World public class HelloWorld { public static void main(string[] args) { System.out.println("Hello
More informationmbed_library_study_meeting_v1.0.key
mbed _mbed 2014 11 7 https://atnd.org/events/57766 version 1.0, 07-Nov.-2014 Tedd OKANO mbed - - 4.0 (^^; 1 mbed TEDD OKANO https://twitter.com/tedd_okano 10 I 2 C http://developer.mbed.org/users/okano/
More informationGUIプログラムⅣ
GUI プログラム Ⅳ 画像指定ウィンドウの生成 ファイル名 :awtimage.java import java.awt.*; import java.awt.event.*; public class awtimage extends Frame // コンポーネントクラスの宣言 Button btnbrowse; Label lblcaption7; TextField txtimage; //
More informationtkk0408nari
SQLStatement Class Sql Database SQL Structured Query Language( ) ISO JIS http://www.techscore.com/tech/sql/02_02.html Database sql Perl Java SQL ( ) create table tu_data ( id integer not null, -- id aid
More information10
2: http://www7.bpe.es.osaka-u.ac.jp/~kota/classes/jse.html kota@fbs.osaka-u.ac.jp 10 : 0 1 2 n 2 n 0 1 1 0 1 0 0 1 (2) = 105 1 = 8 1 2 8 = 256 0 9 105 i 106 j 256 2 1 #include int main(void)
More informationVisual Studio2008 C# で JAN13 バーコードイメージを作成 xbase 言語をご利用の現場でバーコードの出力が必要なことが多々あります xbase 言語製品によっては 標準でバーコード描画機能が付加されているものもあるようで す C# では バーコードフォントを利用したりバー
Visual Studio2008 C# で JAN13 バーコードイメージを作成 xbase 言語をご利用の現場でバーコードの出力が必要なことが多々あります xbase 言語製品によっては 標準でバーコード描画機能が付加されているものもあるようで す C# では バーコードフォントを利用したりバーコード OCX や バーコード対応レ ポートツールが豊富にありますので それほど困ることは無いと思われます
More information新版明解C言語 実践編
2 List - "max.h" a, b max List - max "max.h" #define max(a, b) ((a) > (b)? (a) : (b)) max List -2 List -2 max #include "max.h" int x, y; printf("x"); printf("y"); scanf("%d", &x); scanf("%d", &y); printf("max(x,
More informationC
C 1 2 1.1........................... 2 1.2........................ 2 1.3 make................................................ 3 1.4....................................... 5 1.4.1 strip................................................
More informationLocal variable x y i paint public class Sample extends Applet { public void paint( Graphics gc ) { int x, y;... int i=10 ; while ( i < 100 ) {... i +=
Safari AppletViewer Web HTML Netscape Web Web 13-1 Applet Web Applet init Web paint Web start Web HTML stop destroy update init Web paint start Web update Event Driven paint Signature Overwriting Overriding
More informationWindows Web Windows Windows WinSock
Windows kaneko@ipl.t.u-tokyo.ac.jp tutimura@mist.t.u-tokyo.ac.jp 2002 12 4 8 Windows Web Windows Windows WinSock UNIX Microsoft Windows Windows Windows Windows Windows.NET Windows 95 DOS Win3.1(Win16API)
More information第5回お試しアカウント付き並列プログラミング講習会
qstat -l ID (qstat -f) qscript ID BATCH REQUEST: 253443.batch1 Name: test.sh Owner: uid=32637, gid=30123 Priority: 63 State: 1(RUNNING) Created at: Tue Jun 30 05:36:24 2009 Started at: Tue Jun 30 05:36:27
More information£Ã¥×¥í¥°¥é¥ß¥ó¥°(2018) - Âè11²ó – ½ÉÂꣲ¤Î²òÀ⡤±é½¬£² –
(2018) 11 2018 12 13 2 g v dv x dt = bv x, dv y dt = g bv y (1) b v 0 θ x(t) = v 0 cos θ ( 1 e bt) (2) b y(t) = 1 ( v 0 sin θ + g ) ( 1 e bt) g b b b t (3) 11 ( ) p14 2 1 y 4 t m y > 0 y < 0 t m1 h = 0001
More informationBASICとVisual Basic
Visual Basic BASIC Visual Basic BASICBeginner's All purpose Symbolic Instruction Code Visual Basic Windows BASIC BASIC Visual Basic Visual Basic End Sub .Visual Basic Visual Basic VB 1-1.Visual Basic
More informationやさしいJavaプログラミング -Great Ideas for Java Programming サンプルPDF
pref : 2004/6/5 (11:8) pref : 2004/6/5 (11:8) pref : 2004/6/5 (11:8) 3 5 14 18 21 23 23 24 28 29 29 31 32 34 35 35 36 38 40 44 44 45 46 49 49 50 pref : 2004/6/5 (11:8) 50 51 52 54 55 56 57 58 59 60 61
More information1.SqlCtl クラスリファレンス SqlCtl クラスのリファレンスを以下に示します メソッドの実行中にエラーが発生した場合は標準エラー出力にメッセージを出力します (1)Connect() メソッド データベースへ connect 要求を行います boolean Connect(String
目次 1.SqlCtl クラスリファレンス 2 (1)Connect() メソッド 2 (2)DisConnect() メソッド 3 (3)Commit() メソッド 3 (4)Rollback() メソッド 4 2.SqlStm クラスリファレンス 5 (1)Prepare() メソッド 5 (2)Execute() メソッド 6 (3)Release() メソッド 6 (4)Immediate()
More informationProg2_12th
2018 年 12 月 13 日 ( 木 ) 実施クラスの継承オブジェクト指向プログラミングの基本的な属性として, 親クラスのメンバを再利用, 拡張, または変更する子クラスを定義することが出来る メンバの再利用を継承と呼び, 継承元となるクラスを基底クラスと呼ぶ また, 基底クラスのメンバを継承するクラスを, 派生クラスと呼ぶ なお, メンバの中でコンストラクタは継承されない C# 言語では,Java
More informationex01.dvi
,. 0. 0.0. C () /******************************* * $Id: ex_0_0.c,v.2 2006-04-0 3:37:00+09 naito Exp $ * * 0. 0.0 *******************************/ #include int main(int argc, char **argv) { double
More informationuntitled
Visual Basic.NET 1 ... P.3 Visual Studio.NET... P.4 2-1 Visual Studio.NET... P.4 2-2... P.5 2-3... P.6 2-4 VS.NET(VB.NET)... P.9 2-5.NET... P.9 2-6 MSDN... P.11 Visual Basic.NET... P.12 3-1 Visual Basic.NET...
More informationslide5.pptx
ソフトウェア工学入門 第 5 回コマンド作成 1 head コマンド作成 1 早速ですが 次のプログラムを head.c という名前で作成してください #include #include static void do_head(file *f, long nlines); int main(int argc, char *argv[]) { if (argc!=
More informationlexex.dvi
(2018, c ) http://istksckwanseiacjp/ ishiura/cpl/ 4 41 1 mini-c lexc,, 2 testlexc, lexc mini-c 1 ( ) mini-c ( ) (int, char, if, else, while, return 6 ) ( ) (+, -, *, /, %, &, =, ==,!=, >, >=,
More informationfile:///D|/C言語の擬似クラス.txt
愛知障害者職業能力開発校 システム設計科 修了研究発表会報告書 題名 : C 言語の擬似クラス あらまし : C 言語でクラスを作れるという噂の真偽を確かめるために思考錯誤した まえがき : VC++ や Java その他オブジェクト指向の言語にはクラスが存在して クラスはオブジェクトの設計図である 手法 : C++ のクラスを解析して C++ のクラスを作成して C 言語に翻訳する class struct
More information橡中元雅美
VC++ 1 1 1 2 2 2.1 2 2.2 3 2.11 4 6 3 7 3.1 C 7 3.2 C VC++ 8 3.3 8 3.4 GUI 9 ( ) 10 4 11 4.1 11 4.2 14 4.3 16 4.4 17 18 5 19 20 21 2 1 VisualC++ 1 2 2.1 2.2 2 ( ).. IC etc( ) 3 IC IC 2.2 0.3 ( ) 4 IC 1
More informationDEMO1 まずはやってみよう アクティビティをダブルクリック 作成 - プロジェクト C# => Workflow CodeActivity をぽとぺ シーケンシャルと ステートマシン それぞれのコ ンソールアプリ あとライブラリがある びっくりマークは足りていないあかし プロパティをみると判別で
DEMO1 まずはやってみよう アクティビティをダブルクリック 作成 - プロジェクト C# => Workflow CodeActivity をぽとぺ シーケンシャルと ステートマシン それぞれのコ ンソールアプリ あとライブラリがある びっくりマークは足りていないあかし プロパティをみると判別できます こんなコードを追加 string str = Console.ReadLine(); int
More informationhaskell.gby
Haskell 1 2 3 Haskell ( ) 4 Haskell Lisper 5 Haskell = Haskell 6 Haskell Haskell... 7 qsort [8,2,5,1] [1,2,5,8] "Hello, " ++ "world!" "Hello, world!" 1 + 2 div 8 2 (+) 1 2 8 div 2 3 4 map even [1,2,3,4]
More informationSmalltalk_
DLLCC VisualWorks C Mac OS SSK-LampControl/ VisualWorksWithJun SSK-LampControl.h include SSK SSK FileBrowser SSK-LampControl.st FIle in SSK-LampControl File in SSK File in ( Smalltalk.SSK) ( C ) Controller
More informationK227 Java 2
1 K227 Java 2 3 4 5 6 Java 7 class Sample1 { public static void main (String args[]) { System.out.println( Java! ); } } 8 > javac Sample1.java 9 10 > java Sample1 Java 11 12 13 http://java.sun.com/j2se/1.5.0/ja/download.html
More informationdouble 2 std::cin, std::cout 1.2 C fopen() fclose() C++ std::fstream 1-3 #include <fstream> std::fstream fout; int a = 123; fout.open( "data.t
C++ 1 C C++ C++ C C C++ 1.1 C printf() scanf() C++ C 1-1 #include int a; scanf( "%d", &a ); printf( "a = %d\n", a ); C++ 1-2 int a; std::cin >> a; std::cout
More informationCopyright c 2008 Zhenjiang Hu, All Right Reserved.
2008 10 27 Copyright c 2008 Zhenjiang Hu, All Right Reserved. (Bool) True False data Bool = False True Remark: not :: Bool Bool not False = True not True = False (Pattern matching) (Rewriting rules) not
More informationはじめに
1 1 Squeak Squeak 1 Squeak Squeak 1.1 Squeak SqueakToys 1 NHK SqueakToys Squeak "Smalltalk" Smalltalker Smalltalk 23 1 Thoru Yamamoto 1 Squeak Smalltalk 1.1.1 Smalltalk Squeak Squeak WindowsMacUNIX Zaurus
More informationXMPによる並列化実装2
2 3 C Fortran Exercise 1 Exercise 2 Serial init.c init.f90 XMP xmp_init.c xmp_init.f90 Serial laplace.c laplace.f90 XMP xmp_laplace.c xmp_laplace.f90 #include int a[10]; program init integer
More information£Ã¥×¥í¥°¥é¥ß¥ó¥°ÆþÌç (2018) - Â裵²ó ¨¡ À©¸æ¹½Â¤¡§¾ò·ïʬ´ô ¨¡
(2018) 2018 5 17 0 0 if switch if if ( ) if ( 0) if ( ) if ( 0) if ( ) (0) if ( 0) if ( ) (0) ( ) ; if else if ( ) 1 else 2 if else ( 0) 1 if ( ) 1 else 2 if else ( 0) 1 if ( ) 1 else 2 (0) 2 if else
More informationExam : 1z1-809-JPN Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO Get Latest & Valid 1z1-809-JPN Exam's Question and Answers 1 from Ac
Actual4Test http://www.actual4test.com Actual4test - actual test exam dumps-pass for IT exams Exam : 1z1-809-JPN Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO Get Latest & Valid 1z1-809-JPN
More information第3章 OpenGL の基礎
3 OpenGL April 11, 2017 1 / 28 3.1 ( ) OpenGL OpenGL 2 / 28 3.2 OpenGL OpenGL OpenGL (Open Graphics Library) Silicon Graphics, Inc. 2 3 API (Application Program Interface) [4] UNIX OS Windows Macintosh
More informationMPI MPI MPI.NET C# MPI Version2
MPI.NET C# 2 2009 2 27 MPI MPI MPI.NET C# MPI Version2 MPI (Message Passing Interface) MPI MPI Version 1 1994 1 1 1 1 ID MPI MPI_Send MPI_Recv if(rank == 0){ // 0 MPI_Send(); } else if(rank == 1){ // 1
More information- - http://168iroha.net 018 10 14 i 1 1 1.1.................................................... 1 1.................................................... 7.1................................................
More informationエラー処理・分割コンパイル・コマンドライン引数
L10(2017-12-05 Tue) : Time-stamp: 2017-12-17 Sun 11:59 JST hig. recv/send http://hig3.net ( ) L10 (2017) 1 / 21 IP I swallow.math.ryukoku.ac.jp:13 = 133.83.83.6:13 = : IP ( = ) (well-known ports), :. :,.
More informationr11.dvi
19 11 ( ) 2019.4.20 1 / 1.1 ( n n O(n 2 O(n 2 ) ( 1 d n 1 n logn O(nlogn n ( n logn C 1.2 ( ( merge 2 1 1 3 1 4 5 4 2 3 7 9 7 1 2 3 4 5 7 9 1: 2 ivec merge int *ivec_new(int size) { int *a = (int*)malloc((size+1)
More informationohp11.dvi
19 11 ( ) 2019.4.20 1 / ( ) n O(n 2 ) O(n 2 ) ( ) 1 d n 1 n logn O(nlogn) n ( n logn C ) 2 ( ) ( merge) 2 1 1 3 1 4 5 4 2 3 7 9 7 1 2 3 4 5 7 9 1: 2 ivec merge 3 ( ) (2) int *ivec_new(int size) { int *a
More informationSystemC 2.0を用いた簡易CPUバスモデルの設計
SystemC 2.0 CPU CPU CTD&SW CT-PF 2002/1/23 1 CPU BCA UTF GenericCPU IO (sc_main) 2002/1/23 2 CPU CPU CQ 1997 11 Page 207 4 Perl Verilog-HDL CPU / Verilog-HDL SystemC 2.0 (asm) ROM (test.hex) 2002/1/23
More informationJava学習教材
Java 2016/4/17 Java 1 Java1 : 280 : (2010/1/29) ISBN-10: 4798120987 ISBN-13: 978-4798120980 2010/1/29 1 Java 1 Java Java Java class FirstExample { public static void main(string[] args) { System.out.println("
More information1 Java Java GUI , 2 2 jlabel1 jlabel2 jlabel3 jtextfield1 jtextfield2 jtextfield3 jbutton1 jtextfield1 jtextfield2 jtextfield3
1 2 2 1 2 2.1.................................................... 2 2.2.................................................... 2 2.3........................................ 2 2.4....................................................
More information2 p.2 2 Java Hello0.class JVM Hello0 java > java Hello0.class Hello World! javac Java JVM java JVM : Java > javac 2> Q Foo.java Java : Q B
2 p.1 2 Java Java JDK Sun Microsystems JDK javac Java java JVM appletviewer IDESun Microsystems NetBeans, IBM 1 Eclipse 2 IDE GUI JDK Java 2.1 Hello World! 2.1.1 Java 2.1.1 Hello World Emacs Hello0.java
More informationPowerPoint Presentation
UML 2004 7 9 10 ... OOP UML 10 Copyright 2004 Akira HIRASAWA all rights reserved. 2 1. 2. 3. 4. UML 5. Copyright 2004 Akira HIRASAWA all rights reserved. 3 1..... Copyright 2004 Akira HIRASAWA all rights
More informationcpp1.dvi
2017 c 1 C++ (1) C C++, C++, C 11, 12 13 (1) 14 (2) 11 1 n C++ //, [List 11] 1: #include // C 2: 3: int main(void) { 4: std::cout
More information/ SCHEDULE /06/07(Tue) / Basic of Programming /06/09(Thu) / Fundamental structures /06/14(Tue) / Memory Management /06/1
I117 II I117 PROGRAMMING PRACTICE II 2 MEMORY MANAGEMENT 2 Research Center for Advanced Computing Infrastructure (RCACI) / Yasuhiro Ohara yasu@jaist.ac.jp / SCHEDULE 1. 2011/06/07(Tue) / Basic of Programming
More information画像ファイルを扱う これまでに学んだ条件分岐, 繰り返し, 配列, ファイル入出力を使って, 画像を扱うプログラムにチャレンジしてみよう
第 14 回 応用 情報処理演習 ( テキスト : 第 10 章 ) 画像ファイルを扱う これまでに学んだ条件分岐, 繰り返し, 配列, ファイル入出力を使って, 画像を扱うプログラムにチャレンジしてみよう 特定色の画素の検出 ( テキスト 134 ページ ) 画像データが保存されているファイルを読み込んで, 特定色の画素の位置を検出するプログラムを作成しなさい 元画像生成画像 ( 結果の画像 )
More information