After writing the simple program, when I compiIe my program, I have to face the problem as 'unable to open include file 'STDIO.H'. To remove this problem what I have to do? Help me please.
Seven answers:
The Phlebob
2010-10-19 21:54:59 UTC
This sounds like a configuration problem. I'd say the compiler installation didn't set up the right pointer to the directory it put stdio.h (and many other headers) into. If you're running in an Integrated Development Environment (IDE), this may be configurable from within it. If you're compiling from the command line, you may need to either reinstall your C compiler or fiddle with the appropriate environment variable to include the directory.
Or, perhaps, the file was never installed.
Hope that helps.
husoski
2010-10-19 22:01:53 UTC
That looks like you used uppercase in the #include statement. If the problem line looks like:
#include ... or "STDIO.H"
then change it to:
#include
and recompile. The standard headers must be in lower case, and enclosed in <> brackets (not quotes). Capitals, or using quotes instead, may work on some systems but is not guaranteed.
This could also be a compiler installation/setup problem. Try compiling and running a "hello world" program:
#include
int main(void) {
printf("it worked!\n");
return 0;
}
...and be sure to use all lower case. If this doesn't compile and run, nothing will.
modulo_function
2010-10-19 21:47:26 UTC
You should post that portion of your code and the error messages.
I've never seen that capitalized: perhaps that's the problem?
anonymous
2016-11-05 17:06:43 UTC
Use nested for loops to simulate rows and columns. notice the form you have 4 rows and the columns rely on the form of row it fairly is linked to(in particular # of columns = row huge form) for (int row = 0; i < 4; i++) { ...for (int col = 0; col <= row; col++) ...{ .....printf("#"); ....} printf("n"); } which will print out the occasion output you have there for a fee of four. to permit the consumer to print out their very own sizes, in basic terms substitute the consistent 4 to a pair variable - a variable you establish from asking the consumer to circulate right into a huge decision: for (int row = 0; row < length; row++) //the place length is that variable you get from the consumer that's decrease than 30.
Xinux6
2010-10-19 21:52:04 UTC
Does your include line look like this?:
#include
?
2010-10-20 06:41:48 UTC
try reinstalling ur IDE
?
2010-10-19 21:52:22 UTC
set DIRECTORY ATTRIBUTES must be wrong! check it out
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.