TDDE18 Programming (C++)
Overview
-
Lab room with the lowest number:
Go to this room if you feel like you need help with the basics and have very limited programming experience. If this room is full, go to the second lowest numbered lab room, etc.
If there is a session with lab rooms that are not numbered then go to the first one in the list on TimeEdit.
-
Other rooms:
Go to these rooms if you feel like you are on track with the course and are making progress at the recommended pace.
If you are unsure which lab rooms you should go to, talk to an assistant.
Note: You are not bound to any of these rooms, you are free to switch rooms at any point during the course, so if you are unsure where to go you can try out the different rooms to see which fits you the best.
Lab signup
All lab work shall be done together with ONE fellow student. Demonstration "on your own" will not be permitted. Use the link "Lab signup" in the menu to left. You should always demonstrate labs with the student you worked together with.
Lab demonstration
Finished (well tested and debugged) labs should be approved by one of the assistants. Lab demonstration is done during scheduled lab sessions. Raise your hand and tell the assistant you want to demonstrate. The assistant will ask you to do the demonstration. Both students should be prepared to show and explain all code part of the lab, answer questions on the techniques used in the lab, and explain how the program reacts to certain input.
Lab approval
Once the assistant is happy with your demonstration the handin for the lab will be unlocked by the assistant. You can prepare this by clicking the "Unlock submission" link in the menu. After unlocking you will be able to handin the code through Sendlab. Make sure to correct anything the assistant noted before handing in.
Check this page to see how to hand-in your code!
Optional warmup
If it has been a long time since you programmed last or if you feel a bit unsure about how to start the first lab, you can do the following optional warmup exercises: warmup exercises (last modified 2025-08-13 at 15:24 )
Note: these exercises should not be demonstrated, nor are they handed in or assessed. These are just self-study exercises you can do to familiarise yourself with C++ using smaller exercises before tackling the first lab. No solutions will be provided.
Optional pointer/memory exercises
You are encouraged to solve the following exercises to get a better grasp of pointers and related memory issues: Memory exercises (last modified 2025-08-13 at 15:24 )
Note: these exercises should not be demonstrated, nor are they handed in or assessed.
Lab instructions
- Lab 1 (note: This has three parts): Basic input and output, Tax table and Word length
- Lab 2: Time and some given files. (last modified 2025-09-09 at 14:26)
- Lab 3: Linked list and some given test files. You can find memory leaks with a tool called Valgrind (last modified 2025-08-28 at 09:07)
- Lab 4: Will be updated
- Lab 5: Will be updated
Working on labs from home
Your responsibilities in order to learn
- Let us know what you need from us
- Attend lectures and ask questions
- Read the book and study examples
- Attend lessons, participate actively and ask questions
- Study, modify and write small eperimental programs that focus on how one particular feature of C++ works
- Prepare lab solutions at home
- Discuss different solution approaces with your lab partner
- Attend labs and write lab solutions
- And so on ...
Page responsible: Christoffer Holm
Last updated: 2025-08-29