LecLabs 3.1/2 - C++ Intro


Intro to Programming Languages.

[ ← Module List ]

This module covers an introductuction to C++. Explaining some of the difference between C and C++ syntax.


Challenges

Lecture video on OO Paradigm

Lecture video on Differences

Lecture video on Buffer and Files

Objective

Create a program that uses the json11 library to parse a JSON string and access the data in a json11 object.

CTRL-Click Here for Follow Along Video

Requirements

  • Implement the requirements described in the CODE: comments
  • Compile the code using make
  • Test the code
  • Run tester

Lecture video on Classes

This lab exercise will help you understand how to create and delete objects in C++ using dynamic memory allocation. You will implement a simple class, create an object using new, and delete it using delete. Instructions:

  1. Implement a simple class named SimpleObject.
  2. Define a constructor and a destructor for SimpleObject.
  3. In the main function, dynamically create an instance of SimpleObject using new.
  4. Delete the created instance using delete.

30-Day Scoreboard:

This scoreboard reflects solves for challenges in this module after the module launched in this dojo.

Rank Hacker Badges Score