Staredit Network

Staredit Network -> Computers and Technical -> GCC compiler
Report, edit, etc...Posted by Ultramilkman on 2006-12-13 at 21:37:54
How do I install it, it's too complicted for me to understand the intalling instructions.

(Gcc compiler compiles C, which I need for my homework)
Report, edit, etc...Posted by Doodle77(MM) on 2006-12-14 at 20:58:08
You can get Dev-C++, which comes with it, or find gcc on mingw.org
Report, edit, etc...Posted by Ultramilkman on 2006-12-14 at 22:06:18
I downloaded it before you posted, just don't know how to install it. ???
Report, edit, etc...Posted by Cole on 2006-12-14 at 22:14:42
After you download it just follow the installation process......

I'd suggest VS2005 Express for a free compiler.
Report, edit, etc...Posted by Doodle77(MM) on 2006-12-15 at 17:22:16
...
Report, edit, etc...Posted by Ultramilkman on 2006-12-17 at 22:51:31
AHHHHHH how I complete this assignment????????

QUOTE
Studebaker the robot (Stuy's FIRST entry from 1957) has a velocimeter
but no computer. Instead, it prints out the velocity values every 5
seconds (adjustable by a dial) on a sheet of paper and leaves it
behind for the drivers to read and manipulate by slide rule.  We want
to demo Studebaker at the Class of '57 reunion, but it's 2006 and no
one knows how to use slide rules any more!  Write this program so that
we can bring Studebaker out of the closet and impress the fictional
people who built him.

The program should read in a time interval (seconds) as a floating
point number, an integer indicating the number of values to follow
(less than 256), and then a list of velocities (ft/s) as floating
point numbers.  It should then print:
a) The total displacement
b) The total distance traveled
c) The average velocity
d) The average speed

Assume that Studebaker is starting from rest, and that he travels at
each velocity for all of the given time period.

Sample input:
4.2
5
3.0
2.0
1.3
-2.1
-4.0

Sample output:
.8
52.0
.03809
2.47619

Remember that you can read input using scanf.


How I do this with C????



Why doesn't this compile:
QUOTE
#include < stdio.h>

void main()
{
    printf("\nHello World\n");
}
[


HELP HELP ME!!!, MY ASSIGNMENT IS DUE TOMORROW!!!
Report, edit, etc...Posted by ShadowFlare on 2006-12-17 at 23:35:51
CODE
#include < stdio.h>

void main()
{
   printf("\nHello World\n");
}
[

Try removing the space before stdio.h and removing that right bracket at the end if it is part of the code. BTW, you should post the error message(s) the compiler is giving, not just say that it won't compile.

BTW, just ignore the first paragraph in that text you posted. It is just extra, useless, unrelated information. tongue.gif
Report, edit, etc...Posted by Ultramilkman on 2006-12-18 at 16:03:26
Ahh why is there an error? Thanks for helping ShadowFlare, you are the bomb programer clapping.gif Now for my other questions...
Report, edit, etc...Posted by ShadowFlare on 2006-12-18 at 16:35:09
Hmm, the warning is referring to that it is expecting an int return value on main; but it is a warning, not an error.

The error is because you typed in "print" instead of "printf"
Report, edit, etc...Posted by Pie_Sniper on 2006-12-18 at 18:43:25
Well, it should be an error... disgust.gif
Report, edit, etc...Posted by Ultramilkman on 2006-12-18 at 18:59:36
Thank you, I have much to learn, but anyways you guys are geniuses!!
Oh yea one more question, how do I set my enviormental Path to the folder where I keep my c files?
Report, edit, etc...Posted by Doodle77(MM) on 2006-12-18 at 20:43:01
Are you asking us for the answers to your homework -.-

We may not even be the same forum, but I feel that this applies equally.

System->Advanced->Environment Varaibles->the Path variable.
Next Page (1)