Untitled
c_cpp
a month ago
1.3 kB
0
Indexable
Never
// #include <iostream> // #include <string> // using namespace std; // struct Node // { // int num; // string name; // Node* link; // }; // void display(Node* head) { // if (head != NULL) { // while (head != NULL) { // cout << head->name << " "; // cout << head->num << endl; // head = head->nextlink; // } // } // else { // cout << "The List is Empty!" << endl; // } // } // Node* createNode(Node* head, int num, string x) { // if (head == NULL) { // Node* n = new Node(); //Creates a node // n->num = num; // n->name = x; // n->link = NULL; // head = n; // } // else { // //push front (push to head) // Node* n = new Node(); // n->num = num; // n->name = x; // n->link = head; // head = n; // } // return head; // } // int main() { // Node* Head = NULL; // Node* Tail = NULL; // int x; // string y; // cout << "Enter a Number: "; // cin >> x; // cout << "Enter a String: "; // cin >> y; // createNode(Head, x, y); // display(Head); // return 0; #include <iostream> using namespace std; int main() { cout << "Hello World" << endl; cout << "Testing" << endl; return 0; }