You're right, of course.. thanks muchly for pointing that out :)
I may have known that at some point but I've only ever used templates twice before, and I haven't actually been doing much coding...
Type: Posts; User: Cobras2
You're right, of course.. thanks muchly for pointing that out :)
I may have known that at some point but I've only ever used templates twice before, and I haven't actually been doing much coding...
I got mine from www.thinkgeek.com ... I wanna get another one, or maybe one of the other techie shirts, once I have some money :)
See also the Jargon File entry on "Geek":...
Why? I always thought putting all your code in header files was bad form (and still do). What's the point of ever using cpp files if you can just put it all in a header file?
(note to anyone who...
You might wanna look into SDL ( http://libsdl.org )
This is true to a certain extent. However, there are sometimes concerns that go beyond the current usability of a language - and whether or...
hmm.. I thought .NET had at least as good support for C++ as it does for C#.
However, I know little about it. I do know though, that anything that looks simple just has a whole lot of complexity...
I'm a CS student too, and here's what I know from knowledge gained in my algorithms course (using "A Practical Introduction to Data Structures and Algorithm Analysis" by Shaffer) + common sense...
thetemplate.h:
template<typename X>
class temp {
public:
temp();
};
drat, I should have checked back here more recently and then I wouldn't have gone and made my own function instead.. it looks like Octave may actually have what I am looking for, but in the meantime,...
So, basically, you are saying, do your own conversions if the data isn't in a good format, rather than trying to use a typecast?
woohoo! excellent, this looks like just what I need. I checked the GNU site for a library like this, but I didn't find it. Thanks :)
one way to do it would be to create a new string, copy everything you want to keep into the new string, and then either get rid of the old string, or replace the old one with the new one.
String...
try
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/regcreatekeyex.asp
or...
do you mean SDL ?
http://www.libsdl.org/index.php
I think you're supposed to be passing the *union* to the function, not each of the contents of the union. so like Quzah said, instead of the way you have it above, do this:
void...
Well, Athabasca University still uses void main() in their assignments, as of 2005 :-/
I was a little surprised to see that was the case, but there you go. I guess the teachers don't know...
try
http://www.cprogramming.com/tutorial.html
or the links on the left hand side when you go to
http://www.cprogramming.com
Is there an advanced math library for linux, something that would include functions for working with a standard normal distribution?
The reason I ask is that I want to make a function something...
www.anjuta.org
it's actually mainly designed for use with GNOME rather than KDE, but is fairly similar to KDevelop - i'd suggest trying it and seeing for yourself if you like it any better/worse :)
Try looking around at Cygwin, or DJGPP, or just go to the GNU main site (www.gnu.org) - they have some of what you would probably need there (remember GNU stuff doesn't only run on *nix - they have...
as a side note totally unrelated to this current post, I still think someone ought to make it so smilies are disabled inside code brackets
Ok, I can see how that would be usefull - of course the only question remaining in my mind is, why anyone would be naming things in their own libraries the same as the standard functions.. (don't...
Well, it all still seems a little pointless to me (after all, if it's standard, why have it locked inside a namepsace wherein you have to unlock each piece before you can use it?) but I suppose I'll...
Ok so I got a question. Why do a bunch of the very strict advocates of standard everything (among which I agree, by the way - standard makes things easier) always put std:: in front of everything??
...
once you are "using namespace std" you don't have to put it at the start of each cout etc, it's redundant - and afaik u don't need the (void) after main either - just make it "int main()"
but...
no, records[int] should still work just fine
just remember to delete it when you're done and you should be fine.
see also:...