generated from CSCI200/Template
:3
This commit is contained in:
parent
5be7b56660
commit
1a01849e8d
3 changed files with 3 additions and 11 deletions
2
Makefile
2
Makefile
|
@ -8,7 +8,7 @@ SRC_FILES = main.cpp string_functions.cpp test_suite.cpp
|
|||
## Adds only the necessary files for build into a .tar.gz file, named appropriately
|
||||
ARCHIVED_FILES = Makefile $(SRC_FILES) $(SRC_FILES:.cpp=.h) $(SRC_FILES:.cpp=.hpp)
|
||||
pack: fmtc
|
||||
tar --ignore-failed-read -czvf $(TARGET).tar.gz $(shell echo $(ARCHIVED_FILES) | xargs ls -d 2>/dev/null)
|
||||
tar --ignore-failed-read -czvf $(TARGET).tar.gz string_functions.cpp
|
||||
|
||||
## Runs the pack target and then attempts to build & run the program to make sure it functions correctly
|
||||
pack-test: pack
|
||||
|
|
4
main.cpp
4
main.cpp
|
@ -1,8 +1,8 @@
|
|||
/**
|
||||
* @file main.cpp
|
||||
* @author Tyler Beckman (tyler_beckman@mines.edu)
|
||||
* @brief CSCI200 L3B - A program to test different string modification APIs in
|
||||
* C++
|
||||
* @brief CSCI200 L3B - A program containing string reading and modification
|
||||
* functions, with unit tests to check many edge cases of the functions
|
||||
* @version 1
|
||||
* @date 2024-09-21
|
||||
*/
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
#include "string_functions.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
unsigned long string_length(const string STR) {
|
||||
|
@ -122,8 +120,6 @@ string string_to_lower(const string STR) {
|
|||
}
|
||||
result[i] = newChar;
|
||||
}
|
||||
std::cout << "TODO: implement string_to_lower(\"" << STR << "\")"
|
||||
<< std::endl;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -136,8 +132,6 @@ string string_to_upper(const string STR) {
|
|||
}
|
||||
result[i] = newChar;
|
||||
}
|
||||
std::cout << "TODO: implement string_to_upper(\"" << STR << "\")"
|
||||
<< std::endl;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -150,7 +144,5 @@ int string_compare(const string LHS, const string RHS) {
|
|||
result = -1;
|
||||
}
|
||||
}
|
||||
std::cout << "TODO: implement string_compare(\"" << LHS << "\", \"" << RHS
|
||||
<< "\")" << std::endl;
|
||||
return result;
|
||||
}
|
Loading…
Reference in a new issue