On 10/30/07, 赵鹏飞 <[EMAIL PROTECTED]> wrote:
> #include<stdio.h>
>    int main()
>   {
>     int a,b,c;
>       printf("They are bidagelasi numbers\n");
>
>   for(a = 0;a <= 500;++ a){
>        for(b = 0; b <= 500;++ b){
>
>         for(c = 0;c < 500;++ c){
>              if((a * a == c * c + b * b){

^^ You have two open parens here - you only need one:

              if(a * a == c * c + b * b){

[...]

>   I write the programme like this ,but when I  complie it ,the computer thell 
> me
>     error   in function'main'
>                parse error before '{'
>                At top level:
>                parse error before'return'
>
>   Please help solve this problem,tell me how to correct it
>    And other question is what's the meaning of "At top level"

Dunno. What compiler are you using? It should at least be giving you
line numbers; here's the output from your original program from mine:

$ c:\bin\make
cl c.c /EHs /Zc:forScope /Wall /W4 /WL /wd4820 /wd4619 /wd4217 /wd4710
/wd4668 /c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

c.c
C.C(2) : warning C4255: 'main' : no function prototype given:
converting '()' to '(void)'
C.C(11) : error C2143: syntax error : missing ')' before '{'
c:\bin\make: *** [c.obj] Error 2



-- 
PJH
"Statistics are like a bikini. What they reveal is suggestive, but
what they conceal is vital"
-- Aaron Levenstein

Reply via email to