Buckys C++ Programming Tutorials - 59 - function Templates with Multiple Parameters
Top Comments
All Comments (37)
-
i never used them, many ppl say they complicate all the source and using them a lot
makes the code compile much slower,
if i need a class as an argument i'd use abstract class with a pointer to children,
or overload function by self
templates just do the overload for us
-
@devilazpl true, but if had a class as a parameter for example, it'd be different, you can't convert a pointer to a class to another and that's where templates comes in handy!
-
just make a function that gets floats, and it doesnt matter if it return int, or doubles
-
2000 kid :P
-
Beautiful!!!
Easy to understand. Thank you very much.
-
Nice one bucky,clear enough,great job man,..btw..have you created tutorails for visual c++ regarding user forms?
-
o.o you kids are like 12? teh hell?
-
97 BIATCH! ^^
Finally starting to piece this all together, made a fully working basic calculator that can add, multiply, divide and subtract two numbers with user input using cin, using switch statements and function templates with multiple parameters. Thank you Bucky. Been said a 10000000 times but you make programming so easy.
fifaismygoal 6 months ago 9
You're all noobs, I'm a 93' kid.
KholdAxe 9 months ago 6