int main() { LinkedList<char*> list; char* str = "Kim young min"; list.AddLinkedList(str); char* str1 = (char*)list.GetLinkedListData(0); cout << str1 << endl; // LinkedList<int> list_int; // list_int.AddLinkedList(10); LinkedList<int> list_int; list_int.AddLinkedList(10); cout << list_int.GetLinkedListData(0) << endl; LinkedList<StringClass> list_string; StringClass cStr = "cStr1"; list_string.AddLinkedList(cStr); cout << list_string.GetLinkedListData(0) << endl; return 0; }
int main() { LinkedList list; char* str = "Kim young min"; list.AddLinkedList(str); char* str1 = (char*)list.GetLinkedListData(0); cout << str1 << endl; return 0; }