35 lines
843 B
C
35 lines
843 B
C
#ifndef _PERIODIQ_H
|
|
#define _PERIODIQ_H
|
|
|
|
|
|
unsigned int key;
|
|
|
|
struct Element
|
|
{
|
|
unsigned char nom[14]; // le nom
|
|
unsigned char symbol[4]; // le symbole
|
|
|
|
unsigned int valence : 4;
|
|
unsigned int masse_mol : 20; // masse molaire * 1000
|
|
|
|
unsigned int groupe : 5; // x
|
|
unsigned int periode : 3; // y
|
|
|
|
unsigned int electro_neg :9; //electroneg *100
|
|
unsigned int famille : 4;
|
|
unsigned int etat : 3;
|
|
|
|
unsigned char config_electro[7];// la config électronique
|
|
//octet de flottement //align(4)
|
|
};
|
|
|
|
int detailsElement(int); //chang //a
|
|
int tableauElement(int); //chang
|
|
int tableauEleMini(int); //chang
|
|
int find(int); // int : pour le return
|
|
void choix_famille(int);
|
|
void Mini(char* c, int n);
|
|
void calcul_mole(void);
|
|
|
|
#endif
|