We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e70357f commit 4b398c3Copy full SHA for 4b398c3
TMBotStart/src/main.cpp
@@ -6,18 +6,20 @@ int main()
6
{
7
if (access("node_modules", F_OK) != 0)
8
9
- char choice;
+ string choice;
10
cout << "Requirement Not Found!" << endl;
11
cout << "Make sure you`re installed node.js and npm!" << endl;
12
cout << "Do you want to install requirement?(Y/n)" << endl;
13
cin >> choice;
14
- switch (choice)
+ if (choice == "n")
15
16
- case 'n':
17
exit(1);
18
- default:
19
- system("npm i");
20
}
+ else
+ {
+ cout << "Installing..." << endl;
21
+ system("npm i");
22
+ };
23
24
else
25
0 commit comments