php hit counter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS301 Data Structures assignment no 1 spring 25 October 2011
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#16
Code:
#ifndef LINKEDLIST_H #define LINKEDLIST_H #include using name space std; template span>class T> class LList { Private: class ListNode { friend class LList; T value; ListNode *nest; ListNode(T value1, ListNode *next1=NULL) { value=value1; next=next; } }; ListNode *head; public: LList() { head=NULL; ) ~LList(); void appendNode(T); void insertNode(T); void deleteNode(); voide displayList(); void MoveNext(); void ShowCurrent(); }; template voidLList::appendNode(T val) { if(head=NULL) head=new ListNode(val); else { ListNode *nodePtr; while (nodePtr->next !=NULL) nodePtr->next=new ListNode(val); } } template voidLList::displayList() { ListNode *nodePtr; nodePtr =head; while (nodePtr) { cout nodePtr->value endl; nodePtr =nodePtr->next; } } template voidLList::ShowCurrent() { ListNode *nodePtr; nodePtr=head; countnodePtr->value endl; } template voidLList::MoveNext() { ListNode *nodePtr; nodePtr=head; while (nodePtr) { nodePtr = nodePtr->next; } } template voidLList::insertNode(T val) { ListNode *nodePtr, *previousNodePtr; if(head==NULL || head->value>=val) { head=new ListNode(val, head); } else { previousNodePtr=head; nodePtr = head->next; while (nodePtr !=Null&&nodePtr->value { previousNodePtr=NodePtr; nodePtr = nodePtr->next; previousNodePtr->nest=new ListNode(val, nodePtr); template voidLList::deleteNode() { ListNode *nodePtr, *previousNodePtr; if(!head) return nodePtr=head; head=head->next; deletenodePtr; } template LList::~LList () { ListNode *nodePtr, *nextNodePtr; nodePtr=head; while (nodePtr !=NULL) { nextNodePte=nodePtr->nest; delete nodePtr; nodePtr=nextNodePtr; } } #endif Source of Mail Program #include #include #include #include "LList.h" int main() { int TotalPersons=0,NumberofPasses, LoopCounter=0,a=0,b=0; string NameToAppend count"how many people will play parates of Carribeans : course of black pearl game? "; cin>>TotalPersons; count"how many passes will be displayed? "; cin>>NumberofPasses; LListlist; while(LoopCounter <=TotalPersons) { count"enter players name: "; cin>>NameToAppend list.appendNode(nameToAppend); LoopCounter +=1; } while(a<=TotalPersons-1) { for(int c=0;c<=NumberodPasses;c++) { list.MoveNext(); } count"removing :"; list.deleteNode(); list.ShowCurrent(); a+=1; } count"\nthe survivor is"; list.displayList(); getch();

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Messages In This Thread
CS301 Data Structures assignment no 1 spring 25 October 2011 - by Vuhelper - 11-03-2011, 04:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  CS301 Assignment # 4 Due Date: 02-Feb-2016 Vuhelper 0 2,376 02-03-2016, 05:38 PM
Last Post: Vuhelper
  CS703 – Advanced Operating Systems Assignment No.3 solution January 2016 Vuhelper 0 5,966 01-23-2016, 09:58 PM
Last Post: Vuhelper
  CS601 Data Communication Assignment No. 03 Solution 23rd January 2016 Vuhelper 1 2,000 01-23-2016, 06:09 PM
Last Post: Vuhelper
  CS403 Assignment No. 03 Solution 23rd January 2016 Vuhelper 2 1,241 01-23-2016, 03:18 PM
Last Post: Vuhelper
  CS506 Web Design and Development Assignment no 3 Solution 3rd January 2016 Vuhelper 0 2,303 01-23-2016, 03:16 PM
Last Post: Vuhelper
  CS724 Software Process Improvement Assignment No 01 Solution 20th January 2016 Vuhelper 0 2,032 01-20-2016, 06:26 PM
Last Post: Vuhelper
  CS711 Software Design Assignment No 01 Solution Due Date Feb 12, 2016 Vuhelper 0 1,722 01-20-2016, 06:24 PM
Last Post: Vuhelper
  CS709 Formal Methods for Software Engineering Assignment No 01 Solution January 2016 Vuhelper 0 1,860 01-20-2016, 06:22 PM
Last Post: Vuhelper
  cs703 assignment no 3 Solution 20th January 2016 Vuhelper 0 1,761 01-20-2016, 06:20 PM
Last Post: Vuhelper
  CS704 Assignment No. 01 Solution January 2016 Vuhelper 0 4,861 01-20-2016, 06:19 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 2 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support