With this course, you will:

  • Gain a strong grasp of advanced C++
  • Take programming logic to the next level
  • Earn a professional certificate
Fi Coin

Average Salary (US)

$114,997

Fi Box

Prerequisites

Fi Coin

Average Salary (US)

$114,997

Fi Box

Prerequisites

Course Hero Image
Practice Course

Practice: C++ Intermediate

Apply the skills you have gained from the Learn C++ Intermediate course to solve practice problems and become a C++ master.

  • Level: Intermediate

  • Duration: 1 week

  • Type: Interfactive

  • Language: English

  • challenge

    Practice Problems: 25+

Sneak Peek

Create a program to catch the divide by zero exception.

Instructions

  • Inside a try block, check if the denominator is zero.
  • If the denominator is zero, throw an exception with the message Reality has been reshaped. The result is infinity.
  • If the denominator is non-zero, divide the numerator by the denominator and print the result.
  • If an exception is thrown by the try block, catch the exception.
  • Print the thrown message inside the catch block.

Example

For input values:

5
0

The output of the program will be:

Reality has been reshaped. The result is infinity.
main.cpp

Learn by Doing

Fact: You can't learn to code without writing code yourself.

Practice advanced C++ by completing 20+ coding exercises in real-time.

Get Certified

Earn certification through our curated career paths and showcase your new skills in LinkedIn.Boost your career with professional certifications and impress your potential employers on LinkedIn.

CERTIFICATE OF COMPLETION

This is to certify that

Jane Doe

has successfully completed the course

Practice: C++ Intermediate

Practice courses similar to this

Practice courses similar to this

Loading...Loading...