Compare commits
2 commits
daa2dfc077
...
5c0f319d0c
Author | SHA1 | Date | |
---|---|---|---|
|
5c0f319d0c | ||
|
e707a6649f |
3 changed files with 8 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
CXX = g++
|
||||
CXXFLAGS = -Wall -Wextra -Wpedantic -Wshadow -Wnon-virtual-dtor -Wold-style-cast -Wcast-align -Wunused -Woverloaded-virtual -Wconversion -Wsign-conversion -Wnull-dereference -Wdouble-promotion -Wformat=2 -std=c++17
|
||||
#CXXFLAGS += -Werror
|
||||
CXXFLAGS += -g
|
||||
|
||||
SRC = $(wildcard *.cc)
|
||||
HDR = $(wildcard *.h)
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#include <iostream>
|
||||
|
||||
#include "User.h"
|
||||
|
||||
class UserTable {
|
||||
public:
|
||||
UserTable();
|
||||
|
@ -29,4 +28,7 @@ class UserTable {
|
|||
|
||||
friend int testFindNbr(const UserTable ut);
|
||||
};
|
||||
|
||||
// int testFindNbr(const UserTable ut);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -39,4 +39,8 @@ int main() {
|
|||
User ufind2 = tbl.find("Name Surname");
|
||||
assert(ufind2 != UserTable::user_not_found);
|
||||
}
|
||||
{
|
||||
auto t = UserTable("users.txt");
|
||||
int r = testFindNbr(t);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue