Generation

generate functionMon, 17 Apr 2023

#include<iostream> using namespace std; class Node{ public: string code; string name; float hours; string teacher; float created_date; Node *next; Node *prev; Node(){ next = NULL; prev = NULL; } }; class DoublyLinkedList{ public: int size; Node *head; Node *tail; DoublyLinkedList(){ head = NULL; tail = NULL; size = 0; } void insert(string code, string name, float hours, string teacher, float created_date){ Node *new_node = new Node(); new_node->code = code; new_node->name = name; new_node->hours = hours; new_node->teacher = teacher; new_node->created_date = created_date; if(head == NULL){ head = continuar codigo

int main(){ Class my_class("FISI2051", "Algoritmos y programación I", 4, "Oliva", 20181); cout << my_class.name << endl; }

Questions about programming?Chat with your personal AI assistant