A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
graphlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deleted.
[graphlib.git]
/
exemple.cpp
diff --git
a/exemple.cpp
b/exemple.cpp
index
ce402e5
..
0b50b85
100644
(file)
--- a/
exemple.cpp
+++ b/
exemple.cpp
@@
-1,26
+1,32
@@
/*
/*
- * Pour compiler
- * =============
+ * Pour compiler
et exécuter
+ * =============
============
*
*
- * 1. Créer le fichier
hello
.pro :
+ * 1. Créer le fichier
exemple
.pro :
* +------------------------------------------------------------+
* +------------------------------------------------------------+
- * |TARGET = hello |
- * |CONFIG += qt debug |
- * |SOURCES += hello.cc |
+ * |TEMPLATE = app |
+ * |TARGET = exemple |
+ * |CONFIG += qt |
+ * |CONFIG += debug |
+ * |HEADERS += DrawingWindow.h |
+ * |SOURCES += DrawingWindow.cpp |
+ * |SOURCES += exemple.cpp |
* +------------------------------------------------------------+
*
* 2. Créer le fichier Makefile avec la commande :
* +------------------------------------------------------------+
*
* 2. Créer le fichier Makefile avec la commande :
- * $ qmake
-makefile hello
.pro
+ * $ qmake
-qt4 exemple
.pro
* ou tout simplement :
* ou tout simplement :
- * $ qmake
-makefile
+ * $ qmake
-qt4
*
* 3. Compiler avec la commande :
*
* 3. Compiler avec la commande :
- * $ make
hello
+ * $ make
exemple
* ou tou simplement :
* $ make
* ou tou simplement :
* $ make
+ *
+ * 4. Exécuter le programme avec la commande :
+ * $ ./exemple
*/
*/
-
#include <QApplication>
#include <DrawingWindow.h>
#include <algorithm>
#include <QApplication>
#include <DrawingWindow.h>
#include <algorithm>