Sup Jow Forums
You have 10 seconds to write a function that converts a string into an integer in your favorite programming language.
Sup Jow Forums
You have 10 seconds to write a function that converts a string into an integer in your favorite programming language.
#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?
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?
(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
>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
u aight m8, havin a stroke?