4 Discussion / Question Topics

Remove Filter
Member Avatar for vijayan121

Question posed by josolanes: [quote]I looked at your thread here: [url]http://www.daniweb.com/forums/thread88255.html[/url] from a couple years back And I'm starting to get a grasp of your first post. I understood how to do the factorial struct really quickly, but the _if and _for statements still make me feel uneasy, though I …

Member Avatar for josolanes
1
170
Member Avatar for vijayan121
Member Avatar for vijayan121

there seems to be nothing much happening in the c++ forum today. so here is something to chew on for programmers who are relatively new to templates: c++ can also be used as a metalanguage. [code=cplusplus]#include <iostream> using namespace std ; // compile-time computation of fibonacci numbers template < int …

Member Avatar for Bench
1
451
Member Avatar for vijayan121

variations of this are being posted repeatedly here. hope this will clarify things once and for all. [code=c] // to choose a random element from a sequence when // a. you do not know how many elements are there before hand // b. you want to make one single pass …

Member Avatar for vijayan121
0
240

The End.