début TP 02-09
This commit is contained in:
parent
64306a29c2
commit
47375d5a19
6
.classpath
Normal file
6
.classpath
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry kind="src" path="src"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||||
|
<classpathentry kind="output" path="bin"/>
|
||||||
|
</classpath>
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -21,3 +21,4 @@
|
|||||||
|
|
||||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||||
hs_err_pid*
|
hs_err_pid*
|
||||||
|
/bin/
|
||||||
|
17
.project
Normal file
17
.project
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>M313-Algorithmique-avancee</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
BIN
Cours/M313_CM1.pdf
Normal file
BIN
Cours/M313_CM1.pdf
Normal file
Binary file not shown.
BIN
Enoncés/TD/M313_TD1.pdf
Normal file
BIN
Enoncés/TD/M313_TD1.pdf
Normal file
Binary file not shown.
BIN
Enoncés/TP/TP1_Recursivite.pdf
Normal file
BIN
Enoncés/TP/TP1_Recursivite.pdf
Normal file
Binary file not shown.
5
src/TP1/Factorielle.java
Normal file
5
src/TP1/Factorielle.java
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
package TP1;
|
||||||
|
|
||||||
|
public class Factorielle {
|
||||||
|
|
||||||
|
}
|
22
src/TP1/FenetreG.java
Normal file
22
src/TP1/FenetreG.java
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
package TP1;
|
||||||
|
|
||||||
|
import java.awt.Graphics;
|
||||||
|
import java.util.Random;
|
||||||
|
|
||||||
|
import javax.swing.JFrame;
|
||||||
|
|
||||||
|
public class FenetreG extends JFrame {
|
||||||
|
static Random generator = new Random() ;
|
||||||
|
|
||||||
|
public void paint(Graphics g) {
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
FenetreG fenetre = new FenetreG() ;
|
||||||
|
fenetre.setDefaultCloseOperation(EXIT_ON_CLOSE) ;
|
||||||
|
fenetre.setExtendedState(MAXIMIZED_BOTH) ;
|
||||||
|
fenetre.setVisible(true) ;
|
||||||
|
fenetre.triGraphique();
|
||||||
|
fenetre.repaint();
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user