Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / main.cpp
diff options
context:
space:
mode:
1 files changed, 3 insertions, 2 deletions
-rw-r--r--JSImpl/src/main.cpp5
diff --git a/JSImpl/src/main.cpp b/JSImpl/src/main.cpp
index f3eb90a..a10e4d1 100644
--- a/JSImpl/src/main.cpp
+++ b/JSImpl/src/main.cpp
@@ -3,6 +3,7 @@
#include "ASTPrinter.h"
#include "ASTInterpreter.h"
#include <iostream>
+#include <cstring>
void RunParseCalc()
{
@@ -42,11 +43,11 @@ void InteractiveInterpreter()
do
{
std::cin.getline(command, 1000);
- if (strcmp(command, "exit") == 0)
+ if (std::strcmp(command, "exit") == 0)
{
break;
}
- if (strcmp(command, "print") == 0)
+ if (std::strcmp(command, "print") == 0)
{
i.Print(p);
continue;