Skip to content

Latest commit

 

History

88 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TDDE18

It is recommended to use the following alias for compiling the labs:

alias w++17="g++ -std=c++17 -Wall -Wextra -Wpedantic -Weffc++ -Wold-style-cast"

both g++ and clang++ works with this alias.

Lab 2

Compile the testing framework which should yields a precompiled object file test_main.o

w++17 -c test_main.cpp

Compile the test with the precompiled object file

w++17 test_main.o Time.cpp time_test.cpp

Lab 3

Compile the testing framework which should yields a precompiled object file test_main.o

w++17 -c test_main.cpp

Lab 4

Compile the lab:

w++17 Battery.cpp Capacitor.cpp Component.cpp Connection.cpp Network.cpp Resistor.cpp main.cpp

Lab5

Compile the lab:

w++17 main.cpp

Run the program

./a.out <input file> FLAGS
FLAGS:
--print                            Prints every word in <input file> separated by spaces
--frequency                        Prints frequency table of <input file> in descending order of occurance
--table                            Prints frequency table of <input file> in lexicographical order
--substitute=<oldWord>+<newWord>   Substitutes every occurance of <oldWord> by <newWord> in content provided by <input file>
--remove=<word>                    Removes every occurance of <word> in content provided by <input file>

About

Lab solutions for the course TDDE18 given at Linköping University

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Contributors

Languages