début TP 02-09

This commit is contained in:
JunkJumper 2020-09-02 13:52:41 +02:00
parent 64306a29c2
commit 47375d5a19
8 changed files with 51 additions and 0 deletions

6
.classpath Normal file
View 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
View File

@ -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
View 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

Binary file not shown.

BIN
Enoncés/TD/M313_TD1.pdf Normal file

Binary file not shown.

Binary file not shown.

5
src/TP1/Factorielle.java Normal file
View File

@ -0,0 +1,5 @@
package TP1;
public class Factorielle {
}

22
src/TP1/FenetreG.java Normal file
View 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();
}
}