English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

need to know how do you write a readnum function

2007-03-02 04:44:59 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

You havn't given enough information. A function needs to do something! Here's a readnum function that returns a num from a string (in C/C++, because you called it a "function"):

int readnum(string str) {
return Int32.Parse(str);
}

2007-03-02 04:52:25 · answer #1 · answered by Tim 6 · 0 0

first off, in what language??? you just need to name it readnum or do you want it to do somethin specific? :P

javascript:

function readnum(){
}

vb:

private/public function readnum as
end function

etc..

Cheers

2007-03-02 12:49:31 · answer #2 · answered by Julio M 3 · 0 1

in which language

2007-03-02 12:48:40 · answer #3 · answered by Rami 5 · 0 0

fedest.com, questions and answers