Skip to content

Commit

Permalink
Add missing main() function explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Mar 12, 2015
1 parent 8537c6f commit fc706c9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/basic_concepts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,18 @@ for problems without subtasks. For problems with subtasks:
}, {1, 3});
}

Main function
*************

After specifying problem and generator, write the **main()** function as follows:

.. sourcecode:: cpp

int main() {
Generator gen;
return gen.generate();
}

Compiling generator program
---------------------------

Expand Down

0 comments on commit fc706c9

Please sign in to comment.