You are not logged in.

#1 2010-01-04 15:16:41

mthode
Member
From: Atlanta, GA USA
Registered: 2008-09-07
Posts: 55
Website

C help/advice

I am learning C and have experience programming in a few languages.  I would like any advice on what I should do to cut my teeth.  I plan on doing kernel stuff in the end but need something to ramp up.  Thanks for the help.


GIT d- s-:- a--- C++++ UL++++ P--- L+++ E--- W+++ N++ o K++ w-- O M V-- PS++ PE-- Y++ PGP++ t+ 5+ X R !tv b+ DI++ D++ G
http://www.geekcode.com/geek.html

Offline

#2 2010-01-04 15:29:08

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: C help/advice

Programming your own shell is an interesting project.  Or writing your own string tokenizer without using something like strtok.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#3 2010-01-04 19:30:28

Grazz256
Member
Registered: 2009-06-28
Posts: 69

Re: C help/advice

The best way to start out is to build a little utility that you want. For me I made a little serial comms app for talking to microcontrollers.

So basically think of something you need/want and make it using c

Cheers

Offline

#4 2010-01-04 19:30:36

mthode
Member
From: Atlanta, GA USA
Registered: 2008-09-07
Posts: 55
Website

Re: C help/advice

ya, I was thinking of making something to replace sed/grep or something.
hmm, maybe something to convert from one audio format to another after that.

Last edited by mthode (2010-01-04 19:33:26)


GIT d- s-:- a--- C++++ UL++++ P--- L+++ E--- W+++ N++ o K++ w-- O M V-- PS++ PE-- Y++ PGP++ t+ 5+ X R !tv b+ DI++ D++ G
http://www.geekcode.com/geek.html

Offline

#5 2010-01-04 21:31:09

Grazz256
Member
Registered: 2009-06-28
Posts: 69

Re: C help/advice

You could make something so that I can manage pictures/videos/contacts on my ipod touch, should be easy wink

Offline

#6 2010-01-05 10:03:14

crankyadmin
Member
Registered: 2009-09-27
Posts: 117
Website

Re: C help/advice

Write a Pseudo Random Number Generator


:: Github :: My AUR :: Coreboot ::

Offline

#7 2010-01-05 10:21:48

wuischke
Member
From: Suisse Romande
Registered: 2007-01-06
Posts: 630

Re: C help/advice

Write a web server, write a ftp client or work with irc. Make sure it works on Linux, OpenBSD, Solaris and Windows using different compilers on different architectures.

In my humble opinion, writing code communicating with other people's code is one of the most important things. I think writing cross-plattform code is a sometimes frustrating, but important lesson to learn - once you know the pitfalls your code will be forever better.

Offline

#8 2010-01-05 10:37:02

Zeist
Arch Linux f@h Team Member
Registered: 2008-07-04
Posts: 532

Re: C help/advice

Project Euler is a bit interesting if you're out of ideas.


I haven't lost my mind; I have a tape back-up somewhere.
Twitter

Offline

#9 2010-01-05 13:23:13

mthode
Member
From: Atlanta, GA USA
Registered: 2008-09-07
Posts: 55
Website

Re: C help/advice

I do like Project Euler but alas, I am not a math head. The pseudo random number generator is nice and maybe a ftp client (that connects to two server and dumps from one to the other, I actually need this for work so this is likely).


GIT d- s-:- a--- C++++ UL++++ P--- L+++ E--- W+++ N++ o K++ w-- O M V-- PS++ PE-- Y++ PGP++ t+ 5+ X R !tv b+ DI++ D++ G
http://www.geekcode.com/geek.html

Offline

#10 2010-01-05 16:11:24

crankyadmin
Member
Registered: 2009-09-27
Posts: 117
Website

Re: C help/advice

mthode wrote:

that connects to two server and dumps from one to the other

Look at FXP


:: Github :: My AUR :: Coreboot ::

Offline

#11 2010-01-05 16:24:32

samuele.mattiuzzo
Member
From: Treviso, IT
Registered: 2009-10-12
Posts: 307
Website

Re: C help/advice

if you want i can give you my university tests from beginning to the end, so you'll learn C in a while and then...

http://projecteuler.net

try with first problem then go on... you cannot solve everything using C tho, but some problems (all of them...) are very tricky and funny if solved using C smile

Offline

#12 2010-01-05 16:35:41

mthode
Member
From: Atlanta, GA USA
Registered: 2008-09-07
Posts: 55
Website

Re: C help/advice

Solving things in a language it wasn't meant to be solved in makes it fun though, and it teaches you.  I might like those tests, gonna send you a message with contact info.


GIT d- s-:- a--- C++++ UL++++ P--- L+++ E--- W+++ N++ o K++ w-- O M V-- PS++ PE-- Y++ PGP++ t+ 5+ X R !tv b+ DI++ D++ G
http://www.geekcode.com/geek.html

Offline

#13 2010-01-06 04:12:41

Trent
Member
From: Baltimore, MD (US)
Registered: 2009-04-16
Posts: 990

Re: C help/advice

Read comp.lang.c.  It's spam-heavy, but I find the real threads quite interesting, and I still keep up with it even though I don't post there anymore.

Offline

#14 2010-01-09 11:42:06

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: C help/advice

rson451 wrote:

Or writing your own string tokenizer without using something like strtok.

Expanding on this, an RPN calculator. It's a nice exercise in string parsing and stack usage.

Offline

Board footer

Powered by FluxBB