Skip to content

Commit

Permalink
merging shit?
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfearless999 committed May 29, 2016
2 parents 8f012f1 + d5cbb29 commit 91749dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 2 additions & 0 deletions LibraryProject/LibraryProject/LinkedList.h
Expand Up @@ -22,6 +22,7 @@ class LinkedList
long listLen_;

public:

LinkedList();
~LinkedList();
void SetCurNode(Node* Current);
Expand All @@ -31,6 +32,7 @@ class LinkedList
void* GetFirstNode();
void* GetNextNode();
void* GetCurNode();
void* GetLastNode();
long GetListLength();
};

13 changes: 3 additions & 10 deletions LibraryProject/LibraryProject/main.cpp
Expand Up @@ -15,7 +15,6 @@

using namespace std;

const int MAX_CHAR = 150;

Users userList;
LinkedList bookList;
Expand Down Expand Up @@ -80,6 +79,7 @@ int main() {
if (selection == 'a')
{
//print book list

printAllBooks();

selection = ' ';
Expand Down Expand Up @@ -450,15 +450,7 @@ string getCurUser(string email)
{
string user;
long counter = usersList.GetListLength();


while (counter != 0)
{
if (email == userList.GetEmail())
return email;

}
return email;
return email;
}
//stores book titles in an array after searching through the list for each one
//tested
Expand Down Expand Up @@ -538,6 +530,7 @@ string Register()
User->setEmail(email);

usersList.AddLinkToBack(User);
usersList.GetLastNode();


return email;
Expand Down

0 comments on commit 91749dc

Please sign in to comment.