赵鹏飞 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){
Missing a close-parenthesis ')' on the line above (or remove the extra
open-parenthesis '(').
> printf("The three numbers are : %d%d%d\n",a,b,c);
> }
>
> }
>
> }
> }
> return 0;
> }
>
>
> 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'
Two comments:
1) Your compiler should be capable of picking out that you are missing
a close parenthesis. If it isn't, time to get a new compiler. Visual
C++ 2005 Express is free and has the best debugger available.
2) Your code indentations are all over the place. Could just be my
mail reader but it certainly made matching the bracket pairs '{}' difficult.
--
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197
*NEW* MyTaskFocus 1.1
Get on task. Stay on task.
http://www.CubicleSoft.com/MyTaskFocus/