2012/7/19-11/7 [Computer/SW/Languages/C_Cplusplus] UID:54439 Activity:nil | 7/19 In C or C++, how do I write the code of a function with variable
number of parameters in order to pass the variable parameters to
another function that also has variable number of parameters? Thanks.
\_ The usual way (works on gcc 3.0+, Visual Studio 2005+):
#define foo(fmt, ...) printf(fmt, ##__VA_ARGS__)
The cool new way (works on gcc 4.3+):
...
|
2004/10/29-30 [Computer/SW/Languages/C_Cplusplus] UID:34449 Activity:very high | 10/29 C++ is so freaking BROKEN. Augh!
\_ Just use C.
\_ Would if I could.
\_ No, you are. C++ works just fine, and far better than C for many
purposes.
\_ C vs. C++. FIGHT!!!
...
|
2004/4/13-14 [Computer/SW/Languages/C_Cplusplus] UID:13175 Activity:high | 4/13 How much C++/C knowledge do recent Berkeley CS/EECS grad have?
\_ Class CSGrad inherits FromDaddy and does not implement C++Knowledge
very well.
\_ funny. just the rich and poor as always. the middle class can't
afford education.
\_ They know how to deal with pointers and addresses, malloc and free.
...
|
2004/3/30-31 [Computer/SW/Languages/Perl] UID:12925 Activity:kinda low | 3/17 In Perl, how do I make variables have static types and type check
for valid parameter/actuals? I realize that variables are untyped
in Perl ($var can be 0.001 or "hello") but I'd like to have more
strict checking so that errors would be caught ahead of run-time,
Thanks, -java guy
\_ use java. Seriously. You don't use perl if you want strong
...
|
2000/11/21 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Languages/Java] UID:19871 Activity:very high | 11/21 All java class inherites from class *Object*, if I have three classes
A, B, and C all have one same method showErr(). If I want to have a
function that can call showErr() depending on the object that I passed
in, eg.
public void handleErr(Object o) {
o.showErr();
...
|
|