Revision: 9023
Updated Code
at October 17, 2008 22:56 by itsok2kry
Updated Code
#include <iostream> #include "LinkedList.h" #include "LinkedNode.h" int main() { // our list LinkedList< int > list; //add a couple values list.add( 1000 ); list.add( 2000 ); // try to get them back out int val1 = list.get( 1 ); int val2 = list.get( 2 ); // output the result and wait for input std::cout << "val1: " << val1 << std::endl; std::cout << "val2: " << val2 << std::endl; std::cout << "list size: " << list.getSize() << std::endl; std::cin.ignore( std::cin.rdbuf()->in_avail() + 1 ); return 0; }
Revision: 9022
Updated Code
at October 17, 2008 19:20 by itsok2kry
Updated Code
#include <iostream> #include "LinkedList.cpp" #include "LinkedNode.cpp" int main() { // our list LinkedList< int > list; //add a couple values list.add( 1000 ); list.add( 2000 ); // try to get them back out int val1 = list.get( 1 ); int val2 = list.get( 2 ); // output the result and wait for input std::cout << "val1: " << val1 << std::endl; std::cout << "val2: " << val2 << std::endl; std::cout << "list size: " << list.size() << std::endl; std::cin.ignore( std::cin.rdbuf()->in_avail() + 1 ); return 0; }
Revision: 9021
Updated Code
at October 17, 2008 17:28 by itsok2kry
Updated Code
#include <iostream> #include "LinkedList.cpp" #include "LinkedNode.cpp" int main() { // our list LinkedList< int > list; //add a couple values list->add( 1000 ); list->add( 2000 ); // try to get them back out int val1 = list->get( 1 ); int val2 = list->get( 2 ); // output the result and wait for input std::cout << "val1: " << val1 << std::endl; std::cout << "val2: " << val2 << std::endl; std::cout << "list size: " << list->size() << std::endl; std::cin.ignore( std::cin.rdbuf()->in_avail() + 1 ); return 0; }
Revision: 9020
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 17, 2008 16:36 by itsok2kry
Initial Code
#include <iostream> #include "LinkedList.cpp" int main() { // our list LinkedList< int > list; //add a couple values list->add( 1000 ); list->add( 2000 ); // try to get them back out int val1 = list->get( 1 ); int val2 = list->get( 2 ); // output the result and wait for input std::cout << "val1: " << val1 << std::endl; std::cout << "val2: " << val2 << std::endl; std::cout << "list size: " << list->size() << std::endl; std::cin.ignore( std::cin.rdbuf()->in_avail() + 1 ); return 0; }
Initial URL
Initial Description
this doesn't work at all.
Initial Title
Linked List (Tester.cpp)
Initial Tags
list, c
Initial Language
C++