* Trying to learn programing
@ 2005-11-29 0:10 Cameron Vessey
0 siblings, 0 replies; 7+ messages in thread
From: Cameron Vessey @ 2005-11-29 0:10 UTC (permalink / raw)
Hello,
I don't really now didley about programming and I am trying to learn. I've
down loaded so many things the past few day I can't keep them all straight.
A real simply tutorial said I needed an editor. I thought I had one when i
downloaded Dev-c++ from some site for free. it looks like an editor when you
run it. But real simple programs are not compiling and running right like:
#include <stdio.h>
int main()
{
printf("Hello World\n");
return 0;
}
I run this on Dev-C++ and a window briefly pops up (small in size) and has
Hello World on it but it disappears almost as soon as it appears.
So I downloaded emacs. Thinking to go with some thing simpler. I've read the
manuel over and over but I can't get it to configure to my computer ....the
Config.bat file...when i run it using msdos as the perameter it say I don't
have "sed" and that I need "sed". So I can't even get the editor up and
running right to learn simple programming. can any one help? I'm running
windows 98 2nd ed. 190 mg of ram and 15 gb of hard drive.
Cameron
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trying to learn programing
[not found] <mailman.17126.1133223017.20277.help-gnu-emacs@gnu.org>
@ 2005-11-29 0:32 ` Shug Boabby
2005-11-29 1:44 ` Chong Yidong
2005-11-29 12:39 ` Peter Tury
2 siblings, 0 replies; 7+ messages in thread
From: Shug Boabby @ 2005-11-29 0:32 UTC (permalink / raw)
Hi Cameron.
first of all, Emacs is an editor but not a compiler for languages like
C. the program you installed before probably has a compiler built it
(as it was able to compile your hello world program).
But fear not, Emacs is part of a much larger project called the GNU
project:
http://www.gnu.org/
and it does indeed have a free C++ compiler:
http://gcc.gnu.org/
I do not have Windows so I cannot tell exactly what your problem is,
though I suspect you have maybe downloaded the source code for Emacs,
not the binary itself (but do not delete it... it may be useful
material for you to read and help your programming! although very
advanced for a beginner, you might want to come back to it in a few
months.)
I suggest you read this for instructions on how to install Emacs for
Windows:
http://www.gnu.org/software/emacs/windows/ntemacs.html
and this for how to install a very minimal version of GCC for Windows
http://www.mingw.org/docs.shtml#installation
I'm sorry there is not a single, easy download for this (that I know
of), it would be really handy if someone made such a "beginning coder"
download of Emacs for Windows users, with nice defaults.
I'd suggest you try the Emacs tutorial out as soon as you install
Emacs, to get a feel for how it works.
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Trying to learn programing
@ 2005-11-29 0:56 Dave Humphries
0 siblings, 0 replies; 7+ messages in thread
From: Dave Humphries @ 2005-11-29 0:56 UTC (permalink / raw)
It sounds like you got the program compiled alright. The reason it is
running then disappearing is the command window is closing as soon as
the program is finished. If you look in the directory containing the c
source you will probably see the executable(or maybe new folders
containing a range of files one of which should be the executable .exe
file). You can run it by double clicking or by opening a command window
and dragging and dropping the executable file onto the command window
then pressing enter.
To get a simple install of emacs goto http://emacswiki.org and look for
the W32 install kit. For c programming with emacs you will probably also
want Cygwin although it sounds like you already have a working compiler.
Dave
-----Original Message-----
From: help-gnu-emacs-bounces+dave.humphries=dytech.com.au@gnu.org
[mailto:help-gnu-emacs-bounces+dave.humphries=dytech.com.au@gnu.org] On
Behalf Of Cameron Vessey
Sent: Tuesday, 29 November 2005 11:10 AM
To: help-gnu-emacs@gnu.org
Subject: Trying to learn programing
Hello,
I don't really now didley about programming and I am trying to learn.
I've down loaded so many things the past few day I can't keep them all
straight.
A real simply tutorial said I needed an editor. I thought I had one when
i downloaded Dev-c++ from some site for free. it looks like an editor
when you run it. But real simple programs are not compiling and running
right like:
#include <stdio.h>
int main()
{
printf("Hello World\n");
return 0;
}
I run this on Dev-C++ and a window briefly pops up (small in size) and
has Hello World on it but it disappears almost as soon as it appears.
So I downloaded emacs. Thinking to go with some thing simpler. I've read
the manuel over and over but I can't get it to configure to my computer
....the Config.bat file...when i run it using msdos as the perameter it
say I don't have "sed" and that I need "sed". So I can't even get the
editor up and running right to learn simple programming. can any one
help? I'm running windows 98 2nd ed. 190 mg of ram and 15 gb of hard
drive.
Cameron
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how
to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trying to learn programing
[not found] <mailman.17126.1133223017.20277.help-gnu-emacs@gnu.org>
2005-11-29 0:32 ` Trying to learn programing Shug Boabby
@ 2005-11-29 1:44 ` Chong Yidong
2005-11-29 1:51 ` Shug Boabby
2005-11-29 12:39 ` Peter Tury
2 siblings, 1 reply; 7+ messages in thread
From: Chong Yidong @ 2005-11-29 1:44 UTC (permalink / raw)
"Cameron Vessey" <cameron1inm@hotmail.com> writes:
> I don't really now didley about programming and I am trying to
> learn. I've down loaded so many things the past few day I can't keep
> them all straight. A real simply tutorial said I needed an editor. I
> thought I had one when i downloaded Dev-c++ from some site for
> free. it looks like an editor when you run it.
Incidentally, if you're trying to learn programming, you could do a
lot worse than to learn by programming Emacs itself.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trying to learn programing
2005-11-29 1:44 ` Chong Yidong
@ 2005-11-29 1:51 ` Shug Boabby
2005-11-29 21:22 ` Thien-Thi Nguyen
0 siblings, 1 reply; 7+ messages in thread
From: Shug Boabby @ 2005-11-29 1:51 UTC (permalink / raw)
(but (he (might (get (scared (of (all (the (parenthesis)))))))))
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trying to learn programing
[not found] <mailman.17126.1133223017.20277.help-gnu-emacs@gnu.org>
2005-11-29 0:32 ` Trying to learn programing Shug Boabby
2005-11-29 1:44 ` Chong Yidong
@ 2005-11-29 12:39 ` Peter Tury
2 siblings, 0 replies; 7+ messages in thread
From: Peter Tury @ 2005-11-29 12:39 UTC (permalink / raw)
Hi,
for Windows I suggest to try EmacsW32 on
http://ourcomments.org/Emacs/EmacsW32.html. It has a conventional Windows
install .exe (the ~22MB file in http://ourcomments.org/Emacs/DL/EmacsW32/)
as well as an extremly fine description of the whole building process (from
"what is needed exactly and how to download it"...)
(http://ourcomments.org/Emacs/w32-build-emacs.html). (I think this latter
stuff might be interesting for you only later.) Also it is very up-to-date.
It's nice, if you want to learn programming. IMHO one of the first and most
important thing to decide what is your aim: to learn something what makes
it easier to find a job later (this will result more programming language
learning and less programming learning) or just learning programming (means
mostly programming, less programming language learning) l'art pour l'art,
for fun. In the first case, C (or C++ or Java) is a good choice.
In the other case, learning
Emacs programming (=Emacs Lisp, aka elisp) (e.g.:
http://www.delorie.com/gnu/docs/emacs-lisp-intro/emacs-lisp-intro_toc.html:
"This text is written as an elementary introduction for people who are not
programmers") or
Scheme (e.g. http://www.plt-scheme.org/software/drscheme/tour/ ("DrScheme
is an interactive, integrated programming environment designed specifically
with the needs of beginners in mind") inside http://www.plt-scheme.org/) or
Mozart (http://www.mozart-oz.org/) are very good choices.
There is a great book about many modern aspects of programming: "Concepts,
Techniques, and Models of Computer Programming" (you can download its
pre-print version from
http://web.archive.org/web/20040202004840/http://www.info.ucl.ac.be/people/PVR/book.html
, search for "Online book"). You can try the examples in the book and
program in Mozart using Emacs and the mozart-related extension
(http://www.mozart-oz.org/download/view.cgi).
Each of the last 3 examples (Emacs Lisp, Scheme and Mozart) has its own
evironment, in which you can compile and debug easily... (They are more or
less standalone: you don't need anything else for developing in them...)
Br,
P
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trying to learn programing
2005-11-29 1:51 ` Shug Boabby
@ 2005-11-29 21:22 ` Thien-Thi Nguyen
0 siblings, 0 replies; 7+ messages in thread
From: Thien-Thi Nguyen @ 2005-11-29 21:22 UTC (permalink / raw)
"Shug Boabby" <Shug.Boabby@gmail.com> writes:
> (but (he (might (get (scared (of (all (the (parenthesis)))))))))
usually it's wise to respect power.
respect involves both fear and love.
these are both readily abundant when
the programmer finds the right way to
program. self-booting is not so easy.
thi
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-11-29 21:22 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.17126.1133223017.20277.help-gnu-emacs@gnu.org>
2005-11-29 0:32 ` Trying to learn programing Shug Boabby
2005-11-29 1:44 ` Chong Yidong
2005-11-29 1:51 ` Shug Boabby
2005-11-29 21:22 ` Thien-Thi Nguyen
2005-11-29 12:39 ` Peter Tury
2005-11-29 0:56 Dave Humphries
-- strict thread matches above, loose matches on Subject: below --
2005-11-29 0:10 Cameron Vessey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).