error C2065: 'count' : undeclared identifier
error C2143: syntax error : missing ';' before '{'
Kod: Tümünü seç
#include <iostream>
#include <string>
#include <windows.h>
using namespace std;
int main()
{
string input;
cout << "Enter \"L\" for Blocking and \"U\" for Unblocking "<< endl;
cin >> input;
input = tolower(input[0]);
if(input=="1")
{
system("color c");
system("Netsh interface ip set dns \"Local Area Connection\" static 208.67.222.123");
system("Netsh interface ip set dns \"Local Area Connection\" index=2 208.67.220.123");
count << "Protection is ON" << endl;
system("Pause");
}
else if(input=="u")
{
system("color a");
system("Netsh interface ip set dns \"Local Area Connection\" static 8.8.8.8");
system("Netsh interface ip set dns \"Local Area Connection\" index=2 8.8.4.4");
count << "Protection is Off" << endl;
system("Pause");
}
else
{
main{};
}
}