473,769 Members | 2,091 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Learning C for the third time?

Hi all,

I have tried to learn C now several times before but gave up
twice. I would like to learn GCC under Debian. Is there
any good BEGINNER tutorials out there that will take me
from the "this is the software you need and this is how you
set it up and run it" kind of thing? I have programmed in
other languages but have never made the total leap in
learning C. I did a scan of the past posts here but didn't
see this type of question. If there is a better place for this,
please let me know.

thanks,
charles.....
Aug 20 '06 #1
18 1528

***** charles wrote:
Hi all,

I have tried to learn C now several times before but gave up
twice. I would like to learn GCC under Debian. Is there
any good BEGINNER tutorials out there that will take me
from the "this is the software you need and this is how you
set it up and run it" kind of thing? I have programmed in
other languages but have never made the total leap in
learning C. I did a scan of the past posts here but didn't
see this type of question. If there is a better place for this,
please let me know.

thanks,
charles.....
Start with "The C Programming Language" by Brian Kernighan and Dennis
Ritchie.

For some more indepth info on the topics in that book, check out this
website:

http://cslibrary.stanford.edu/

Read the FAQ that is posted here.

Then, just write code. Come here and post code and be prepared to be
told you're wrong. You learn a lot by just writing code.

Aug 20 '06 #2

"***** charles" <so*****@out-there.comwrote in message
news:A2******** **********@news svr11.news.prod igy.com...
Hi all,

I have tried to learn C now several times before but gave up
twice. I would like to learn GCC under Debian. Is there
any good BEGINNER tutorials out there that will take me
from the "this is the software you need and this is how you
set it up and run it" kind of thing? I have programmed in
other languages but have never made the total leap in
learning C. I did a scan of the past posts here but didn't
see this type of question. If there is a better place for this,
please let me know.

thanks,
charles.....
The best instructor is having to write production code. No I don't mean
critical mission system software that will endanger humanity if you screw it
up, I mean "dang I wish I could improve this script into something everyone
can appreciate."

Tutorials are nice, but in my mind necessity is the best instructor you can
ever have.
Aug 20 '06 #3

"***** charles" <so*****@out-there.comwrote in message
Hi all,

I have tried to learn C now several times before but gave up
twice. I would like to learn GCC under Debian. Is there
any good BEGINNER tutorials out there that will take me
from the "this is the software you need and this is how you
set it up and run it" kind of thing? I have programmed in
other languages but have never made the total leap in
learning C. I did a scan of the past posts here but didn't
see this type of question. If there is a better place for this,
please let me know.
Programming is a bit like playing a musical instrument.
Some people take to it quite naturally, some people will never get anywhere,
and some people, probably the biggest group, can with great effort attain a
certain level of competence, but will never be of performance standard.

If you are not in group one, why do you want to learn C?
There might be reasons, but you might well put in a lot of effort for very
little reward.
--
www.personal.leeds.ac.uk/~bgy1mm
freeware games to download.
Aug 20 '06 #4
Malcolm posted:
Programming is a bit like playing a musical instrument.
Some people take to it quite naturally, some people will never get
anywhere, and some people, probably the biggest group, can with great
effort attain a certain level of competence, but will never be of
performance standard.

The best analogy I've heard so far with regard to programming.

--

Frederick Gotham
Aug 20 '06 #5

Eigenvector wrote:
"***** charles" <so*****@out-there.comwrote in message
news:A2******** **********@news svr11.news.prod igy.com...
Hi all,

I have tried to learn C now several times before but gave up
twice. I would like to learn GCC under Debian. Is there
any good BEGINNER tutorials out there that will take me
from the "this is the software you need and this is how you
set it up and run it" kind of thing? I have programmed in
other languages but have never made the total leap in
learning C. I did a scan of the past posts here but didn't
see this type of question. If there is a better place for this,
please let me know.

thanks,
charles.....

The best instructor is having to write production code. No I don't mean
critical mission system software that will endanger humanity if you screw it
up, I mean "dang I wish I could improve this script into something everyone
can appreciate."

Tutorials are nice, but in my mind necessity is the best instructor you can
ever have.
C is not a scripting language so why would you be tring to improve a
"script" in C?

Aug 20 '06 #6
In article <cK************ *******@news.in digo.ie>,
Frederick Gotham <fg*******@SPAM .comwrote:
>Malcolm posted:
>Programming is a bit like playing a musical instrument.
Some people take to it quite naturally, some people will never get
anywhere, and some people, probably the biggest group, can with great
effort attain a certain level of competence, but will never be of
performance standard.


The best analogy I've heard so far with regard to programming.
Except that, if I'm not mistaken, current research in cognitive psychology
indicates that it's completely wrong.

Apparently the primary[1] contributing factor in being Really Good at
something is having put large amounts of time and energy into getting
Really Good at it. The "natural talent" that some people have is mostly
a result of getting a good start because of some environmental influence
or another; that good start makes it easier to keep working at it (by
decreasing the difficulty-to-motivation ratio) and starts a positive
feedback loop.

(The current issue of Scientific American has a pretty good article
on this. I've heard the idea referenced second- and third-hand in a
few other places as well.)

So if you really want to learn how to write computer programs well, or
play a musical instrument well, or do anything else well, all you really
need is time, energy, and motivation (adding a competent mentor to that
will probably make the beginning stages Rather Easier); that combination
is a lot harder to come by than it should be (most people who have the
motivation seem to have other things taking up their time and energy),
but if you can get those they'll easily make up for little things like
natural ability or lack thereof.

The WORST thing you can possibly do is decide that there's not much
point in trying to get better because you don't have the natural talent
required to get past "somewhat competent".
(Of course, it could easily happen that you decide that you have other
things you'd rather focus your time and energy on than getting better
at <foo- I could probably name five or ten without having to stop
and think about it. But in that case, don't complain about not having
natural talent for it, complain about not having enough time and energy
to go around.)
dave

[1] That's "primary" as in "drowns out all the rest".

--
Dave Vandervies dj******@csclub .uwaterloo.ca
[A] colleague who shall remain nameless always claimed (in jest, I think) that
the University motto should be: "Waterloo - Not as bad as it sounds"
--Alex Lopez-Ortiz in uw.general
Aug 21 '06 #7

<sw***********@ gmail.comwrote in message
news:11******** *************@i 3g2000cwc.googl egroups.com...
>
Eigenvector wrote:
>"***** charles" <so*****@out-there.comwrote in message
news:A2******* ***********@new ssvr11.news.pro digy.com...
Hi all,

I have tried to learn C now several times before but gave up
twice. I would like to learn GCC under Debian. Is there
any good BEGINNER tutorials out there that will take me
from the "this is the software you need and this is how you
set it up and run it" kind of thing? I have programmed in
other languages but have never made the total leap in
learning C. I did a scan of the past posts here but didn't
see this type of question. If there is a better place for this,
please let me know.

thanks,
charles.....

The best instructor is having to write production code. No I don't mean
critical mission system software that will endanger humanity if you screw
it
up, I mean "dang I wish I could improve this script into something
everyone
can appreciate."

Tutorials are nice, but in my mind necessity is the best instructor you
can
ever have.

C is not a scripting language so why would you be tring to improve a
"script" in C?
Use your imagination I'm sure you'll think of something.
Aug 21 '06 #8

Eigenvector wrote:
"***** charles" <so*****@out-there.comwrote in message
news:A2******** **********@news svr11.news.prod igy.com...
Hi all,

I have tried to learn C now several times before but gave up
twice. I would like to learn GCC under Debian. Is there
any good BEGINNER tutorials out there that will take me
from the "this is the software you need and this is how you
set it up and run it" kind of thing? I have programmed in
other languages but have never made the total leap in
learning C. I did a scan of the past posts here but didn't
see this type of question. If there is a better place for this,
please let me know.

thanks,
charles.....

The best instructor is having to write production code. No I don't mean
critical mission system software that will endanger humanity if you screw it
up, I mean "dang I wish I could improve this script into something everyone
can appreciate."

Tutorials are nice, but in my mind necessity is the best instructor you can
ever have.
I comepletely agree. IMHO you don't need tutorials. You need a decent
reference book (K&R is the defacto standard, theres also a few good
ones online, google is your friend), and a goal for an app in mind.
Theres not point learning C just to memorize syntax. Do a little
research, find out what C is good for and think of an application you
can make (whether you need it or not). Whats your goal? Lower level
*nix programming? Make a program that recursively traverses directories
and prints the contents (much like ls). Maybe you're interested in
higher level GUI programming. Go take a look at the gtk library, it has
many tutorials and an online reference. Design yourself a calculator or
some simple GUI app.

Just to share my experience, I've learned C three times as well. Once
in high school where I went through some tutorials and got used to the
syntax but I couldn't actually DO anything with it. Then I took an
intro to programming course in university (they used c++, point being,
still syntax, maybe a linked list or 4, nothing very useful). Then, for
a project course, I decided to design a real-time vision system for a
team of autonomous robots. Thats when I REALLY learned C, by doing
something with it. When you're forced to make something that actually
has to work you go to all ends to find example code, ask questions
about it, change it a bit, compile it, study output, reserach compile
and runtime errors, read man pages on standard libs, read reference
books etc etc etc.

Another method is to look at some bug trackers for open source projects
that use C (search sourceforge for example or maybe an app you use
everyday on Debian). Try to understand why the bug is a bug and maybe
try to solve a few. Submit patches and get some feedback.

HTH,
Chris

Aug 21 '06 #9
My Suggestion Is To Goto Http://cprogramming.com/ Read That.. And As
Far As The GCC Flag's And Commands Go... I Will Explain gcc yourfile.c
That Will Compile yourfile.c To a.out To Run a.out Goto The Dir It
Would Be In (You May Need To Search For It...) Then Type In The Command
Line ./a.out To Avoid Searching For The File You Must Do This... gcc
yourfile.c -o yourfile.out Or The Path You Wont It At... To Learn More
About GCC Type In The Command Line man gcc ;)

Aug 21 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3474
by: ggg | last post by:
I'm looking for a complete project/application done with heavy use of of object-oriented programming & design. Preferably something well documented and/or commented so that I can pick it apart and learn how/why they designed it they way they did. Any suggestions?
7
1773
by: Ryan Walker | last post by:
Hi, I'm getting started with python and have almost zero programming experience. I'm finding that there are tons of tutorials on the internet -- such as the standard tutorial at python.org -- that tell you all about the language. That is, what are the methods, functions, modules, syntax, punctuation, etc. No problem there! Meanwhile, I'm finding that there is very little (that I can find) about how to do basic logistical things related...
3
330
by: kooolega | last post by:
Hi, that's me! I've decided to learn C++, but I'm still thinking about the books about C++. Which one is the best one and so on. I've made a list of books I'm going to read. I'd be glad if you checked it and told me your opinion. So, that's the list: 1. "Thinking in C++. Tom I" by Bruce Eckel 2. "Thinking in C++. Tom II" by Bruce Eckel and Chuck Allison 3. "C++ Unleashed" by Jesse Liberty 4. "C++ Gotchas: Avoiding Common Problems in...
90
3881
by: Jhon smith | last post by:
Hi all,Just wondering are there any problems with learning c from older books,as I have picked up some from 1988,1994,1997,1998. By using books of this age(Im on a tight budget)am I going to missout on anything in the langauge or has C remaind similar. I intend to use Dev-C++ on the windows platform. If any one feels theres anything I should be aware of,please help me out,I feel a bit lost with all thats out there regarding this language....
3
2488
by: beachboy | last post by:
hi all, would you pls advise any good books for learning C# (web related back-end programming) with java background? thanks for your suggestion. beachboy
5
1820
by: Falc | last post by:
Hi there... I have been looking at learning Python, so far it looks like an absolutely grat language. I am having trouble finding some free resources to learn Python from. I am on windows and the only experience I have with programming is with PHP. I have been trying to look at the free online book "Dive Into Python" but this is far too difficult for me as it explains it in caparison with C++ or Java.
0
1028
by: siddharthkhare | last post by:
Hi All, I have requirement where I am getting some free text from users of my applications. And it will have some key fields that I have to extract out. Now there could be various different formats(sequence) that these fields can appear in. Regular expression won't be sufficient to handle all possibilities. So i was wondering if any one knows of any machine-learning third party component (Natural language processing) component that can...
7
1509
by: Michael | last post by:
Hey, I'm, I guess, an itermediate programmer and I have a question about learning any programming language. I understand that as a programmer you're going to probably constantly be re-writing code and the best method would be to save a template or other etc. I also know that it's ok to use other people's code to help you do something, but wouldn't it be best to re-type the code or study it until YOU learn how to do it and you actually...
2
1825
by: thecheyenne | last post by:
Hi and good evening / good morning (depending on your location on this planet) Despite my limited - o.k, non-existing - knowledge of vba, I'd like to design a database to help with the admin of school outings. I pretty much know my way around MS access, but may well need vba for this thing here, so if you have any hints and tips for me, I'd be most grateful. The outline of the day-out is as follows: There is a pool of activities...
0
9579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10208
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10038
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9987
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8867
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7404
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3558
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.