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+):
...
|
2007/9/20-22 [Computer/SW/Languages/C_Cplusplus] UID:48130 Activity:kinda low | 9/20 Is there a way in Twiki to have children inherit settings from a
parent? I know there is a WebTopicEditTemplate which you can use
for an entire Web, but what I want is to be able to have all of
the children under a given topic automatically be populated with
a template of settings when created. Is there a way to do that?
Right now I copy and paste my settings each time and not only does
...
|
2007/7/20-22 [Computer/SW/Languages/C_Cplusplus] UID:47355 Activity:nil | 7/20 I was handed a templeted code that builds with gcc3.3.3 but not 3.4.4.
I'm not all that hot with templetes, so I'm having trouble figuring
out what's wrong. The error I get is:
TxBoundedFunctor.cpp:29: error: `template<class RetType, class ArgType>
class TxFunctorBase' used without template parameters
where TxBoundedFunctor extends TXFunctor extents TxFunctorBase. Like so:
...
|
2006/11/2-4 [Computer/SW/Unix] UID:45107 Activity:low | 11/02 I need to include instructions on how to create a tcpdump file as part
of a Word Doc testplan . What I would like to do is to be able to cut
and paste from a Unix shell window into a word document without
losing the formatting or having it come out like regular text.
Is there a template or mode I can use for this inside word?
--Thanks Stressed out linux hacker
...
|
2013/4/29-5/18 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Compilers] UID:54665 Activity:nil | 4/29 Why were C and Java designed to require "break;" statements for a
"case" section to terminate rather than falling-through to the next
section? 99% of the time poeple want a "case" section to terminate.
In fact some compilers issue warning if there is no "break;" statement
in a "case" section. Why not just design the languages to have
termination as the default behavior, and provide a "fallthru;"
...
|
2012/8/29-11/7 [Computer/SW/Security] UID:54467 Activity:nil | 8/29 There was once a CSUA web page which runs an SSH client for logging
on to soda. Does that page still exist? Can someone remind me of the
URL please? Thx.
\_ what do you mean? instruction on how to ssh into soda?
\_ No I think he means the ssh applet, which, iirc, was an applet
that implemented an ssh v1 client. I think this page went away
...
|
2011/4/16-7/13 [Computer/SW/Languages/Python] UID:54086 Activity:nil | 4/16 Whoa, I just heard that MIT discontinued 6.001 (classic scheme)
to 6.01. In fact, 6.00, 6.01 and 6.02 all use Python. What the
hell? What has the world become? It's a sad sad day. SICP forever!
\_ old story, they've ditched that shitty book and lang for a while.
\_ I used to think scheme was cool, then I saw Ka Ping Yee's
"Beautiful Code" class aka 61a in python, and converted.
...
|
2011/2/24-4/20 [Computer/SW/Languages/Java] UID:54048 Activity:nil | 2/24 Go Programming Language. Anyone here use it? It kind of
reminds me of java-meets python, and well, that is fitting given it's
a GOOG product. What is so special about it?
\_ as I understand it, it's a suitable OOP-y systems language with more
structure than C, less complexity than C++, and less overhead than
Java/Python.
...
|
2010/8/8-9/7 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Languages/Web] UID:53914 Activity:nil | 8/8 Trying to make a list of interesting features languages have
touted as this whole PL field comes around, trying to see if they
have basis in the culture of the time: feel free to add some/dispute
1970 C, "portability"
1980 C++, classes, oop, iterators, streams, functors, templates
expert systems
...
|
2009/12/5-26 [Computer/SW/Languages/Java] UID:53569 Activity:nil | 12/4 what do people have their JAVA_HOME's set to on soda?
\_ don't. are you trying to get sun java? It is installed, but not
the default. check dpkg -l and dpkg -L
\_ I'm trying to run maven to get scala/lift.net working
properly and it's complaining that JAVA_HOME is not set.
\_ you probably want one of the directories in /usr/lib/jvm,
...
|
2009/8/7-14 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Languages/Java] UID:53252 Activity:high | 8/6 In C one can do "typedef int my_index_t;". What's the equivalent in
C#? Thanks.
\_ C#? Are you serious? Is this what the class of 2009 learn?
\_ No. I have to learn .NET code at work. I am Class of '93.
\_ python is what 2009 learns, see the motd thread about recent
cal courses and languages
...
|
2009/7/21-24 [Computer/SW/Languages/Java] UID:53168 Activity:moderate | 7/20 For those who care btw, it looks like eclipse is now A Standard Tool
at UCB ugrad cs, probably replaced emacs. Furthermore, people get
angry at seeing Makefiles, (since eclispe takes care of that). I
guess it's just a sign of the times.
\_ The more people at my work use eclipse the less the code is
managable in emacs. I'm not sure which application's fault
...
|
|