Go Back   VienTay Asian Movies Foreign Movies Vietnamese movies ATV Series Korean Series China Series HongKong Series Taiwanese Series Vietnamese Series Vietnamese Music > General Activities > General Activities > Friends

Friends Bàn tay ta nắm nối liền một vòng Việt Nam

c++ help

» Donate

$5

$10

$15
Reply Post New Thread
 
LinkBack Thread Tools Đánh giá chủ đề Display Modes
Old 02-12-2009   #1 (permalink)
About Addicted
 
Join Date: May 2006
Sign: Gemini
Posts: 93
Thanks: 1
Thanked 0 Times in 0 Posts
dwai05 is an unknown quantity at this point
Default c++ help


Can anyone me write a c++ program, if so reply back. s

dwai05 vẫn chưa có mặt trong diá»…n đàn   Reply With Quote
Old 02-13-2009   #2 (permalink)
Junior Member
 
Join Date: May 2008
Location: Insurance Mansion
Sign: Aquarius
Posts: 27
Thanks: 2
Thanked 2 Times in 2 Posts
tinhnho is an unknown quantity at this point
Default Re: c++ help


uhm...post it hêre i will u.

tinhnho vẫn chưa có mặt trong diá»…n đàn   Reply With Quote
Old 02-14-2009   #3 (permalink)
About Addicted
 
Join Date: May 2006
Sign: Gemini
Posts: 93
Thanks: 1
Thanked 0 Times in 0 Posts
dwai05 is an unknown quantity at this point
Default Re: c++ help


INTRODUCTION This project consists of two parts, the second of which appears below. The first part is to write a class that implements an unordered list abstract data type using a doubly-linked list with pointers to both its first and last nodes. The second part of the project specifies how a program will use the class.
DESCRIPTION Write a class that implements an unordered list ADT. This class should provide the following operations:
  • A default constructor that initializes a newly declared list to be empty.
  • A destructor that deletes all the nodes in a list.
  • append(entry), which appends the item entry at the end of the list.
  • remove_last(), which removes the last item from the list.
  • An output function that prints the list in forward order to an output stream; you may assume that "<<" can be used with items of the list.
Implement the ordered-list ADT using a doubly-linked list with pointers to both its first and last nodes, as in this figure:

In the class that implements the list as a doubly linked list, include two data members: a pointer to the first node in the list, and a pointer to the last node in the list. Note that the pointer to the list's last node makes both append() and remove_last() fast. Thus the class's data members will be something like this:
struct Node
{
Item data;
Node *next;
Node *back;
};
Node *first;
Node *last;
You may want to write a program with which you can test this class. Here's something to do with the unordered-list implementation that you have (presumably) just completed: DESCRIPTION Consider this simple line-editing problem: A program reads characters one at a time, then prints them back to the terminal in order. However, the character `#' is not to be saved. Rather, it indicates that the program is to delete the most recent character. After reading reaches the end of the line, the surviving characters are printed in forward order. For example:
input: abcd##ef => output: abef
Write a program that uses the unordered-list implementation to solve the editing problem just described. A doubly-linked list, provided by the class, will hold the characters of the input line in the order in which they are entered.
INPUT The program reads a line of characters, some of which may be the delete character `#'.
OUTPUT The program prints the surviving (non-deleted) characters from the input, in the order in which they appeared.
ERRORS The program may assume that the input is as described; it need not detect any errors.
EXAMPLE A run of the program might look like this: Enter a line of characters; # => delete the last character.
-> aabbcc#ddee##fg#h
aabbcddfh
and another might look like this: Enter a line of characters; # => delete the last character.
-> djfg#######abc#def
abdef
HINTS In the client program, the Item type in the unordered list class is char. For the client program, recall that the function get() reads the next character from the named input stream into the function's parameter, which is passed by reference. Example: cin.get(ch);


Last edited by dwai05; 02-17-2009 at 02:47 PM..
dwai05 vẫn chưa có mặt trong diá»…n đàn   Reply With Quote
Old 03-08-2009   #4 (permalink)
About Addicted
 
Join Date: Feb 2009
Location: Straw Hut at Rice Paddy #1
Posts: 70
Thanks: 0
Thanked 12 Times in 12 Posts
phuc_mi is on a distinguished roadphuc_mi is on a distinguished road
Default Re: c++ help


Ah so.

Phuc Mi here. Phuc vary good C++. Phuc #1 in class Computer Science. Phuc know vell C++. Phuc hove PhD lriting prolam.

Phuc look yuo prolem. Prolem no good. Teecher no good. Teecher no how teech. Prolem stoopid. Stoopid teecher too. Prolem all rong. Tell teecher dat - "Prolem All Rong"! Tell teacher fix prolem and Phuc vill help !!!!

OK?

Phuc Mi

phuc_mi vẫn chưa có mặt trong diá»…n đàn   Reply With Quote
Old 07-31-2009   #5 (permalink)
About Addicted
 
Join Date: Jul 2009
Location: Insurance Mansion
Posts: 62
Thanks: 0
Thanked 4 Times in 4 Posts
phanhoikhip is an unknown quantity at this point
Default Re: c++ help


Get familiar with pre-defined functions so you don't have to write it yourself rather utilizing what you already have.

phanhoikhip vẫn chưa có mặt trong diá»…n đàn   Reply With Quote
Reply Post New Thread

Bookmarks

Tags
append

Thread Tools
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -7. The time now is 08:50 PM.



Content Relevant URLs by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58