No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
**how can i create a program that provides 3 types of data structures: linked list, stack and queue.which my program will provide a menu that a user can choose whether to use a linked list, stack or queue.** Example of output: Main Menu 1. Linked list 2. Stack 3. Queue … |
|
#include<iostream.h> #include<fstream.h>//header file #include<string> #include<stdlib.h> void main() { fstream pasca; pasca.open("C:evaluate.dat",ios::out); fstream display; paparan.open("C:evaluate.dat",ios::in); int lecturer_code; int course_code; char gred1, gred2, gred3, gred4, gred5; float point1, point2, point3, point4, point5; float total_point1, total_point2, total_point3, total_point4, total_point5; char user; if(!pasca || !display) { cout<<"File cannot open"; exit(1); } cout<<"Enter Lecturer code … |