summaryrefslogtreecommitdiffstats
path: root/Readme.adoc
blob: a98e510f753071d0bfc6e5d76b4b673ae0d7e44f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
= Unofficial repository for LP1 tests
Mitsuo
2022-09-09
:source-highlighter: highlight.js

Contributions are very welcomed and needed, if you want to contribute
please open a Pull Request following the directory structure:

An effort is made to have the code be concise and readable.

 semester/L#/submitter's name/

NOTE: I won't include the PDFs with the problem statement because I don't have
permission to share them publicly on the internet.  If you have a PUCP
email, you can access to
https://facultad.pucp.edu.pe/ingenieria/agrupaciones/asociacion-alumnos-ingenieria-informatica-aaii-pucp/[AAII]'s
https://drive.google.com/drive/folders/0B8DUIB5m9fukVHZhX1pRZFhHY2M?resourcekey=0-_ODdPfSHMCyE6heWHij3Hg&usp=drive_link[Google Drive]
, you can find the some PDFs there.

== Tips

=== Debugging

You should definitly make effective use the debugging tools from the IDE
(breakpoints, keybindings, call stack, watches, expressions).
Otherwise you are just waisting your time.  Most IDE either use
https://en.wikipedia.org/wiki/GNU_Debugger[GDB] or
https://en.wikipedia.org/wiki/LLDB_(debugger)[LLDB], and they share most of the
basic concepts.  You can https://www.youtube.com/watch?v=Dq8l1_-QgAc[learn the basics] 
fast and start **practicing**.

(Many times, the compilation or runtime error message is not helpful at all or
borderline cryptic.  Debugging tools help a lot.)

Prof. Guanira states it clearly in "Guia de Creacion Ejecucion y
Depuracion.pdf":

image::img/ss_20220916_200135.png[Debugging is essential]

=== Formatting

Using
https://cplusplus.com/reference/library/manipulators/[
stream manipulators] and
https://cplusplus.com/reference/ios/ios_base/fmtflags/[
stream format flags] can be cumbersome, but the course _requires_ them since
using `printf` is not allowed. So maybe macros can be helpful here.

See link:tips/formatting.adoc[] for an example implementation and usage.