MCPcopy Create free account
hub / github.com/Arash-codedev/openGA / MySolution

Class MySolution

examples/iga-colors/iga-colors.cpp:9–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include <fstream>
8
9struct MySolution
10{
11 double R,G,B;
12
13 std::string to_string() const
14 {
15 const unsigned red = (unsigned)R;
16 const unsigned green = (unsigned)G;
17 const unsigned blue = (unsigned)B;
18 char hexstr[16];
19 snprintf(hexstr,sizeof(hexstr),"%02x%02x%02x",red,green,blue);
20 std::string retstr=hexstr;
21 return retstr;
22 }
23};
24
25struct MyMiddleCost
26{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected