Start Assignment 5 for 396.
This commit is contained in:
parent
cfcce88ebc
commit
0ab7384af2
4 changed files with 81 additions and 0 deletions
BIN
assignmentFive/date
Executable file
BIN
assignmentFive/date
Executable file
Binary file not shown.
40
assignmentFive/date.cpp
Normal file
40
assignmentFive/date.cpp
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
/*
|
||||||
|
Program Name: Date (exception handling)
|
||||||
|
Process: ???
|
||||||
|
Function Input/Parameters: ???
|
||||||
|
Function Output/Parameters: ???
|
||||||
|
Function Output/Returned: ???
|
||||||
|
Device Input/Device: ???
|
||||||
|
Device Output/Monitor: ???
|
||||||
|
Dependencies: ???
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <cstdio>
|
||||||
|
#include <cstdlib>
|
||||||
|
#include <iostream>
|
||||||
|
#include <cstring>
|
||||||
|
#include <vector>
|
||||||
|
#include <random>
|
||||||
|
#include <algorithm>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
// class definitions
|
||||||
|
class Date
|
||||||
|
{
|
||||||
|
private:
|
||||||
|
/* data */
|
||||||
|
public:
|
||||||
|
Date(/* args */);
|
||||||
|
~Date();
|
||||||
|
};
|
||||||
|
|
||||||
|
// function prototypes
|
||||||
|
|
||||||
|
// main program
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
// return 0
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
BIN
assignmentFive/htmlConvert
Executable file
BIN
assignmentFive/htmlConvert
Executable file
Binary file not shown.
41
assignmentFive/htmlConvert.cpp
Normal file
41
assignmentFive/htmlConvert.cpp
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
/*
|
||||||
|
Program Name: HTML Converter
|
||||||
|
Process: ???
|
||||||
|
Function Input/Parameters: ???
|
||||||
|
Function Output/Parameters: ???
|
||||||
|
Function Output/Returned: ???
|
||||||
|
Device Input/Device: ???
|
||||||
|
Device Output/Monitor: ???
|
||||||
|
Dependencies: ???
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <cstdio>
|
||||||
|
#include <cstdlib>
|
||||||
|
#include <iostream>
|
||||||
|
#include <cstring>
|
||||||
|
#include <vector>
|
||||||
|
#include <random>
|
||||||
|
#include <algorithm>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
// class definitions
|
||||||
|
|
||||||
|
// function prototypes
|
||||||
|
|
||||||
|
// main program
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
// menu for user
|
||||||
|
|
||||||
|
// ask the user for a cpp file. (check to see if valid?)
|
||||||
|
|
||||||
|
// add the <pre> tag, read each character, check to see if the character is one that needs to be
|
||||||
|
// modified, like '<' and '>' and turned into '<' and '>' once at the end of input file,
|
||||||
|
// add the </pre> tag, and output to a new html file that uses the file name
|
||||||
|
// and rids itself of everything after the dot and replaces it with '.html' and writes it out.
|
||||||
|
|
||||||
|
// return 0
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue