Function stoi not declared?

I'm trying to use stoi to convert a string to an integer, however it says it's not declared. I have the standard lib...

Java JDK - possible lossy conversion from double to int?

So I have recently written the following code: import java.util.Scanner; public class TrainTicket { publ...

OCaml - How do I convert int to string??

How do I convert an int to a string? Example: 1 to "1". ...

Function stoi not declared?

I'm trying to use stoi to convert a string to an integer, however it says it's not declared. I have the standard lib...

JAVA Variable declaration not allowed here?

I get an error "Variable declaration not allowed here" and I don't know why, I'm new in java and can't find answer :...

Haskell: Converting Int to String?

I know you can convert a String to an number with read: Prelude> read "3" :: Int 3 Prelude> read "3" :: Doubl...

How to check if an int is a null?

I have an object called Person. it has several attributes in it; int id; String name; i set a person object like...

What is the int.MaxValue on a 64-bit PC??

System.Console.WriteLine(int.MaxValue); This line gives me the answer of 2,147,483,647 as I have a 32-bit PC. Wil...

Difference between int and double?

I was wondering if someone could tell me why anyone would use int instead of double? It seems to be that double is m...

Using Exclamation Marks '!' in C?

I have come across a problem involving exclamation marks and integers whilst reading a code in my reference book. L...

How to check if a specific integer is in a list?

I want to know how to make an if statement that executes a clause if a certain integer is in a list. All the other ...