- #1
utkarshakash
Gold Member
- 854
- 13
I'm trying to convert an integer variable to a string using to_string function of string.h header file.
Here's the part of code:
However, when I try to compile my program I get the following error:
"error:to_string was not declared in this scope"
I'm using CodeBlocks as my IDE and my compiler is MinGW 4.8.1-4. Can anyone tell me why is this error showing up and how to fix this issue?
Here's the part of code:
Code:
string numToStr=to_string(num);
However, when I try to compile my program I get the following error:
"error:to_string was not declared in this scope"
I'm using CodeBlocks as my IDE and my compiler is MinGW 4.8.1-4. Can anyone tell me why is this error showing up and how to fix this issue?