Hi I'm getting this error when I comipile this code :
Code:
#include <iostream> // lectures et �critures (I/O)
#include <iomanip> // manipulation des I/O, pas besoin pour le moment
#include <cstdlib> // Bibliothèques C
using namespace std;
/****** Declarations globales ******/
// ========= constantes ========== //
// ============ types ============ //
int degre_denominateur,x,y;
float t_table2[20][20];
// ========== variables ========== //
// ========== fonctions ========== //
void initialisation_grille()
{
float grille[20][20];
int ligne ; int colonne ;
for ( ligne = 0 ; ligne <= 20 ; ligne ++ )
{ for ( colonne = 0 ; colonne <= 20 ; colonne ++ )
{ grille [ ligne ] [ colonne ] = '0' ;
}
}
}
void affichage_grille ( float grilletest[][20]) { //grille est en entree car le SP doit connaitre
float grille[20][20]; // ses valeurs pour les afficher
int ligne ;
int colonne ;
for ( ligne = 20; ligne >=0 ; ligne --){
for ( colonne = 0 ; colonne <= 20; colonne ++ ){
cout<< grille [ ligne ] [ colonne]<< '\t';
}
cout << endl ;
}
}
float donner_coefficients_table_de_routh__et_remplir_deux_premieres_lignes ( int x, int degre_denominateur ){
float y;
float t_tableaudecoefficients [25];
int c=0;
int l=0;
for (x=degre_denominateur ; x>=0 ; x--){
cout<<"quel est le coefficient associe au degre"<<x<<"?"<<endl;
cin>> y;
y = t_tableaudecoefficients[x];
if ( (l==2) ){ l=0 ; c++; }
t_table2[l][c] = y;
l++;
}
return y;
}
void effectuer_calcul_table_de_routh( float t_table2toto[][20]){
int ligne;
int c;
int i;
float t_table2[20][20];
for (ligne=0 ; ligne<=20 ; ligne++){
int p;
p=c+2;
for (i=2 ; i<=p ;i++ ) {
int r;
r=ligne-2;
int s;
s=ligne-1;
int f;
f=i+1;
t_table2[ligne][i] = ( t_table2[r][f] - ( (t_table2[s][f]) * ( (t_table2[r][ligne])/(t_table2[s][ligne]) ) ) ) ;
;
}
}
}
/******* Programme principal *******/
int main(){
initialisation_grille();
affichage_grille ( t_table2[][20] );
cout<<"quel est le degre du denominateur?"<<endl;
cin>> degre_denominateur ;
donner_coefficients_table_de_routh__et_remplir_deux_premieres_lignes ( x, degre_denominateur );
effectuer_calcul_table_de_routh(t_table2[][20]);
affichage_grille (t_table2[][20]);
system("PAUSE");
}
Any help would be appreciated.