www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/30/07:15:02

From: Skye <s_c AT iname DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: VERY basic question
Date: Tue, 29 Apr 1997 19:45:25 -0700
Organization: Uniserve
Lines: 36
Message-ID: <3366B245.1AD4@iname.com>
References: <5k688j$2vp$1 AT newserve DOT gulftel DOT com>
Reply-To: s_c AT iname DOT com
NNTP-Posting-Host: dy2-20.van.tvs.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

This question needs some very basic help. Get a *Good* book on C
programming. That will fix most of your problems. I don't sugest playing
with c++ untill you have a full grasp on C. Yes, I know you can learn
C++ first but in my experience "most" of the time for "most" people it
is better to learn C first (or even pascal).

Run this program. If it won't work then your config is messed.

-------[code]----------

#include <stdio.h>

int main()
{
	printf("Hello World.");
	return 0;
}

------[end code]-------

Then from your command line:
gcc -o hello.exe hello.c

That is the "correct" way to do it (if your source file is called
hello.c).

As for programming ideas.... wait, they will come. Once you're used to
thinking in C (or what ever language you uses) the ideas will just start
flown'. 

If you search the mail archives you'll find that not too long ago there
were a couple of threads going on where you could find C tutorials on
the net.

Good luck,
Skye

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019