August 22, 2017, 08:23:42 PM

Author Topic: C projects  (Read 12439 times)

0 Members and 1 Guest are viewing this topic.

syklops

  • Guest
C projects
« on: March 24, 2006, 12:29:49 PM »
Im learning C again, and as usual when i dont do something for a long time, i forget it ALL. So back to Hello World it was.

I am looking for some projects to code to get myself back into it, and need a couple of small projects to get the blood pumping. Does anyone have any ideas. And no smart alec replies like a linux Kernel, please.

Offline Metgod

  • the deranged hacker
  • Administrator
  • Forum Hero
  • *****
  • Posts: 1114
  • Country:
  • Gender: Male
Re:C projects
« Reply #1 on: March 24, 2006, 01:33:12 PM »
Try the BSD kernel then. :)

Seriously though...

One thing that might be good is to do little exercises from a book/document (online or otherwise).

So, follow the material, and then at the end of each section, try the exercises. Don't have to succeed in everyone (although that's a plus) because it's the getting back into the thinking that is important. You'll gradually get better with it all anyway.

Otherwise I'm not sure what to offer. I can say that I think it's normal that you tend to forget things you don't do. I mean, it's not just the language, it's the skill in logic, thinking, etc.

Oh, I believe there are challenges around too. http://www.osix.net for example.

Those might be nice. If you need resources, I can help there too.

Hope this helps some. Let me know if you have any more questions though (or comments).
"My Terminal is my Soul"

Offline benthehutt

  • Global Moderator
  • Seasoned Poster
  • *****
  • Posts: 368
  • Country:
  • "Drugs? You'd better not be!" - my mom
    • Echelon9
Re:C projects
« Reply #2 on: March 24, 2006, 04:08:47 PM »
I recommend socket programming :)

Seriously, write a small chatroom--it helped me get to know C real well.  (Though I admit--I'm still not totally finished with that project, if one side exits, the other side crashes)
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.

Offline Metgod

  • the deranged hacker
  • Administrator
  • Forum Hero
  • *****
  • Posts: 1114
  • Country:
  • Gender: Male
Re:C projects
« Reply #3 on: March 25, 2006, 02:53:08 PM »
Not only will it be useful for coding but also good for networking skill ...

I assume your program gets a SIGPIPE ?

"My Terminal is my Soul"

Offline Cobra

  • cool?
  • Administrator
  • Seasoned Poster
  • *****
  • Posts: 447
  • Country:
  • Gender: Male
  • My mom says im cool!
Re:C projects
« Reply #4 on: March 27, 2006, 07:45:43 AM »
Me and C don't get on anymore these days .. haha
I am not suffering with insanity... I am loving every minute of it.

syklops

  • Guest
Re:C projects
« Reply #5 on: March 27, 2006, 08:09:06 AM »
Ive done a bit of socket programming. I wrote a small packet sniffer  for linux. It was basic, it just opened a socket, and printed the types of packets it saw.

Im going to play about with the source codes for namp or netcat, and see if I can change it anyway.

A chatroom is an idea. I want to end up doing network programming anyway so it might be a good practice. Ill let you know how I get on.
« Last Edit: March 27, 2006, 08:09:27 AM by syklops »

wizwom

  • Guest
Re:C projects
« Reply #6 on: January 15, 2007, 09:30:38 PM »
I like programming a prime number finder.  Simple, contains a number of useful things, can be extended to complex.

Other interesting things to do:
Tic-Tac-Toe w/a computer opponent, if you want to learn a GUI

Address book, if you want to learn a DataBase

Email client, if you want to learn basic TCP/IP sessions

Life - a cellular Automaton


Offline benthehutt

  • Global Moderator
  • Seasoned Poster
  • *****
  • Posts: 368
  • Country:
  • "Drugs? You'd better not be!" - my mom
    • Echelon9
Re:C projects
« Reply #7 on: January 16, 2007, 10:32:40 AM »
Prime number finders are great, and in C, you can get them to be pretty stinking fast.  For the tic-tac-toe game, I actually made one, but you couldn't actually win, it kinda sucked.  I think the hardest part about making a computer opponent is making it the right level of difficulty.  For instance, NOT IMPOSSIBLE, hehe.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.

Offline wilnix

  • mv user /dev/null
  • Administrator
  • Forum Hero
  • *****
  • Posts: 690
  • Country:
  • Gender: Male
  • You're not the fastest packet in the subnet...
    • Wilnix - The NetAdmin's Resource
Re: C projects
« Reply #8 on: January 07, 2010, 02:17:17 PM »
I just created a fully functioning webserver (text, html, gif, jpg, and png supported) with perl cgi support in C as a school project. It is far from perfect, but everything is functional. If there is an interest for it, I will post the files somehow. C is a frustrating language to use after writing in C++ for awhile.

wilnix
alt email address: wilnix@hackphreak.org