MCPcopy Create free account
hub / github.com/Gecode/gecode / parse

Method parse

examples/langford-number.cpp:56–62  ·  view source on GitHub ↗

Parse options from arguments \a argv (number is \a argc)

Source from the content-addressed store, hash-verified

54 : Options(s), k(k0), n(n0) {}
55 /// Parse options from arguments \a argv (number is \a argc)
56 void parse(int& argc, char* argv[]) {
57 Options::parse(argc,argv);
58 if (argc < 3)
59 return;
60 n = atoi(argv[1]);
61 k = atoi(argv[2]);
62 }
63 /// Print help message
64 virtual void help(void) {
65 Options::help();

Callers 1

mainFunction · 0.45

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected