set regex
This commit is contained in:
parent
54d4c86867
commit
5e8a30937f
1 changed files with 9 additions and 1 deletions
|
|
@ -9,8 +9,16 @@ using namespace std;
|
||||||
int main(int argc, char const *argv[])
|
int main(int argc, char const *argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
ifstream puzzle("puzzleInput", ifstream::in);
|
ifstream puzzle("puzzleInput", ifstream::in);
|
||||||
|
|
||||||
|
if(!puzzle){
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
//regex
|
||||||
|
regex regexToSearch("(mul\(\d+,\d+\))")
|
||||||
|
|
||||||
string line;
|
string line;
|
||||||
while (getline(puzzle, line))
|
while (getline(puzzle, line))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue