CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
include <iostream>
#include <iomanip>
#include <iterator>
#include <algorithm>
#include <ctime>
#include <cstdlib>
#include <string>
using namespace std;
/*
language char[]
year -short []
Author char[32]
description string
*/
//#define SIZE 5;
typedef struct LanguageStruct {
string *language = new string;
short *year = new short;
string *authorName = new string; //should ideally be char
string *description = new string;
//LanguageStruct(string * lang,short*yr,string *auth):language(lang),year(yr),authorName(auth){}
void setAll(string *lang, short *yr, string *auth) {
this->language = lang;
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run