Sup Jow Forums

Sup Jow Forums

You have 10 seconds to write a function that converts a string into an integer in your favorite programming language.

Attached: armstrong.png (972x807, 487K)

Other urls found in this thread:

google.com/search?q=convert string to integer perl&oq=convert string to integer&aqs=chrome.0.69i59j69i57.5535j0j7&sourceid=chrome&ie=UTF-8
twitter.com/NSFWRedditGif

#include

int main(void)
{
int value;
scanf("%d", &value);
return 0;
}

[code}
print(eval('4'))
[/code]
fuck C
fuck haskell
fuck fucktionl programm
india best countrie.....

oh no how delete post on the Jow Forums

Could someone do this in Pascal for me, please?

Attached: 1497566728285.gif (640x360, 2.26M)

pascal? more like pashel
noone need performance code for 2019 these day
all computer must be for java, india greatest ally

what?you think that java slow, well you have another coming sirs, java is the best languag and no inferior country can tell india otherwis india nuber one....
c sound like python but slow and crash
haskel has word of death inside intel premium procesoor and is evil
java make good like ngurama sadhatath say in class...
yuo just not know what good programming is and should go back to third worl usa country europeean, eveyone know india numbur 1!!1
INDIA INDIA INDIA INDIA INDIA INDIA INDIA INDIA INDIA INDIA INDIA INDIA INDIA INDIA INDIA INDIA INDIA INDIA ..

paradise?

google.com/search?q=convert string to integer perl&oq=convert string to integer&aqs=chrome.0.69i59j69i57.5535j0j7&sourceid=chrome&ie=UTF-8

(defun string-to-integer (string)
(parse-integer string))


or

(lambda (n) (parse-integer n))

int returnInteger (String string){
return 69420;
}

based

def cuck():
str_num = input("number: ")
int_num = int(str_num)

returnInteger("69421")

fail

The post doesn't require a 1to1 correspondence between the input and the output. A costant return value is prefectly acceptable.

nmber = int('420')

const cuck = (x) => parseInt(x, 2);

def str(x):
Return str(x)


This is why I love python. I don't have to worry about all this tricky shit you guys are doing. Easy as py.

From what base

Attached: 1475491078008.png (250x226, 24K)

>stack overflow
see me after class

function parseInteger(num, base) {
return parseInt(num, base);
}

unsigned int string_to_uint(const char *s)
{
unsigned int result = 0;

for (const char *cs = s; *cs != '\0'; ++cs) {
const char c = *cs;
if (c < '0' || c > '9')
return -1;

const unsigned int digit = c - '0';
result = result * 10 + digit;
}

return result;
}

it already exists:

atoi(myCharArray);

otherwise:

atoi(myString.c_str());

def whatever(some_string):
return int(some_string)

pls

Attached: dog_wormhole.jpg (579x523, 41K)

u aight m8, havin a stroke?

Attached: f0b6e443.png (1137x749, 40K)