NG 4 CPP Module 01
NG 4 CPP Module 01
(https://profile.intra.42.fr/searches) inightin
(https://profile.intra.42.fr)
(/PROJECTS/CPP-MODULE-01)
Git repository
[email protected]:vogsphere/intra-uuid-d5bec79
Introduction
Please comply with the following rules:
- Identify with the student or group whose work is evaluated the possible
dysfunctions in their project. Take the time to discuss and debate the
- You must consider that there might be some differences in how your peers
might have understood the project's instructions and the scope of its
done seriously.
Guidelines
- Only grade the work that was turned in the Git repository of the evaluated
student or group.
- Double -check that the Git repository belongs to the student(s). Ensure that
the project is the one expected. Also, check that 'git clone' is used in an
empty folder.
- Check carefully that no malicious aliases was used to fool you and make you
- To avoid any surprises and if applicable, review together any scripts used
https://projects.intra.42.fr/scale_teams/3863074/edit 1/8
1/29/22, 6:02 PM Intra Projects CPP Module 01 Edit
- If you have not completed the assignment you are going to evaluate, you have
In these cases, the evaluation process ends and the final grade is 0,
strongly encouraged to review together the work that was turned in, in order
- You should never have to edit any file except the configuration file if it
exists. If you want to edit a file, take the time to explicit the reasons
with the evaluated student and make sure both of you are okay with this.
- You must also verify the absence of memory leaks. Any memory allocated on
You are allowed to use any of the different tools available on the computer,
appropriate flag.
Attachments
subject.pdf (https://cdn.intra.42.fr/pdf/pdf/40222/en.subject.pdf)
Preliminary tests
If cheating is suspected, the evaluation stops here. Use the "Cheat" flag to report it. Take this decision calmly, wisely,
and please, use this button with caution.
Prerequisites
The code must compile with c++ and the flags -Wall -Wextra -Werror
Don't forget this project has to follow the C++98 standard. Thus,
Any of these means you must not grade the exercise in question:
functions).
Any of these means that you must flag the project with "Forbidden
Function":
https://projects.intra.42.fr/scale_teams/3863074/edit 2/8
1/29/22, 6:02 PM Intra Projects CPP Module 01 Edit
C++98.
Yes No
Ex00: BraiiiiiiinnnzzzZ
The goal of this exercise is to understand how to allocate memory in C++.
Yes No
Zombie Class
The destructor prints a debug message that includes the name of the zombie.
Yes No
newZombie
Ideally, it should call the constructor that takes a string and initializes
the name.
The exercise should be marked as correct if the Zombie can announce itself
Yes No
randomChump
Ideally the zombie should be allocated on the stack (so implicitly deleted
at the end of the function). It can also be allocated on the heap and then
https://projects.intra.42.fr/scale_teams/3863074/edit 3/8
1/29/22, 6:02 PM Intra Projects CPP Module 01 Edit
explicitly deleted.
Yes No
Yes No
zombieHorde
There is a zombieHorde() function prototyped as: [ Zombie* zombieHorde( int N, std::string name ); ]
After the allocation, there is an initialization of the objects to set their name.
There are enough tests in the main to prove the previous points.
Last, all the zombies should be deleted at the same time in the main.
Yes No
Yes No
https://projects.intra.42.fr/scale_teams/3863074/edit 4/8
1/29/22, 6:02 PM Intra Projects CPP Module 01 Edit
HI THIS IS BRAIN
The address of the string is displayed using the string variable, the
Yes No
Yes No
Weapon
There is a Weapon class that has a type string, a getType() and a setType().
Yes No
HumanB must have a pointer to a Weapon since the field is not set at
Yes No
https://projects.intra.42.fr/scale_teams/3863074/edit 5/8
1/29/22, 6:02 PM Intra Projects CPP Module 01 Edit
Yes No
ex04
There is a function replace (or other name) that works as specified in the
subject.
The error management is efficient: try to pass a file that does not exist,
If you can find an error that isn't handled, and isn't completely esoteric,
The program must read from the file using an ifstream or equivalent,
Yes No
Yes No
There is a class Karen with at least the 5 functions required in the subject.
The function complain() executes the other functions using a pointer to them.
Ideally, the student should have implemented a way of matching the different
member function.
If the implementation is different but the exercise works you should mark
The student could have chosen to change the message Karen displays or to
https://projects.intra.42.fr/scale_teams/3863074/edit 6/8
1/29/22, 6:02 PM Intra Projects CPP Module 01 Edit
Yes No
Ex06: Karen-filter
Now that you are experienced coders, you should use new instruction types, statements, loops, etc. The goal of this
last exercise is to make you discover the switch statement.
Yes No
The program karenFilter takes as argument any of the log levels ("DEBUG",
that are at the same level or above (DEBUG < INFO < WARNING < ERROR). This
Yes No
Ratings
Ok
l Forbidden function
Conclusion
Finish evaluation
https://projects.intra.42.fr/scale_teams/3863074/edit 7/8
1/29/22, 6:02 PM Intra Projects CPP Module 01 Edit
https://projects.intra.42.fr/scale_teams/3863074/edit 8/8