xj88019692 发表于 2008-3-15 18:11:44

cvavr能完全支持goto语句吗

cvavr能完全支持goto语句吗?

machao 发表于 2008-3-15 18:16:55

Following is a list of keywords reserved by the compiler.
These can not be used as identifier names.

break
bit
case
char
const
continue
default
do
double
eeprom
else
enum
extern
flash
float
for
funcused
goto
if
inline
int
interrupt
long
register
return
short
signed
sizeof
sfrb
sfrw
static
struct
switch
typedef
union
unsigned
void
volatile
while

不过最好不用goto

gaobao_1 发表于 2008-4-22 17:07:45

请问马老师为什么最好不用goto ?

aleyn 发表于 2008-4-22 17:27:01

正确的使用goto,也会使程序更加简便。

yibin818 发表于 2008-4-22 18:40:08

同意 村长

machao 发表于 2008-4-22 23:15:25

在C中,没有把握还是不要使用GOTO语句.

这里初学者多,要养成良好的编程风格.

n0831 发表于 2008-4-23 16:50:25

正确的使用goto,也会使程序更加简便。



是的,前提是   正确的使用 哈哈。。

computer00 发表于 2008-4-23 17:29:08

有时在出错处理方面用goto还是比较方便的。可以把出错处理集中放在函数末尾然后goto一下。

aleyn 发表于 2008-4-23 17:39:42

圈圈的说法正是这个goto的正解。
页: [1]
查看完整版本: cvavr能完全支持goto语句吗