Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
How to check a type of template?
Name: VaN Date: June 29, 2003 at 16:16:41 Pacific OS: Win XP Pro SP1 CPU/Ram: Athlon 2200+
Comment:
For instance, I have a template subprogram like this:
template void functionA { ... }
I have 3 different custom classes which I pass as arguments to the function above, and the function is supposed to perform slightly differently depending on what class is being passed.
I tried if (T = = myClass) but apparently it didn't work. While we are on it, how can I identify the data type of argument a? Also, please don't make fun of me if this question sounds silly, I'm a beginning programmer =)
Summary: Hi all. I'm trying to implement a C++ class template which inherits it's own parameter, using the following code: // ifndef, define, includes and everything template<class T> class C: public T { ...
Summary: hey guys..in qbasic i'm wondering..well i'm going crazy trying to figure out how to find the sum of a 4 digit code...example 1111 =4 1234 = 10 i dont want to assign each digit a variable like print"...
Summary: I am just begining to learn about batch files and am starting out very easy. Is there any way to run a check on a batch file to show where you went wrong in the programing. I am working on a batch fil...