The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Learning to program eBooks and CBTs JayC89 UNIX for Dummies Questions & Answers 1 10-03-2007 03:16 PM
Learning Sed and Awk 0ktalmagik Shell Programming and Scripting 1 04-10-2006 11:41 AM
Hands On Learning - AIX ewelsh AIX 4 04-29-2005 12:27 PM
learning on my own jonas27 UNIX for Dummies Questions & Answers 2 12-03-2001 08:29 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-11-2001
jantho jantho is offline
Registered User
  
 

Join Date: Oct 2001
Location: Trondheim, Norway
Posts: 1
Question Learning to program in c

Hi,

I'v been fiddling with c programming for several years, and would say that i have a firm grip on the language(syntax etc). My problem is that i don't know how to USE c. I'v never made any "big" programs or worked on any kind of projects, just simple test programs. I'm wondering if anybody could suggest some simple program of some sort that would give me some challange, but that isn't to hard complete. I'v tried several times, but I usually give up after a while, because it get's to complicated.

What i'm asking is if somebody could suggest a simple first project. What was the first program you guys made?

thanks =)

-John
  #2 (permalink)  
Old 10-11-2001
rwb1959's Avatar
rwb1959 rwb1959 is offline
Registered User
  
 

Join Date: Aug 2001
Location: Virginia, USA
Posts: 438
You might try writing a simple shell (command line interpreter).
Start with the basics...
read line input
execute the request

...then add more functionality
parse "special" characters in the line input
(i.e. I/O redirection)

add built-ins
etc, etc...
  #3 (permalink)  
Old 10-11-2001
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,823
The first C program I wrote was a UNIX networking client-server application using sockets. Personally, I think that network programming teaches the true Zen of UNIX and highly recommend it. My first UNIX spiritual guide book: UNIX Network Programming, by Richard Stevens.
  #4 (permalink)  
Old 10-12-2001
mbb mbb is offline
Registered User
  
 

Join Date: Aug 2001
Location: UK
Posts: 104
I know just what you mean!

Here are some ideas for you

1. Video shop database/booking system.

** A database can be just a bunch of flat text files.

2. Sorting routines.

** Try to write a sort routine that can handle any size of file.
Use temporary files to store intermediate results.

3. Experiment with simple screen displays.

e.g. write a menu program that use (by file or command line) a list of options and will return the selected option.

4. A mail merge program.

5. Try to emulate some Unix commands e.g. grep, ls, find

6. If you can manipulate graphics try writing a program that generates a tiled map of terrain.

** Try to make the map a realistic a possible. Keep it in as small amount of memory as possible. Allow the user to scroll about the map using cursor keys.

These are just a few ideas of the top of my head. I promise you that at when I was learning how to program I have written these programs for myself.

It is good that you are willing to take on programming. Remember the only way to get good is to pratice.

Regards

MBB
  #5 (permalink)  
Old 10-12-2001
solvman's Avatar
solvman solvman is offline
Registered User
  
 

Join Date: Sep 2001
Posts: 67
I've encountered slightly the same problem recently. They've suggested to visit www.sourceforge.net. Go there join projects you like. There are lots of real prog gurus who really help. You do everything for free but you get nice real life experience insead.

You might wanna create a project yourself at www.freshmeat.net ask people to join your project and help you. Checkout all the Open Source Developers Network www.osdn.com. It's pretty helpful stuff for developing your practical skills.

Good luck
Regards
Closed Thread

Bookmarks

Tags
unix commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:58 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0