Skip to content
Snippets Groups Projects
Commit a0b39010 authored by Paula's avatar Paula :space_invader:
Browse files

Merge branch 'master' into 'master'

C++ small improvements: Use standard C++ headers and specify this version is C++ and not C

See merge request !3
parents 220b8fdf c3927fa8
No related branches found
No related tags found
1 merge request!3C++ small improvements: Use standard C++ headers and specify this version is C++ and not C
......@@ -9,7 +9,7 @@ It uses a **simple genetic algorithm** and saves the guessings of a **desired fi
## Compile and use:
```
$ g++ jockpass.c -o jockpass
$ g++ jockpass.cpp -o jockpass
$ ./jockpass {pass} {fitness}
```
......
// C++ program to create target string, starting from
// random string using Genetic Algorithm
#include <bits/stdc++.h>
#include <iostream>
#include <vector>
#include <fstream>
#include <string>
#include <algorithm>
using namespace std;
// Number of individuals in each generation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment