Hello ! I'm Xavier Jouvenot and in this small post, I am going to explain how to find the difference between two numbers. Self promotion: You can find other articles on Android development on my website 😉 Subtracting number isn't enough ? First, let's defines precisely what a difference is and why a subtraction isn't… Lire la suite Quick Tip – How to find the difference between two numbers

# Étiquette : Cpp

## Quick Tip – How to convert a Java jintArray to a C++ std::vector

Hello ! I'm Xavier Jouvenot and in this small post, I am going to explain how to convert a Java jintArray to a C++ std::vector. Self promotion: You can find other articles on Android development on my website 😉 Solution For the people who only want the solution, to quickly copy-paste it in there code,… Lire la suite Quick Tip – How to convert a Java jintArray to a C++ std::vector

## The Modern Cpp Challenge on Mobile – Abundant numbers

Hello ! I'm Xavier Jouvenot and here is the sixth part of a long series on The Modern C++ Challenge. In this article, I am going to explain how I solved the sixth problem in C++, and how I integrated the solution in an Android project. The objective of this sixth problem is simple. We… Lire la suite The Modern Cpp Challenge on Mobile – Abundant numbers

## The Modern Cpp Challenge on Mobile – Sexy prime pairs

Hello ! I'm Xavier Jouvenot and here is the fifth part of a long series on The Modern C++ Challenge. In this article, I am going to explain how I solved the fifth problem in C++, and how I integrated the solution in an Android project. The objective of this fifth problem is simple. We… Lire la suite The Modern Cpp Challenge on Mobile – Sexy prime pairs

## The Modern Cpp Challenge on Mobile – Largest prime smaller than given number

Hello ! I'm Xavier Jouvenot and here is the fourth part of a long series on The Modern C++ Challenge. In this article, I am going to explain how I solved the fourth problem in C++, and how I integrated the solution in an Android project. The objective of fourth third problem is simple. We… Lire la suite The Modern Cpp Challenge on Mobile – Largest prime smaller than given number

## The Modern Cpp Challenge on Mobile – Least Common Multiplier

Hello ! I'm Xavier Jouvenot and here is the third part of a long series on The Modern C++ Challenge. In this article, I am going to explain how I solved the third problem in C++, and how I integrated the solution in an Android project. The objective of this third problem is simple. We… Lire la suite The Modern Cpp Challenge on Mobile – Least Common Multiplier

## The Modern Cpp Challenge on Mobile – Greatest commont divisor

Hello ! I'm Xavier Jouvenot and here is the second part of a long series on The Modern C++ Challenge. In this article, I am going to explain how I solved the second problem in C++, and how I integrated the solution in an Android project. The objective of this second problem is simple. We… Lire la suite The Modern Cpp Challenge on Mobile – Greatest commont divisor

## The Modern C++ Challenge on Mobile – The First Problem

Hello ! I'm Xavier Jouvenot and here is the first part of a long series on The Modern C++ Challenge. In this article, I am going to explain how I solved the first problem in C++, and how I integrated the solution in an Android project. The objective of this first problem is simple. We… Lire la suite The Modern C++ Challenge on Mobile – The First Problem

## Magic numbers and how to deal with them in C++

Hi dear reader, I'm Xavier Jouvenot and in this article, we are going to talk about magic numbers. This post was inspired by a rule from the fourth chapter of Code Craft, by Pete Goodliffe, on Defensive programming. What is a Magic number ? A magic number is a raw number in the code. This… Lire la suite Magic numbers and how to deal with them in C++

## How to check every return statement in c++ ?

Hi dear reader, I'm Xavier Jouvenot and in this article, we are going to talk about how to be sure to check every return statement in C++. This post was inspired by a rule from the first chapter of Code Craft, by Pete Goodliffe, on Defensive programming Does it even really matter ? Actually, it… Lire la suite How to check every return statement in c++ ?