c语言无效的八进制数字,错误:无效的数字“8”在八进制常量

IM学习C语言编程,我不knonw什么用此程序脚麻错误:无效的数字“8”在八进制常量

在构建信息错误代码是

错误:无效的数字八进制常数中的“8”。

任何一个可以帮助请和谢谢=)

#include

#include

int ch ;

int codeS , codeH;

int ph = 1 , ad = 2 , lb = 3 , us = 4;

int main()

{

//int ch ;

printf("\n Bienvenue à SHCPahrma \n Veulleiz Choisir Votre Code Section \n ph : 1\t ad : 2\t lb : 3\t us : 4\t\n num secteur ");

scanf("%d",&ch);

printf("\n Entrer votre code secteur \t = ");

scanf("%d",&codeS);

printf("\n Entrer Code Horaire \t = ");

scanf("%d",&codeH);

// ch = 1223 ;

//printf("%d",ch);

if ((ch == 1) && (codeS == 1111) && (codeH == 0815))

{

printf("Bienvenue Mr le Pharmacien\n");

}

else if ((ch == 2) && (codeS == 2222) && (codeH == 0815))

{

printf("Bienvenue Mr l'Administrative\n");

}

else if ((ch == 3) && (codeS == 3333) && (codeH == 0717))

{

printf("Bienvenue Mr agent laboratoire\n");

}

else if ((ch == 4) && (codeS == 3333) && (codeH == 0717))

{

printf("Bienvenue Mr agent Usine \n");

}

else

{

printf("Accées Interdit veullier Contacter l'administration\n")

}

return 0;

}

+2

在八进制数中遇到过“8”吗? –

2014-10-09 13:45:59

+0

[数组声明有什么错误:“八进制常量中的无效数字”?](http://stackoverflow.com/questions/8459030/whats-wrong-with-array-declaration-invalid-digit-in-octal -不变) –

2014-10-09 21:02:56

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值