ctrl+z and ctrl+c are "EOF" some where in your program you are telling it to ignor them. In your test condition add a test for EOF to break your
loop.
Type: Posts; User: Mikecore
ctrl+z and ctrl+c are "EOF" some where in your program you are telling it to ignor them. In your test condition add a test for EOF to break your
loop.
I wrote a small program for the command promt in windows. ( in C )
I would like to turn it into a GUI based program how does one go
about doing this?
What an ass Im am sorry Its been a really long day for me
Hello Im tring to compile an example from my C++ book but its faulting with this error
mike@laptop:~/code/C++/chapter_3$ g++ grade_3.cpp -o grade3
grade_3.cpp:18: error: expected...
thanks
What can cause a Segmentation fault?
Exactly what is a Segmentation fault?
forget it
try naim look it up on google it what you want.
dont listen to me im a noob
Thanks! yup I just read about scope in my book when I seen you added this to your post
So the second prototype function is a local function that can only be called from within the function that it...
I am doing some home work for class and we are learing about pointers.
anyhow I was keying in a example program from the book. and I noticed
that it defined a function prototype before main and...
I looked at what your are saying and I did some reading and some testing.
my school book say that you should express an dollar amount as a "%d" format specifer
cuase your talking about money. But...
yea it was a linker problem I figured that out
I also found many other problems with my code so I fixed it
// calculate loan payments on a mortgage
im trying to use the power function pow() but when I do the program fails to compile
with undefind refer to pow
// calculate loan payments on a mortgage
your right im a moron I must have done just what you said. Its late i must have screwed up
thanks for your time sorry I'm a nut job.
I think your missing my point. why would it run the program ./pg102 when Im positive
I typed in ./pg120. it some how got the two programs mixed up.
I know what the output is going to be from the code I posted I wanted to know if he gets the same problem as I did. he is using a linux box like I am.
I just checked out my source files and I have a folder setup to hold all of my chapter_4
.c files. I have two file one called pg102.c and on called pg120.c the pg120.c was the code I
posted and...
Im sorry I don't know what I did I cut and pasted from your post and it worked fine
i must have gotten code mixed up im going back right now to ckeck it out
printf ("Enter the perpendicular height of the triangle:\n");
scanf ("%lf %lf",&height,&hlength);
printf ("\nEnter the perpendicular width of the triangle:\n");
scanf ("%lf...
look at your function name
I am positive I used the same code. for both compilers
this is the output I get under gcc
1
2
3
4
5
6
Hello I was doing a home work assignment for my C programming class and I came across a problem. The assignment is a simple program that demonstrates how to use the "continue" statement.
...