943,892 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 79152
  • C RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Feb 26th, 2007
0

Re: Starting " C "

Text Books

1. C by Dissection, AI Kelley, Ira Pohl, 4th Edition, Pearson Education, 2001, ISBN:0-201-71374-8

2. A Practical Introduction to Data Structures and Algorithm Analysis, Clifford A. Shaffer, 2nd Edition, Pearson Education, 2001, ISBN: 0-13-028446-7

3. Code Complete, Second Edition, Steve McConnell , 2004, Microsoft Press, ISBN: 0735619670
Reputation Points: 8
Solved Threads: 0
Junior Poster in Training
jamshid is offline Offline
70 posts
since Jan 2006
Mar 23rd, 2007
0

Re: Starting " C "

i thjink C is moreovewr like a SEA ,
the more u read the more u learn and there is no ending for it,,,

I like C series by Yashwant Kanetwar
Reputation Points: 10
Solved Threads: 1
Light Poster
satish.ambition is offline Offline
26 posts
since Mar 2007
Jul 10th, 2007
1

Re: Starting " C "

C wiki, with a lot of resources http://www.iso-9899.info/wiki
Reputation Points: 85
Solved Threads: 13
Junior Poster
TkTkorrovi is offline Offline
170 posts
since Mar 2005
Nov 20th, 2007
0

Re: Starting " C "

This isn't exactly starting material and maybe a bit outdated (created before Win2K). But overall covers most of the questions a newbie, who is new to programming in C and is fedup with creating Hello World console applications, may ask.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
xeto is offline Offline
17 posts
since Nov 2007
Dec 18th, 2007
0

Re: Starting " C "

  1. while(true)
  2. {
  3. printf("it's good idea,and all of those can help us to learn c program well!\n");
  4. }
Last edited by Beair.GQ; Dec 18th, 2007 at 11:54 pm.
Reputation Points: 40
Solved Threads: 2
Newbie Poster
Beair.GQ is offline Offline
9 posts
since Dec 2007
Feb 26th, 2008
0

Re: Starting " C "

for basic for c and c++ visit

www.cprogramc.blogspot.com
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rohoni is offline Offline
20 posts
since Nov 2006
Aug 27th, 2008
0

Re: Starting " C "

Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,871 posts
since Jun 2006
Sep 13th, 2008
0

Re: Starting " C "

Click to Expand / Collapse  Quote originally posted by ~s.o.s~ ...
Based on the request by Mr. Jamshid i thought why not just start the useful links and tutorials for novice C programmers so they dont have to do a lot of GOOGLE like the one present in Python Forums.

If the moderators like the concept here they can sticky this or delete this post if they dont like it.

If this thread manages to stay, anyone intrested can post any important links or resources they know of and can start a new thread if they have any doubts.

List of free compilers and IDE

1) Codeblocks IDE integrated with MINGW compiler can be downloaded at http://www.codeblocks.org/downloads.shtml

2) Bloodshed Dev C++ IDE with MINGW port of GCC as its compiler at http://www.bloodshed.net/devcpp.html

3) Visual Studio Express Edition


List of Tutorials

C programming tutorials 4th edition
http://www.iu.hio.no/~mark/CTutorial/CTutorial.html#Preface

C standard function reference
http://www.cppreference.com
http://www.utas.edu.au/infosys/info/....html#Contents

Excellent site for free compilers, libraries, tutorials etc.
http://www.thefreecountry.com/docume...ferences.shtml

C programming Notes
http://www.eskimo.com/~scs/cclass/notes/sx1.html

Programmign in C
http://www.scit.wlv.ac.uk/~jphb/cbook/html/

Excellent site a must see for all newbies
http://www.cprogramming.com/tutorial.html
http://www.howstuffworks.com/c.htm
http://www.physics.drexel.edu/course..._tutorial.html

Link to many programming tutorials
http://www.programmingtutorials.com/c.aspx
http://www.freeprogrammingresources.com/ctutor.html
http://www.tutorialized.com/tutorials/C-and-Cpp/1
http://www.techtutorials.info/cgen.html
http://www.intelligentedu.com/newly_...raining/C.html
http://www.cyberdiem.com/vin/tutorials.html


Pointer and other topic specific resources
http://pweb.netcom.com/~tjensen/ptr/cpoint.htm
http://www.augustcouncil.com/~tgibson/tutorial/
http://www.newty.de/fpt/index.html

Advice and warnings for C
http://www.brainbell.com/tutors/c/Ad...arnings_for_C/

Interfacing ODBC and C
http://www.physics.drexel.edu/course..._tutorial.html


Waiting for the feedback of all the members and would be really happy if you would carry on adding more links to this thread so that a newbie would not have to search a lot on the net regarding how to start on C.

Regards
~s.o.s~
hey ~s.o.s.~

just want to add this to your list of "Free" C IDE and compilers List:

Pelles C IDE - http://www.smorgasbordet.com/pellesc/

for windows/windows mobile development in C(C99 standard) with support for 32-bit (X86), 64-bit (X64) Windows, and Windows Mobile (ARM).

other than that GCC is just fine with Vi/Vim for C programming in GNU/Linux
Last edited by NetByte; Sep 13th, 2008 at 10:09 am.
Reputation Points: 44
Solved Threads: 1
Newbie Poster
NetByte is offline Offline
11 posts
since Feb 2006
Jul 24th, 2009
3

Re: Starting " C "

Can you please remove the HowStuffWorks link from the original post or better yet point out that it's horrible. It is full of information that ranges from misleading to outright incorrect, which could be harmful to someone learning C. An except from the section on Using Pointers with Arrays for example:
  1. #define MAX 10
  2. /* snip */
  3. int a[MAX];
  4. int b[MAX];
Quote ...
Arrays in C are unusual in that variables a and b are not, technically, arrays themselves. Instead they are permanent pointers to arrays. a and b permanently point to the first elements of their respective arrays -- they hold the addresses of a[0] and b[0] respectively. Since they are permanent pointers you cannot change their addresses. The statement a=b; therefore does not work.
This of course is blatantly incorrect. The author of the article seems to be confused by the fact that a and b are converted to a pointer to their first elements when applied to an operator other than sizeof and unary &. This does not make them pointers or "permanent pointers" (ref. ISO/IEC 9899:1999 6.3.2.1#3)

There are many other examples, including but not limited to:
  • Variable Types:
    Quote ...
    An int is a 4-byte integer value. A float is a 4-byte floating point value. A char is a 1-byte single character (like "a" or "3"). A string is declared as an array of characters.

    There are a number of derivative types:

    double (8-byte floating point value)
    short (2-byte integer)
    unsigned short or unsigned int (positive integers, no sign bit)
    Here, the author apparently thinks C is defined in terms of the sizes of types that happen to be on his implementation. To say "a string is declared as an array of characters" is to imply that any array of characters is a string, and of course the criteria for a string includes being null terminated. There are numerous other occurrences throughout the article of the author assuming certain implementation defined values and asserting they are always those values.
  • Mostly main will be correctly defined to return int, but sometimes the good old horrible "void main" pops up.
  • Uses gets() without explaining that it's harmful, let alone why. Uses fgets() later, but doesn't mention using it instead of gets().
  • casts the return value of malloc. This is a controversial issue.
  • Uses the term "pointer to array" when referring to an a pointer to the first element of the array. This example demonstrates the difference:
    1. int a[42];
    2. int *p = a; /* p is a pointer to a[0] */
    3. int (*q)[42] = &a; /* q is a pointer to the [entire] array */
  • For scanf, it says you "MUST put & in front of the variable used in scanf" but of course this would be wrong for %s, and it doesn't cover this or why.

If I'm accused of nitpicking, I certainly didn't have much trouble finding errors. Every page I looked at seems to have something dubious on it. You might also argue that the above issues are technicalities and beyond the scope of a beginner's C tutorial. This well may be the case, but then perhaps there should be some footnotes explaining this. It doesn't excuse it, and I'm sure I could produce another 10-20 examples if I had the time.
Reputation Points: 114
Solved Threads: 1
Newbie Poster
shric is offline Offline
5 posts
since Sep 2005
Jul 24th, 2009
0

Re: Starting " C "

Agrees. The first half isn't too shabby.
But it looks for all the world like the 2nd half was written by someone else without a clue.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC