Implementation
C++

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating resource.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
int i = Integer.parseInt(s);
int i = new Integer(s).intValue();
i = s.to_i
import "strconv"
i, err  := strconv.Atoi(s) 
#include <cstdlib>
int i = std::atoi(s);
var i = int.parse(s);
import "strconv"
i, err := strconv.ParseInt(s, 10, 0)
i = int(s)
i = Convert.ToInt64(s);
my $i = $s + 0;
let i = s.parse::<i32>().unwrap();
$i = intval($s, 10);
#include <stdlib.h>
int i=atoi(s);
import std.conv;
auto i = s.to!int;
let i: i32 = s.parse().unwrap_or(0);
uses SysUtils;
i := StrToInt(S);
let i = read s :: Integer
(Integer/parseInt s)
i = String.to_integer(s)
I = list_to_integer(S).
let i = match s.parse::<i32>() {
  Ok(i) => i,
  Err(e) => {
    -1
  }
};
i = tonumber(s)
I := Integer'Value (s);
s.toInt
i = parseInt("23", 10)
(define i (string->number s))
let num : i32 = line.trim().parse()
        .expect(msg: &str);