![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX Desktop for Dummies Questions & Answers Discuss UNIX and Linux user interfaces like GNOME, KDE, CDE, and Open Office here. All UNIX and Linux Newbies Welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with writing a program | CompNoob | UNIX for Dummies Questions & Answers | 1 | 09-07-2008 04:00 AM |
| Need help on a program I'm writing | dmosheye | Shell Programming and Scripting | 2 | 09-21-2006 03:39 PM |
| writing a program | carlvernon | UNIX for Dummies Questions & Answers | 3 | 06-01-2006 03:47 PM |
| I'm writing a new Linux program! | Danny_10 | What's on Your Mind? | 11 | 10-03-2004 10:09 PM |
| long doubles | crashnburn | High Level Programming | 1 | 12-19-2002 11:12 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
need help writing a program to look for doubles
to determine if two two doubles are equal, we check to see if
their absolute difference is very close to zero. . .if two numbers are less than .00001 apart, theyre equal. keep a count field in each record (as you did in p5). once the list is complete, ask the user to see if an element is on the list--read her/his input from the keyboard. here is what i got code #include "ll.h" #include <stdio.h> int main() { int info; lnode * head ; head = getlist(); if (find(10, head)) fprintf("%d is on the list\n",10); else fprintf("%d is not on the list\n",10); if (find(178, head)) fprintf("%d is on the list\n",178); printlist(head); return 0; } also have a ll.h a makefile and a input file. but im just not understanding the program and how to start it. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|