Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
helper-function
- Page 1
Re: HElper function
Programming
Software Development
15 Years Ago
by vegaseat
…this: [code=python]# access count using a bookie or
helper
function
# (code from G-Do) def bookie(func): …"""
helper
function
""" func.count += 1 def f3():…times" """ my output -->
Function
f3() has been accessed 10 times """…
HElper function
Programming
Software Development
15 Years Ago
by dem10
What is a
helper
function
?
Convert a float to a string - need a simple helper function
Programming
Software Development
13 Years Ago
by Morbane
… 8 decimal places or so. So any short and sweet
helper
function
would be of great help.
Mixed order sort with helper function (Python)
Programming
Software Development
10 Years Ago
by vegaseat
A Python sort with a
helper
function
to allow for mixed order sort like age descending and weight ascending.
Re: HElper function
Programming
Software Development
15 Years Ago
by shadwickman
Ah, I didn't know that myself either. Is there more of a general definition of it? I get what the example does, but I'm just curious about the sort of extent/functions that this term can be used to/for.
Re: Convert a float to a string - need a simple helper function
Programming
Software Development
13 Years Ago
by Morbane
Ok cstdio worked. I have the
function
looking like this: [code] char ftostr(float myfloat) { char ans[…", myfloat); return *ans; } [/code] But when I call the
function
like so: [code] SetDlgItemText(hwndDlgM, IDC_CONVERTION, sNum); [/code] The third…
Re: Convert a float to a string - need a simple helper function
Programming
Software Development
13 Years Ago
by NathanOliver
This is a nice conversion
function
at will convert any type that has an << operator. [code=c++] #include <string> #include <sstream> template<typename T> string ConvertToString(T & value) { std::stringstream ss; ss << value; return ss.str(); } [/code]
Re: Convert a float to a string - need a simple helper function
Programming
Software Development
13 Years Ago
by Morbane
… return value of type string so I can call the
function
and set it equal to a variable to use in…
Re: Convert a float to a string - need a simple helper function
Programming
Software Development
13 Years Ago
by gerard4143
… return value of type string so I can call the
function
and set it equal to a variable to use in…
Re: Convert a float to a string - need a simple helper function
Programming
Software Development
13 Years Ago
by Morbane
Oops. I call the
function
like this: [code] char sNum = ftostr(fNum); [/code] Then the SetDlgItemText() attempts to use the converted char. Sorry 'bout that.
Binary Search Tree - Seg. Faults on Remove Function
Programming
Software Development
14 Years Ago
by swolll
… values //on a single line) void print() const; private: //recursive
helper
function
for "print()" void print(BTNode<T>…;< "R ADDY" << endl; } return; } //public
helper
function
template <typename T> bool BST<T>…
Need help with creating a function
Programming
Software Development
9 Years Ago
by andrew mendonca
I am trying to create a recursive
function
: double fifthRoot(double x, double maxError) In this
function
, I have to return y such… to rounding. In order to make this
function
work, I have to call a
helper
function
that takes the original number x, maxError… that I need to change in my fifthRoot() and/or
helper
functions?
Variadic Template Helper vs. Initialization List
Programming
Software Development
11 Years Ago
by triumphost
… the same way Foo is written. With a
helper
function
. I dislike using a
helper
function
for such a thing so I wrote Meh…
Re: Need help with creating a function
Programming
Software Development
9 Years Ago
by sfuo
… now set to 0 and never used within your
helper
function
. In your
helper
function
the only two lines that make sense are the…
Build a function.
Programming
Software Development
8 Years Ago
by chubbyy.putto
… on D1 and f1D2() operating on D2. Assume a
helper
function
fhD1() and
helper
integer intD1 to help the functions operating on D1…
Re: Convert a float to a string - need a simple helper function
Programming
Software Development
13 Years Ago
by gerard4143
Here's a simple way to make the conversion using snprintf(). [code] #include <iostream> #include <cstdio> int main() { char ans[20]; float myf = 123.0 + (1.0 / 3.0); snprintf(ans, 20, "%f", myf); std::cout << "ans->" << ans << std::endl; return 0; } [/code]
Re: Convert a float to a string - need a simple helper function
Programming
Software Development
13 Years Ago
by Morbane
OK - I came up with this: [code] char *ftostr(float myfloat) { char ans[20]; snprintf(ans, 20, "%f", myfloat); return ans; } [/code] And I call it like this: [code] char *sNum = ftostr(fNum); SetDlgItemText(hwndDlgM, IDC_CONVERTION, sNum); [/code] It all compiles but I ran into another problem. That is for another thread …
Re: Creating a Recursive Strcpy Function
Programming
Software Development
13 Years Ago
by mike_2000_17
…you? The point of overloading is not to have a
helper
function
while not needing to come up with some alternative name…. When you define a
helper
function
, which is only meant to be called by the &…what you really want is to "hide" that
helper
function
away from user-access (out of your interface). For that…
Re: Family Tree scheme function
Programming
Software Development
16 Years Ago
by MidiMagic
You need a
helper
function
to get it started. Put your current code in the
helper
function
, and then have the main
function
call the
helper
function
on each parent WITHOUT testing the starting person.
Re: need help with c++ recursive function
Programming
Software Development
15 Years Ago
by VernonDozier
… few lines of comments in there explaining exactly what the
function
does and what it requires. At the minimum, you… think you need to provide the original call to this
function
, with the initial arguments, the board[][] array, and the… false. Basically I'm wondering if there is some
helper
function
somewhere that does work, which then calls this…
Re: Card randomize function
Programming
Software Development
14 Years Ago
by jonsca
… the value. Output can be placed in a "
helper
"
function
where you pass in card and house and you get…
Re: Calling a function within REGEX
Programming
Software Development
12 Years Ago
by Gribouillis
You must use a
helper
function
which takes a match object as argument [code=python] def sub_helper(match): return SOME_FUNCTION(match.group(1)) output = re.sub(r'blah blah blah(\d+)', sub_helper, string) [/code]
Function not able to clall on server
Programming
Software Development
10 Years Ago
by ankit.baphna
… is not able to make call to this
function
it seems. This behaviour is only after I… my site on server. On localhost this
function
module is getting call with same code. This…classes\libchart.php'); Could you tell me why
function
module is not gettin call on my server … to upload my files here so if any
helper
needs to look into file please send me…
Re: Build a function.
Programming
Software Development
8 Years Ago
by rubberman
… defined as type and it isn't used in the
function
, and further b and c that are used there are…
Re: ci pagination helper
Programming
Web Development
10 Years Ago
by veedeoo
… (in model's constructor if necessary). public
function
__construct(){ $this->load->library('YourpaginationClassName');… so we have to load the url
helper
function
by placing it just above the pagination … /2 or /++i public
function
__construct(){ $this->load->
helper
(array('url')); $this->…
Re: Is this a good function...
Programming
Software Development
13 Years Ago
by mrnutty
I think he means to [i]delete tail[/i]. @OP: during a list implementation you will have a lot of transversal and deletion code, for that you might want to make a
helper
function
to make your functions clearer. Also your code doesn't work if there is only 1 element, where the head and the tail point to the same element.
update mysql table using javascript
Programming
Web Development
14 Years Ago
by zido85
… friends when dragged. hmmm how do I do that? .draggable({
helper
:
function
(){ $clicked = $(this); if( ! $clicked.hasClass('dds_selected') ){ //trigger the click…
having trouble with binary search tree delete please help
Programming
Software Development
14 Years Ago
by lotrsimp12345
… private: my_bst_node<KT,DT>* root; //
helper
function
of insert void insert(my_bst_node<KT,DT>*&…my_bst_node<KT,DT>*& f); //
helper
function
of inorder print void inorder_print(my_bst_node<KT…,DT>*& g); //
helper
function
of postorder print void postorder_print(my_bst_node<KT…
Re: Student help: Binary tree / BST implementation
Programming
Software Development
14 Years Ago
by lotrsimp12345
…(my_bst_node<KT,DT>*& f); //
helper
function
of inorder print void inorder_print(my_bst_node<KT,DT…>*& g); //
helper
function
of postorder print void postorder_print(my_bst_node<KT,DT…<KT,DT>* t, int height); //
helper
function
of show void printLevelOrderAux(my_bst_node<KT,DT>*…
CodeIgniter update function
Programming
Web Development
8 Years Ago
by LibraryCode
…; $this->load->view('messagePage',$data); } }
function
getAuthorByID(){ $this->load->
helper
('form'); if($this->input->post('submitAuthorID…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC