Here's the C++ solution to Exercise: Cows and Bulls.
#include <iostream>#include <string>#include <stdlib.h>
I even included the libary
string a = to_string(g);
I used this code to covert int to string but compiler showing that 'to_string' was not declared in the scope.Let me know what is the issue
In the last two tutorials, you learnt about C++ Data-types & Operators and Strings. In this tutorial, you'll go into more depth about variables and how to get input from the user. Let's get started!