A
abi
hi,
i have a c program in notepad. How to convert it or how to compile
it?
i have a c program in notepad. How to convert it or how to compile
it?
abi said:hi,
i have a c program in notepad. How to convert it or how to compile
it?
This will compile your c program, and generate one correspondinggcc -Wall -c abi_c.c [Enter]
hi,
i have a c program in notepad. How to convert it or how to compile
it?
hi,
i have a c program in notepad. How to convert it or how to compile
it?
abi said:hi,
i have a c program in notepad. How to convert it or how to compile
it?
2) If you don't have a C compiler installed, install one. You can find a
list of free C compilers here:
http://www.cpax.org.uk/prg/portable/c/resources.php#FreeCompilers
user923005 said:
abi said:hi,
i have a c program in notepad. How to convert it or how to compile
it?
Richard said:abi said:
"This is the big hurdle", as Brian Kernighan rightly said. Everything
else in C is relatively simple by comparison.
santosh said:<snip>
I personally found this to be the smallest hurdle in learning C.
<snip>
I personally found this to be the smallest hurdle in learning C.
Richard said:santosh said:
I stand by my original statement. Compared to the challenge of getting
"hello world" up and running, *especially* if nobody has been kind enough
to install a compiler for you, the rest of C is relatively simple.
santosh said:Richard Heathfield wrote: [...][...]"This is the big hurdle", as Brian Kernighan rightly said. Everything
else in C is relatively simple by comparison.
I stand by my original statement. Compared to the challenge of getting
"hello world" up and running, *especially* if nobody has been kind enough
to install a compiler for you, the rest of C is relatively simple.
In practically every C course I can think of, a ready to use compiler
and environment were provided. If someone is going to learn C at home,
then he ought to familiarize himself with the basic usage of
computers, (manipulating files, installing programs etc.), before
attempting to learn C.
In summary what you say would be true only in two cases, (I can think
of):
1. Attempting to learn C before learning the basics of using
computers.
2. Attempting to write your first program before getting the basics of
C syntax down pat.
Kenneth said:santosh said:Richard Heathfield wrote: [...]In summary what you say would be true only in two cases, (I can think"This is the big hurdle", as Brian Kernighan rightly said.
Everything else in C is relatively simple by comparison. [...]
I stand by my original statement. Compared to the challenge of
getting "hello world" up and running, *especially* if nobody has
been kind enough to install a compiler for you, the rest of C is
relatively simple.
of):
1. Attempting to learn C before learning the basics of using
computers.
Considering how many people try to use computers before learning the
basics of using computers, I think the field is pretty wide open for
this one.
2. Attempting to write your first program before getting the basics
of C syntax down pat.
As I recall, I created/compiled/ran "Hello world" before I knew much
about C beyond the first few pages of K&R.
Yes, I was quite familiar with programming in general, having already
been self-taught in numerous languages. Yes, I knew how to use the
computer, and was able to install the C compiler, and use a text
editor.
Richard said:santosh said:
It has rightly been said that the distance between 0 and 1 is greater than
the distance between 1 and 1000. (Your mileage may vary. Mathematicians
need not apply. May contain nuts.)
When I first learned C, I did so by taking a 13-week course. We were given
quite a few days of classroom stuff before we were let loose on a
computer. Our first task was "hello, world". We didn't have to install the
compiler - that had already been done for us, thank heaven.
One of the people in the class (a very promising student, it seemed to the
rest of us) got quite a few (I think it was 13) compilation errors. He got
up and walked out of the lab, and we never saw him again.
We all know that he's probably made just one mistake, or possibly two -
maybe a missing semicolon, maybe a 0 instead of a ), or whatever. Had he
fought his way over that hurdle, I'm sure he would have made a perfectly
good C programmer. But it was too big a *perceived* hurdle for him.
I stand by my original statement. Compared to the challenge of getting
"hello world" up and running, *especially* if nobody has been kind enough
to install a compiler for you, the rest of C is relatively simple.
Larry__Weiss said:I never have found string handling to be simple in any sense in C.
Perhaps it's just a personal flaw or blind-spot, but having to
explicitly do the memory management makes it inherently not simple for me.
Peter said:<OT>
You haven't programmed on Symbian, have you? Their string handling makes
C strings look not only simple, but also beautiful.
</OT>
Larry__Weiss said:<OT>
No, I have not.
Symbian must be a truly esoteric language
Not _in_ Symbian, _on_ Symbian. An operating system for mobile devices.
Richard
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.