Click here to Skip to main content
15,894,017 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionworker thread problem.......... Pin
shaina22315-Dec-08 18:26
shaina22315-Dec-08 18:26 
AnswerRe: worker thread problem.......... Pin
Randor 5-Dec-08 20:24
professional Randor 5-Dec-08 20:24 
AnswerRe: worker thread problem.......... Pin
David Crow6-Dec-08 12:38
David Crow6-Dec-08 12:38 
Questiondeleting a file from the application Pin
prithaa5-Dec-08 18:26
prithaa5-Dec-08 18:26 
AnswerRe: deleting a file from the application Pin
kcynic5-Dec-08 19:06
kcynic5-Dec-08 19:06 
AnswerRe: deleting a file from the application Pin
Hamid_RT5-Dec-08 19:34
Hamid_RT5-Dec-08 19:34 
AnswerRe: deleting a file from the application Pin
Jijo.Raj5-Dec-08 23:49
Jijo.Raj5-Dec-08 23:49 
QuestionHelp with a Linked List Program Pin
LilKoopa5-Dec-08 14:21
LilKoopa5-Dec-08 14:21 
I need help with a linked list program, im probably just not doing something write but if any info is available i would greatly appreicate it, here is my code. its suppossed to append a node, insert a node, and delete a node. The output should look like this. Thanks for all help i can get

Here are the initial values:
5 feet, 4 inches
6 feet, 8 inches
8 feet, 9 inches

Now inserting the value 7 feel 2 inches.
Here are the nodes now.
5 feet, 4 inches
6 feet, 8 inches
7 feet, 2 inches
8 feet, 9 inches

Now deleting the last node.
Here are the nodes left.
5 feet, 4 inches
6 feet, 8 inches
7 feet, 2inches







// This program demonstrates the linked list template.
#include "stdafx.h"
#include <iostream>
#include "LinkedList.h"
#include "FeetInches.h"
using namespace std;

int main()
{
// Define a LinkedList object.
LinkedList<feetinches> list;

// Define some FeetInches objects.
FeetInches distance1(5, 4); // 5 feet 4 inches
FeetInches distance2(6, 8); // 6 feet 8 inches
FeetInches distance3(8, 9); // 8 feet 9 inches



// Store the FeetInches objects in the list.
list.appendNode(distance1); // 5 feet 4 inches
list.appendNode(distance2); // 6 feet 8 inches
list.appendNode(distance3); // 8 feet 9 inches



// Display the values in the list.
cout << "Here are the initial values:\n";
list.displayList();
cout << endl;

// Insert another FeetInches object.
cout << "Now inserting the value 7 feet 2 inches.\n";
list.insertNode(distance4); // 7 feet 2 inches
FeetInches distance4(7, 2);


// Display the values in the list.
cout << "Here are the nodes now.\n";
list.displayList();
cout << endl;

// Delete the last node.
cout << "Now deleting the last node.\n";
list.deleteNode(distance4);

// Display the values in the list.
cout << "Here are the nodes left.\n";
list.displayList();
return 0;
}


AnswerRe: Help with a Linked List Program Pin
Robert.C.Cartaino6-Dec-08 5:21
Robert.C.Cartaino6-Dec-08 5:21 
GeneralRe: Help with a Linked List Program Pin
LilKoopa6-Dec-08 11:15
LilKoopa6-Dec-08 11:15 
GeneralRe: Help with a Linked List Program Pin
Randor 6-Dec-08 12:08
professional Randor 6-Dec-08 12:08 
QuestionRe: Help with a Linked List Program Pin
David Crow6-Dec-08 12:20
David Crow6-Dec-08 12:20 
AnswerRe: Help with a Linked List Program Pin
LilKoopa8-Dec-08 11:13
LilKoopa8-Dec-08 11:13 
QuestionRe: Help with a Linked List Program Pin
David Crow9-Dec-08 2:46
David Crow9-Dec-08 2:46 
AnswerRe: Help with a Linked List Program Pin
LilKoopa9-Dec-08 7:58
LilKoopa9-Dec-08 7:58 
GeneralRe: Help with a Linked List Program Pin
David Crow9-Dec-08 9:23
David Crow9-Dec-08 9:23 
GeneralRe: Help with a Linked List Program Pin
LilKoopa12-Dec-08 11:52
LilKoopa12-Dec-08 11:52 
QuestionRe: Help with a Linked List Program Pin
David Crow12-Dec-08 17:09
David Crow12-Dec-08 17:09 
Question[Message Deleted] Pin
jonig195-Dec-08 12:29
jonig195-Dec-08 12:29 
AnswerRe: devc++ Pin
enhzflep5-Dec-08 13:02
enhzflep5-Dec-08 13:02 
QuestionIs there any way to determine if TranslateMessage() has produced a WM_CHAR or not? Pin
Joseph Marzbani5-Dec-08 11:48
Joseph Marzbani5-Dec-08 11:48 
AnswerRe: Is there any way to determine if TranslateMessage() has produced a WM_CHAR or not? Pin
Code-o-mat6-Dec-08 2:02
Code-o-mat6-Dec-08 2:02 
GeneralRe: Is there any way to determine if TranslateMessage() has produced a WM_CHAR or not? Pin
Joseph Marzbani6-Dec-08 4:13
Joseph Marzbani6-Dec-08 4:13 
Questionwhats COM PORT Pin
tasumisra5-Dec-08 6:26
tasumisra5-Dec-08 6:26 
AnswerRe: whats COM PORT Pin
CPallini5-Dec-08 7:08
mveCPallini5-Dec-08 7:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.