Hmm, I see. Well, I doubt I'll have to parse absolutely everything, just enough to do code analysis on a code base of roughly 100k SLOC.
From what you said though, it sounds like actually getting...
Type: Posts; User: underthesun
Hmm, I see. Well, I doubt I'll have to parse absolutely everything, just enough to do code analysis on a code base of roughly 100k SLOC.
From what you said though, it sounds like actually getting...
I forgot to mention, I have two semesters (a year) and the promise of 100% grade for this. Well, if it does what I want it to do, that is. That, and I don't have to attend much classes as opposed to...
So for a university project I'm thinking of writing a c++ parser for analytical purposes.
Now, there are open-source parsers that can do this (clang and g++'s parser, but only the former can...
Thanks, understood :D
If a function returns a class (not as a reference/pointer), are destructors called for the stuff on the stack?
class Bwah{
public:
int x;
Bwah():
x(0) {}
Hmm, looks like there's not much I can do then.. I'm only doing this for one series at a time. I am using FFT (in particular kiss fft) but for an unrelated set of operations..
thanks
:o that was very informative, both of you. thanks :D
I actually tested it on the platform I was working on, and it turns out that the difference, if there's any, is really minimal.. like almost...
so, I've got this for loop which does a really simple thing:
for(i = 0; i < 4096; i++){
int sineindex = i % 16;
total += soundsamples[i] * sinetable[sineindex];
I just want to confirm.. time.h (as in, true date&time services) don't use clock ticks to calculate the current time right?
For example, getting the cpu ticks using the linux kernel (or windows or...
I'm building an interactive visual query system for proteomic data (in layman's terms, biological data), and a lot of the data has things that can be searched for. Sometimes the words that can be...
Wait, you mean there's a way to search for "romoolus" when you enter a search string "moo" using hash tables? Sorry, I should have made it clear that I'm looking for indexing for preparing for...
Well, since there's no forums for algorithms questions..
Actually, I'm in the middle of coding it, but I thought someone might be able to tell me a better way to do this.
Basically, I have a...
whoops, that reply was late. Anyhow, yeah, you do learn something new everyday :) would be a nice trick question hahaha
Yeah, I thought that was a bit weird how he said it like that. That guy also said that void* is required to be able to contain the value of a pointer in any object.. anyhow I guess I'll start taking...
Hmm.. I see. Any idea on whether g++ supports this? I just went to IRC and some guy started saying that: pointers can be of different sizes. I'm hoping this can be known during compile time?
Suppose you made a really complicated template class, and you use it with many kinds of arg types. For example, set<Blah*>, set<Bloo*>, set<Moo*>, set<Mooya*> etc.
But all the arg types are...
that worked, thanks!
So, there's this bit of code:
class Package{
public: string name;
};
int main(){
Hmm.. care to explain that last bit? How exactly do I use value_type for automatically getting an iterator type given a map?
map<int, int> themap;
themap::iterator it; // <-- is this where...
I see.. even with combining a #define macro with for_each it will still need to know the type.. I guess it's probably good for type checking.
anyways thanks!
Is it possible to make a macro to loop through any kind of maps?
Normally, it's
map<int, string>::iterator it;
for(it = somemap.begin(); it != somemap.end(); it++){
// do schtuff
}
I was about to post this in the linux forum, but thought it might be better to go cross platform..
What is the best way to talk between programs? For example, suppose from the command line I...
Are you talking about the windows version? I don't mind using C I guess, as long as it's cross-platform and free. Any links to tutorials/resources etc?
Is this even available? A free (as in beer) c++ odbc library that is cross platform? How do most people use c++ and odbc these days anyways?
Was thinking of allowing
template <class M, label moo>
void do100times(M& m){
m.moo();
}
Then again you can probably do most of that with #define macros, except they seem a bit...