This commit is contained in:
raban
2024-05-03 14:38:55 +02:00
parent 7435b4c329
commit 5ef226918c
25 changed files with 0 additions and 58 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-58
View File
@@ -1,58 +0,0 @@
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.io.File;
import java.io.PrintWriter;
import java.io.FileWriter;
import java.io.IOException;
import javax.swing.JFileChooser;
import javax.swing.filechooser.FileNameExtensionFilter;
public class Grilles{
public static void grilleExiste(String name) {
int valeur[] = new int[9];
int valeur_en_fin[][]= new int[9][9];
int valeur_actuelle=0;
int tabcase[][]= new int[9][9];
try{
FileInputStream fichier = new FileInputStream(name);
DataInputStream flux = new DataInputStream(fichier);
try{
for(int i=0; i<9; i++){
valeur[i]=flux.readInt();
}
flux.close();
}catch(IOException e){
System.out.println("Lecture fichier impossible");
}
}catch(FileNotFoundException e){
System.out.println("Fichier non trouvé");
}
for(int i=0; i<9; i++){
for(int j=8; j>=0; j--){
valeur_actuelle=valeur[i];
valeur_actuelle=valeur_actuelle%10;
valeur[i]=(valeur[i]-valeur_actuelle)/10;
valeur_en_fin[i][j]=valeur_actuelle;
System.out.print(valeur_actuelle);
}
valeur_actuelle=0;
}
}
public static void grilleVide(int [][] g) {
int [][] remp = new int [9][9];
for(int i = 0 ; i < 9 ; i++){
for(int j = 0 ; j < 9 ; j++){
remp[i][j] = 0;
}
}
g = remp;
}
}