From owner-freebsd-questions Fri Feb 12 05:56:17 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA13548 for freebsd-questions-outgoing; Fri, 12 Feb 1999 05:56:17 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from alpha.comkey.com.au (alpha.comkey.com.au [203.9.152.215]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id FAA13519 for ; Fri, 12 Feb 1999 05:56:11 -0800 (PST) (envelope-from gjb@comkey.com.au) Received: (qmail 29301 invoked by uid 1001); 12 Feb 1999 13:47:27 -0000 Message-ID: <19990212134727.29300.qmail@alpha.comkey.com.au> X-Posted-By: GBA-Post 1.04 06-Feb-1999 X-PGP-Fingerprint: 5A91 6942 8CEA 9DAB B95B C249 1CE1 493B 2B5A CE30 Date: Fri, 12 Feb 1999 23:47:27 +1000 From: Greg Black To: Ersin Miman Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Where can I find C/C++ Tutorial for FreeBSD? References: In-reply-to: of Thu, 11 Feb 1999 15:18:38 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I know Borland C/C++ for dos/windows but I installed FreeBSD on my > computer and I want to learn freeBSD C/C++ . > > C/C++ that running on the freeBSD is different from Borland C/C++ and > there is some syntax declaration. > > where can I find C/C++ Tutorial for freeBSD and sample code? To start with, stick to Standard C and you'll be fine. When you've got the hang of that, read the man pages in sections 2 and 3 to see what is available under FreeBSD. For sample code, read the FreeBSD sources. Start with easy things like cat(1) and gradually work up to more complex programs like ls(1). Then have a look at using sockets and X-Windows, and you'll be on your way. There are some tutorials for some of the more complex stuff in /usr/share/doc. If you're looking for a simple environment to write, compile, test and debug your programs, consider installing and learning to use Emacs as your editor. It has excellent support for this. As for C++, don't bother. It will make you go blind and serves no useful purpose other than to sell lots of useless books, magazines, training courses, debuggers, and chairs for all the extra programmers that are needed to write simple software in complex ways. You may find a few people who disagree with the opinions in the two paragraphs before this one. You'll have to decide whether to listen to them or to the voice of reason :-) -- Greg Black To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message