COIN-OR::LEMON - Graph Library

Changeset 143:c3b45bb643b0 in lemon-main for demo


Ignore:
Timestamp:
04/22/08 18:12:40 (17 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Resolve several MSVC related compilation problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • demo/lgf_demo.cc

    r127 r143  
    3838int main(int argc, const char *argv[]) {
    3939  const int n = argc > 1 ? std::atoi(argv[1]) : 20;
    40   const int e = argc > 2 ? std::atoi(argv[2]) : static_cast<int>(n * log(n));
     40  const int e = argc > 2 ? std::atoi(argv[2]) : static_cast<int>(n * std::log(double(n)));
    4141  const int m = argc > 3 ? std::atoi(argv[3]) : 100;
    4242
Note: See TracChangeset for help on using the changeset viewer.