aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortill-t <[email protected]>2021-11-02 23:52:40 -0700
committertill-t <[email protected]>2021-11-02 23:52:40 -0700
commit6d6a458b49d4b589ab8d6f41d954e80c7af5fa47 (patch)
treedb8d9b47a834e1d34a87e439b2f4a1308ab223f2
parentcomplete mod_10a (diff)
downloadcst116-lab5-till-t-master.tar.xz
cst116-lab5-till-t-master.zip
Last problem unfinished.HEADmaster
-rw-r--r--mod_10b/main.cpp8
-rw-r--r--mod_10b/source.cpp14
-rw-r--r--mod_10b/source.h9
3 files changed, 2 insertions, 29 deletions
diff --git a/mod_10b/main.cpp b/mod_10b/main.cpp
index 92605e8..d25b243 100644
--- a/mod_10b/main.cpp
+++ b/mod_10b/main.cpp
@@ -9,13 +9,7 @@
int main()
{
- char Firstname = [50];
- char Lname = [50];
- char Fullname= [100];
-
- getFullName(Firstname, Lname, Fullname);
-
- return 0;
+ return 0;
}
diff --git a/mod_10b/source.cpp b/mod_10b/source.cpp
index 3c6b551..98a565d 100644
--- a/mod_10b/source.cpp
+++ b/mod_10b/source.cpp
@@ -3,16 +3,4 @@
*/
#include "source.h"
-vold getFullName(char& first, char& last, char& full)
-{
- cout<<"Please enter your First name: ";
- cin.getline ( first, 50 );
- cout<<"Enter your last name: ";
- cin.getline ( last, 50 );
- full[0] = '\0'; // strcat searches for '\0' to cat after
- strcat ( full, first); // Copy name into full name
- strcat ( full, " " ); // We want to separate the names by a space
- strcat ( full, last); // Copy lastname onto the end of fullname
- cout<<"Your full name is "<< full <<"\n";
- cin.get();
-}
+
diff --git a/mod_10b/source.h b/mod_10b/source.h
index fe51602..b28b04f 100644
--- a/mod_10b/source.h
+++ b/mod_10b/source.h
@@ -1,12 +1,3 @@
-#include <iostream> //For cout
-#include <cstring> //For the string functions
-
-using namespace std;
-
-int main();
-void getFullName(char&, char&, char&);
-
-