User Profile

Collapse

Profile Sidebar

Collapse
Philia
Philia
Last Activity: Dec 5 '08, 09:06 PM
Joined: Dec 9 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Philia
    started a topic CHM library
    in C

    CHM library

    Hey,

    I have tried without much success to locate a non-commercial C++
    library that would allow me to create .chm files.
    Basicly all I need is to compile one directory of generated .html files to one .chm Can anyone recommend a good one? I'm not interested in freeware closed source programs.

    Thanks,
    Philia
    See more | Go to post

  • Philia
    replied to 'case column' in HAVING clause
    Yes, it works. Thank you rski. :)
    But for me it looks like way around the problem, is there a better way to do this?
    I'm migrating to postgres to speed up my aplication so I'm concerned about the speed of this query....
    See more | Go to post

    Leave a comment:


  • Philia
    started a topic 'case column' in HAVING clause

    'case column' in HAVING clause

    Hello,

    I'm having problem migrating to postgreSQL from MySQL, some of my queries does not work in postgres.

    Query(simplifie d):
    Code:
    SELECT t1.bus_stop, t1.time,
    (case when t1.time >2200 then t1.time + 10000 else t1.time END) AS sort_column
    FROM routes AS t1
    GROUP BY  t1.bus_stop, t1.time
    HAVING sort_column > 2200 ORDER BY sort_column  LIMIT 1
    Error:
    Code:
    ERROR:  column
    ...
    See more | Go to post

  • Philia
    replied to Sorting a vector of structs
    in C
    Thank you for reply.

    I made it this way:
    Code:
    class sorting
    {
    
    public:
    
        bool operator() ( const kurs & s, const kurs & t)
    
        {
    
            return s.wspolczynnik_sort < t.wspolczynnik_sort;
    
        }
    
    };
    ...
    Code:
    std::sort(kursy_2.begin(),kursy_2.end(),sorting());
    Hope it will be helpful to someone :)
    ...
    See more | Go to post

    Leave a comment:


  • Philia
    started a topic Sorting a vector of structs
    in C

    Sorting a vector of structs

    Hi there,

    I have struct like this one:

    Code:
    struct kurs
    {
    		unsigned short int var1;
    		string string_var;
    		int sort_var;
    };
    // and a vector like this one
    Code:
    vector < struct kurs> kurs_2;

    thing is that I want to sort a vector by sort_var.
    How can I do that?

    Regards,
    Philia
    See more | Go to post
No activity results to display
Show More
Working...