Go Back   Gaming Gutter > Non-Gaming > Programming


Programming - All general programming discussion in here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» GG Stuff

Follow us on Twitter!

Get the GG toolbar today (for firefox only)
» Recent Threads
Go to first new post Post Your Picture (Read...
10-09-2006 11:34 PM
by Ryan
Last post by Hale'iwa
Today 07:48 AM
14,295 Replies, 247,646 Views
Go to first new post Juanstin's interview.
03-16-2010 02:56 PM
Last post by S T O N E D
Today 07:28 AM
1 Replies, 53 Views
Go to first new post ...
Yesterday 03:53 PM
by tealeaf
Last post by frapp
Today 07:08 AM
5 Replies, 43 Views
Go to first new post So I might trade gaia...
02-17-2010 03:23 PM
Last post by Euphrates
Today 05:19 AM
6 Replies, 98 Views
Go to first new post Who wants to help virus...
Today 02:51 AM
Last post by MeinKampfyChair
Today 05:02 AM
1 Replies, 17 Views
Reply
 
LinkBack Thread Tools Display Modes

 Need help creating this for my HW
Old 05-12-2009, 09:32 PM   #1 (permalink)
Full Member

Undisclosed iuselawgik is offline
 
Join Date: May 2009
Posts: 46
GPoints: 831
iTrader: 2 / 100%
iuselawgik Is a New Face in Town
Rep Power: 3
Need help creating this for my HW

Hey guys its my last program I have to make for the year and it is due next tuesday, but I have no clue how to program this.

The language is in just plain C.

Heres the full problem:

(a) Typedef a structure that can be used to represent a node in a linked list. The structure data_node has the following components:
1. Last_name (25 characters)
2.hourly_wage
3. a pointer to struct data_node
(b) Write a print_function which prints out the last_name and hourly_wage of each node in the linked list it is passed.

(c) Write an add_function which adds a new node to the end of the list. It is passed the last_name and hourly_wage for the new node.

(d) Write a delete_function which deletes the node which has the last_name equal to the string input passed to the function with the linked list. If it can't find the last_name it prints out "Not Present"

(e) Write find_function which finds the first node which was the hourly_wage value passed in the function to find_function. If it can't find the hourly_wage value then it prints out "Cannot Find". If it finds the hourly_wage it prints out the last_name and the hourly wage. (You must pass the list also.)



I know its a pretty big problem but my teacher said the code will be really short, so if i could get any help at all it would be great. Feel free to use different variable names but just let me know

I can also pay 250,000 nps to someone if they help me with a majority of it.
  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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


Powered by vBadvanced CMPS v3.1.0

All times are GMT -7. The time now is 08:23 AM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.10799789 seconds (100.00% PHP - 0% MySQL) with 21 queries