I am using visual studio 2013. I am just a Beginner. Trying to make a shutdown Program in c++.
its give the errors.
'Shutdown.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
'Shutdown.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
'Shutdown.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file.
'Shutdown.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp120d.dll'. Cannot find or open the PDB file.
'Shutdown.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120d.dll'. Cannot find or open the PDB file.
Application "\??\C:\Windows\system32\cmd.exe" found in cache
Application "\??\C:\Windows\system32\cmd.exe" found in cache
The program '[7592] Shutdown.exe' has exited with code 0 (0x0).
here is the code....
# include <stdio.h>
# include <stdlib.h>
# include "iostream"
using namespace std;
int main()
{
char ch;
cout<<"Do you want to shutdown your computer now(y / n) \n " ;
cin>>ch;
if (ch == 'y' || ch == 'Y')
system("C: \\ Windows\\System32 \\shutdown.exe");
else
cout << "Not Working";
system("pause");
return 0;
}