LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-11-2013, 02:15 AM   #1
SimonPalmieri
Member
 
Registered: Dec 2013
Location: Ontario, Canada
Distribution: CentOS/Fedora/Arch
Posts: 35

Rep: Reputation: 1
Need some direction on where to begin C programming


Hello everybody, this may be a pretty vague questions but here goes. I'd like to learn C to write Linux programs (with user interfaces) but I'm not quite sure where to start. My goal would be to create my own programs that aren't strictly command line tools (I have experience in languages such as Perl and bash). I've practiced a bit with C but a lot of stuff I seem to find is how to make simple programs that one would run from the command line. I'd like to learn how to take that and go to the next level if you know what I mean. If anyone could offer some advice (books, etc.) on where to start it would be greatly appreciated.

Thanks,

Simon
 
Old 12-11-2013, 04:47 AM   #2
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
First you need to learn the basic syntax for the C language.

The Kernighan&Ritchie 2nd edition book is still one of the best to learn from. Although googling for "C language introduction" or "C language tutorial" will also give a lot of options. The cprogramming site has a lot of good tutorials.

Next is to learn what basic functions are supported through the standard C library


After that you might want to look into some of the more advanced libraries and how to use them.

If you want to go for graphical programming you might want to look into the qt/gtk frameworks.

Cheers
 
Old 12-11-2013, 11:55 AM   #3
Spect73
Member
 
Registered: Aug 2013
Distribution: Slackware 14.1
Posts: 128

Rep: Reputation: Disabled
I'll second what gdejonge said.

I'm just starting to try out gtk myself. Some useful links for learning that:

http://www.gtk.org
http://zetcode.com/tutorials/gtktutorial

Good luck on your journey.
 
Old 12-11-2013, 12:24 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by gdejonge View Post
If you want to go for graphical programming you might want to look into the qt/gtk frameworks.
Qt is C++.
 
Old 12-11-2013, 04:23 PM   #5
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Rep: Reputation: 156Reputation: 156
I had a specific networking problem and this was helpful http://beej.us/guide/bgnet/output/ht...age/bgnet.html

The good thing about this is that he gives you some examples of firing messages between computers with sample programs. Not much use from a graphical perspective though
 
Old 12-11-2013, 04:52 PM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
https://developer.gnome.org/gtk3/3.0...g-started.html

C is a lot like a lot of other languages. Stare at the code long enough and you'll get it eventually. The kernel has a lot of non-gui C code to stare at. The above guide for gtk3 which might be mildly more useful for learning over Qt and friends.
 
Old 12-12-2013, 06:33 AM   #7
Rusakov
LQ Newbie
 
Registered: Aug 2013
Distribution: Antergos
Posts: 17

Rep: Reputation: Disabled
Try this book.

http://www.apress.com/9781430248811
 
Old 12-13-2013, 01:40 AM   #8
kooru
Senior Member
 
Registered: Sep 2012
Posts: 1,385

Rep: Reputation: 275Reputation: 275Reputation: 275
Quote:
Originally Posted by gdejonge View Post
The Kernighan&Ritchie 2nd edition book is still one of the best to learn from.
It is sure one of the best.
But for someone could be too hard to read.
 
Old 12-13-2013, 07:23 PM   #9
ismailrais
LQ Newbie
 
Registered: Dec 2013
Posts: 1

Rep: Reputation: 0
I learn every thing from w3schools.com you can visit there and learn how to start c+ program. using of it you can get latest version of your subject without cash. thousand of the student study here and got benefits.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help to begin kernel programming techieanupam Linux - Kernel 3 12-16-2010 02:55 AM
How To Begin Linux Programming dheerajsuthar2008 Linux - Newbie 8 05-04-2008 09:01 AM
What's a good Programming language to begin with? PLZ HELP! Jonescity Programming 24 07-30-2005 07:43 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration