473,387 Members | 3,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

fehler in compiler

29
i try to compile this programm useing pluto,it shows me error .where schould the fehler be?


#include <"stdio.h">
int main()
{
int counter;
int even=0;
int b= 7,int h= 10;
if h+ = b % 10;
b /= 10;
for( counter = 1; counter <= 10; counter++);
{
if (even == 1)
for( b = 1; b <= 7; b++);
{
printf("+\n");
even=0;
}
if (even == 0)
for( b = 1; b <= 7; b++);
{
printf("*\n");
even=1;
}
counter++;
printf(" \n ");
}
Oct 17 '07 #1
13 1500
Meetee
931 Expert Mod 512MB
i try to compile this programm useing pluto,it shows me error .where schould the fehler be?


#include <"stdio.h">
int main()
{
int counter;
int even=0;
int b= 7,int h= 10;
if h+ = b % 10;
b /= 10;
for( counter = 1; counter <= 10; counter++);
{
if (even == 1)
for( b = 1; b <= 7; b++);
{
printf("+\n");
even=0;
}
if (even == 0)
for( b = 1; b <= 7; b++);
{
printf("*\n");
even=1;
}
counter++;
printf(" \n ");
}
What is the error? Please paste it here. Also use CODE tags around your code:
[CODE ]..code goes here..[/CODE ]

Regards
Oct 17 '07 #2
locy
29
[quote=zodilla58]What is the error? Please paste it here. Also use CODE tags around your code:
[CODE line 1:"stdio.h"no such file or directory

line 6: expected identifer

line 7: expecting ( before h,

line 7: h undeclerd (first use in this function),

line 14,20,24:warning: incompatible implicit declaration of built-in function printf,

line 25:expected declaration of statement at end the input

..[/CODE ]

Regards[/QUOTE
Oct 17 '07 #3
DumRat
93
Code tags mean, anywhere you put code, you have to start with '[code]' (without quotes) and end with '[\CODE]'.

You should include stdio.h like #include <stdio.h> or #include"stdio.h"


Regards[/QUOTE[/quote]
Oct 17 '07 #4
locy
29
[quote=DumRat]Code tags mean, anywhere you put code, you have to start with '[code]' (without quotes) and end with '[\CODE]'.

You should include stdio.h like #include <stdio.h> or #include"stdio.h"


'
Expand|Select|Wrap|Line Numbers
  1. '
  2. it works but i still have problem with the rest error.
  3.  
Oct 17 '07 #5
DumRat
93
Please post the errors you are getting now.
Oct 17 '07 #6
locy
29
Please post the errors you are getting now.
'

'
Expand|Select|Wrap|Line Numbers
  1. '
  2. line 6: expected identifer 
  3.  
  4. line 7: expecting ( before h,
  5.  
  6. line 7: h undeclerd (first use in this function),
  7.  
  8. line 7 (each undeclerd identifer is reported only once)
  9.  
  10. line 7 expected expresion before =
  11.  
  12. line 7 be undeclared (first use in this function)
  13.  
  14. line 25:expected declaration of statement at end the input
  15.  
Oct 17 '07 #7
DumRat
93
Just read the errors and try to understand them please. It says that 'h' is undeclared, so you must have not declared it. Do look at the errors and try to solve it yourself. That is more fun than posting it here.
Oct 17 '07 #8
Meetee
931 Expert Mod 512MB
i try to compile this programm useing pluto,it shows me error .where schould the fehler be?


#include <"stdio.h">
int main()
{
int counter;
int even=0;
int b= 7,int h= 10;
if h+ = b % 10;
b /= 10;
for( counter = 1; counter <= 10; counter++);
{
if (even == 1)
for( b = 1; b <= 7; b++);
{
printf("+\n");
even=0;
}
if (even == 0)
for( b = 1; b <= 7; b++);
{
printf("*\n");
even=1;
}
counter++;
printf(" \n ");
}
Please observe your code again and specially bold lines. There are so many syntax mistakes which leads to errors!!

Regards
Oct 17 '07 #9
locy
29
int counter;
int even=0;
if (int b=10,int h= 7);
if (h+ =b % 10);
b /= 10;

but i have declared it aready at the begining of the programm
Oct 17 '07 #10
Meetee
931 Expert Mod 512MB
but i have declared it aready at the begining of the programm
I don't want to spoonfeed here. Better you give some time to your code and read previous posts carefully before posting the next thread..!

What you have declared is not the proper way of declaration and at many places there is ( and ; mistakes if you have posted your code correctly here. Check it again.

Regards
Oct 17 '07 #11
locy
29
i have done it btu it remain only the
in function main
[quote=
int main()

what is wrong with this function.

Regards[/QUOTE]
Oct 17 '07 #12
sicarie
4,677 Expert Mod 4TB
i have done it btu it remain only the
in function main
I'm sorry, could you rephrase your question?
Oct 17 '07 #13
locy
29
I don't want to spoonfeed here. Better you give some time to your code and read previous posts carefully before posting the next thread..!

What you have declared is not the proper way of declaration and at many places there is ( and ; mistakes if you have posted your code correctly here. Check it again.

Regards
the programm work but i still have one problem,
i am surpose to have

+++++++
* * * * * * *
to

10 times
but i only got
+
*

where could the problem come from.
Oct 17 '07 #14

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jeff Epler | last post by:
Hello. Recently, Generator Comprehensions were mentioned again on python-list. I have written an implementation for the compiler module. To try it out, however, you must be able to rebuild...
3
by: Benedict Ernst | last post by:
Hallo NG, wo ist der Fehler in diesem C code? > #include <stdio.h> > #include <stdlib.h> > #include <math.h> > > int wait () > { > setvbuf(stdin,NULL,_IONBF,0);
0
by: rollasoc | last post by:
Hi, I seem to be getting a compiler error Internal Compiler Error (0xc0000005 at address 535DB439): likely culprit is 'BIND'. An internal error has occurred in the compiler. To work around...
3
by: Mark Rockman | last post by:
------ Build started: Project: USDAver2, Configuration: Debug .NET ------ Preparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error...
1
by: Marko G. | last post by:
Hallo, ich versuche nun seit einiger Zeit, auf einem Active-Directory Server das Passwort eines Benutzers zu setzen. Hier der verwendete Quelltext: ------------ Dim entry As DirectoryEntry =...
0
by: Martin Himmel | last post by:
Hello Newsgroup, I want to build xerces.lib (actually dynamical, but as there are many linker errors using the dll, the static .lib version) ich möchte die xercesc-lib erstellen. eigentlich die...
1
by: Martin Himmel | last post by:
Hello Newsgroup, I want to build xerces.lib (actually dynamical, but as there are many linker errors using the dll, the static .lib version) ich möchte die xercesc-lib erstellen. eigentlich die...
7
by: Peter Hansch | last post by:
Hallo, habe ein VS02 Projekt konvertiert auf VS05. Es handelt sich um eine Klasse zur erzeugung eines Screenshots Dabei tritt oben genannter Fehler auf an. Und zwar bei markierter Stelle: ...
41
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.