Search:

Type: Posts; User: underthesun

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    2,343

    Hmm, I see. Well, I doubt I'll have to parse...

    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...
  2. Replies
    10
    Views
    2,343

    I forgot to mention, I have two semesters (a...

    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...
  3. Replies
    10
    Views
    2,343

    hardest part of parsing c++?

    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...
  4. Thanks, understood :D

    Thanks, understood :D
  5. returning a struct/class, and destructors

    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) {}
  6. Replies
    3
    Views
    1,043

    Hmm, looks like there's not much I can do then.....

    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
  7. Replies
    3
    Views
    23,853

    :o that was very informative, both of you. 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...
  8. Replies
    3
    Views
    1,043

    techniques for optimising a for loop..

    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];
  9. Replies
    3
    Views
    23,853

    clock ticks vs time.h

    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...
  10. Replies
    11
    Views
    1,757

    I'm building an interactive visual query system...

    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...
  11. Replies
    11
    Views
    1,757

    Wait, you mean there's a way to search for...

    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...
  12. Replies
    11
    Views
    1,757

    string indexing..

    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...
  13. Replies
    8
    Views
    1,388

    whoops, that reply was late. Anyhow, yeah, you do...

    whoops, that reply was late. Anyhow, yeah, you do learn something new everyday :) would be a nice trick question hahaha
  14. Replies
    8
    Views
    1,388

    Yeah, I thought that was a bit weird how he said...

    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...
  15. Replies
    8
    Views
    1,388

    Hmm.. I see. Any idea on whether g++ supports...

    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?
  16. Replies
    8
    Views
    1,388

    template code generation

    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...
  17. Replies
    5
    Views
    1,041

    that worked, thanks!

    that worked, thanks!
  18. Replies
    5
    Views
    1,041

    const Something*& != Something*& const ?

    So, there's this bit of code:




    class Package{
    public: string name;
    };

    int main(){
  19. Hmm.. care to explain that last bit? How exactly...

    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...
  20. I see.. even with combining a #define macro with...

    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!
  21. macro for looping through a templated map

    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
    }
  22. Replies
    1
    Views
    940

    talking between programs

    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...
  23. Are you talking about the windows version? 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?
  24. free c++ odbc library, that is cross-platform

    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?
  25. Replies
    19
    Views
    2,084

    Was thinking of allowing template

    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...
Results 1 to 25 of 109
Page 1 of 5 1 2 3 4