473,382 Members | 1,107 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

interesting examples to learn C.

Hi

I am wonderinf if there are interesting examples to learn C.
Or any good idea?

Mike
Mar 27 '08 #1
12 2067
Mike said:
Hi

I am wonderinf if there are interesting examples to learn C.
I suggest that you start off with a good tutorial book, such as:

C Programming: A Modern Approach, K.N.King, W.W.Norton & Company, 1996.
ISBN 0-393-96945-2

or

C: How to Program, 5th Ed. Deitel, H.M. & Deitel, P.J. Prentice Hall, 2007.
ISBN: 0-13-240416-8

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Mar 27 '08 #2
Richard Heathfield <rj*@see.sig.invalidwrites:
>Chris McDonald said:
>Have you read it?
Moderate skimming.
>Yes, that's a shame, isn't it? Nevertheless, this is easily remedied, by
taking a sharp blade and removing pages 666+ from the book. What remains
is still a pretty good book on C.
But I can't, in good conscience, recommend that my students pay for
50% of a book that we explicitly won't cover
(... and the 60 pages of Chpt 15 on the Allegro Game Programming Library)

--
Chris.
Mar 27 '08 #3
K & R II also has plenty of good examples.
Mar 27 '08 #4
Chris McDonald said:
Richard Heathfield <rj*@see.sig.invalidwrites:
>>Chris McDonald said:
>>Have you read it?

Moderate skimming.
>>Yes, that's a shame, isn't it? Nevertheless, this is easily remedied, by
taking a sharp blade and removing pages 666+ from the book. What remains
is still a pretty good book on C.

But I can't, in good conscience, recommend that my students pay for
50% of a book that we explicitly won't cover
I can understand that. Note, however, that my reply was to the OP, who
asked: "I am wonderinf if there are interesting examples to learn C." And
D&D certainly has some interesting examples...
(... and the 60 pages of Chpt 15 on the Allegro Game Programming Library)
....of which that is one. It may not be the right answer for your students,
but that needn't stop it being a possibility for the OP to explore.

Oh, it just occurred to me - is the OP one of your students? (That would
certainly explain your reply.)

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Mar 27 '08 #5
Richard Heathfield <rj*@see.sig.invalidwrites:
>Oh, it just occurred to me - is the OP one of your students? (That would
certainly explain your reply.)
I doubt it; my course starts in July.

--
Chris.
Mar 27 '08 #6
On Mar 27, 11:00*am, Mike <Sulfate...@gmail.comwrote:
Hi

* * I am wonderinf if there are interesting examples to learn C.
Or any good idea?

Mike
There are lot of resources on web, you can google it or you can find
some interesting set of C programming puzzles at http://programmingsite.googlepages.com
~Jack
Mar 27 '08 #7
Ja*************@gmail.com wrote, On 27/03/08 10:36:
On Mar 27, 11:00 am, Mike <Sulfate...@gmail.comwrote:
>Hi

I am wonderinf if there are interesting examples to learn C.
Or any good idea?

Mike

There are lot of resources on web, you can google it or you can find
some interesting set of C programming puzzles at http://programmingsite.googlepages.com
That is not a very good site. Because it has not been done very well the
#includes are missing the file names, it uses void main(), asks what the
output of programs that invoke undefined behaviour is and in the answer
does not make it clear the behaviour is undefined but instead states you
*will* get one of two specific results. A quick scan suggests other
problems as well.
--
Flash Gordon
Mar 27 '08 #8
Mike said:

<snip>
I'd like to ask you think of somebody who never learns well on math
and doesn't have good logic in his mind. They usually like to surf
the web, play on-line game, listen mp3 and watch videos. How to teach
these students in a very interesting way?
http://www.mcdonalds.com/corp/career...niversity.html

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Mar 31 '08 #9
Mike wrote:
>
.... snip ...
>
I'd like to ask you think of somebody who never learns well on
math and doesn't have good logic in his mind. They usually like
to surf the web, play on-line game, listen mp3 and watch videos.
How to teach these students in a very interesting way?
Why? Do you want these nerds fooling with real software?

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.

--
Posted via a free Usenet account from http://www.teranews.com

Mar 31 '08 #10
On Mar 31, 10:01*am, CBFalconer <cbfalco...@yahoo.comwrote:
Mike wrote:

... snip ...
I'd like to ask you think of somebody who never learns well on
math and doesn't have good logic in his mind. *They usually like
to surf the web, play on-line game, listen mp3 and watch videos.
How to teach these students in a very interesting way?

Why? *Do you want these nerds fooling with real software?

--
*[mail]: Chuck F (cbfalconer at maineline dot net)
*[page]: <http://cbfalconer.home.att.net>
* * * * * * Try the download section.

--
Posted via a free Usenet account fromhttp://www.teranews.com
If this is a must. If he/she is one of your good friends' son/
daughter. Is there a real interesting way?

Mike
Apr 3 '08 #11
Richard Heathfield <rj*@see.sig.invalidwrites:
Really, seriously. C is not for those who would rather be doing
something else. If you want to get someone "into" programming,
start with Lego Mindstorms (a programmable build-your-own-robot
kit).
I had a Lego Mindstorms set at one time. I never even installed
the software it came with. Instead, I programmed it in Not Quite
C, which is exactly what it sounds like. Great fun though.
--
Ben Pfaff
http://benpfaff.org
Apr 3 '08 #12
On 3 apr, 06:55, Morris Dovey <mrdo...@iedu.comwrote:
Richard Heathfield wrote:
Morris Dovey said:
Richard Heathfield wrote:
>Mike said:
><snip>
If this is a must. *If he/she is one of your good friends' son/
daughter. *Is there a real interesting way [to learn C]?
>Don't start with C. Really, seriously. C is not for those who would
>rather be doing something else. If you want to get someone "into"
>programming, start with Lego Mindstorms (a programmable
>build-your-own-robot kit). If they aren't hooked by that, it's probably
>safest to assume that they aren't ever going to be programmers.
Hmm. Dunno about the 'not C' part. Do a Google search for legway.
It's a scaled down version of the self-balancing two-wheeled
Segway vehicle - built with Legos and uses a tiny (TurboC)
control program. The source code is freely available and there's
enough instant gratification to (perhaps) get 'em hooked.
The thing about RCX is that you can, quite literally, write programs with
your mouse, just by dragging Lego-shaped bricks around the place. No
syntax knowledge required (because the syntax is jigsaw-like - i.e. either
it fits or it doesn't, and you can tell just by looking). The only time
you have to type is when adjusting parameters (e.g. "spin this motor for
XX seconds", "rotate YY degrees", or whatever it is).
I am very happy to advocate C in appropriate circumstances, but this does
seem to be one of those times when the OP is treading a path that is
doomed to be unproductive.

I hear you - but I'm taking my best shot at the OP's rather
specific request (while not really disagreeing with you <g>).

Of course, the danger with the LegWay project is that they'll
probably want to follow up with full-size machines and entries
for Robot Wars.

Hmm - I wonder if it'd be possible to build a _one_ wheeled
(visualize unicycle) robot...

--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USAhttp://www.iedu.com/DeSoto/
Yep it is possible: Here is a link to a lego unicycle:

http://nl.youtube.com/watch?v=OnRV-ggJmQ4
Jun 27 '08 #13

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

Similar topics

13
by: Robert Smith | last post by:
I'm doing a website development course and during an exercise my teacher gave me to do at home I was confronted with errors. Surprisingly, those that did the exercise in class did not receive...
8
by: Bruno R. Dias | last post by:
Perhaps it would be interesting to program a virtual machine simulating an ancient computer (such as the pdp-7). Then, it would be rather interesting to code for it (porting gcc to it maybe?). I...
4
by: Allan | last post by:
Hello, I have taken over a webpage, and have no idea how to work with stylesheets, and won't be able to learn ;-(. Does anyone have any good examples, which I can just cut and paste over my...
5
by: crjunk | last post by:
I'm a newbie trying to learn PHP. I've worked with ASP, ASP.NET and WebSpeed in the past, but now I'd like to learn PHP. I've already gotten a Fedora web server up and running with Apache and...
16
by: makko | last post by:
Hello, anyone know how to writre a program that take a commandline formula and prints the calculated result? example; $program 1+(2x3(3/2))-8 reagrds; Makkko
6
by: Terry Olsen | last post by:
I have a program that seems to be locked up when it's chugging away. It takes about 2-3 hours for its process to complete and normally runs between 2am-5am when nobody is in the office so it's not...
3
by: utab | last post by:
Exercise 5.10 from Accelerated C++ by Andrew Koenig Palindromes are words that are spelled the same right to left as left to right. Write a program to find all the palindromes in a dictionary....
50
by: Tsb | last post by:
I have read about learning C programming language. Lots of them said the best way to learn C is reading codes. So where can I find codes and some examples?
7
by: Tom | last post by:
By my estimate, greater than 90% of the online doco code does not work without additional coding effort. Fully working solutions are invaluable for the student. A guru's work measured in minutes...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.