CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Error 66:3:4

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
P-O
Guest







Error 66:3:4
PostPosted: Mon Feb 16, 2004 12:44 pm     Reply with quote

I've got an internal error with that code:

#include "F:\Projet\PIC-C\clavier.c"
#include "F:\Projet\PIC-C\manette.c"


#define BOUGER_ROBOT 1
#define ENREGISTRER_MOUV 2

#define TERMINER 3
int LireCommande()
{


const char sFinal[4][10] = {"Fait par:",
"Pyo Inc.",
"Québec",
"@ MMIV"};
int iErreur;
int iCommande;
int i = 0;
int j = 0;

do
{
iCommande = LireCommClavier();

switch(iCommande)
{
case BOUGER_ROBOT:

iErreur = LireCommManette();
break;

case ENREGISTRER_MOUV:
// EnregisMouv(); // Enregistrer les mouvements.
break;
case TERMINER:
while( i <= 3)
{
puts( sFinal[i]);
}
break;
}
}
while( Commande != TERMINER);

return 0;
}[/size]

int LireCommClavier()
{
return 0;

}

int LireCommManette()
{
return 0;
}

// What shall I do?
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

PostPosted: Mon Feb 16, 2004 1:00 pm     Reply with quote

What kind of variable is sFinal[]?

You declare it as a multi dimensional array but only specify a single dimension in your print statement.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group