Run C++ in command prompt – Windows

It depends on what compiler you’re using. For example, if you are using Visual C++ .NET 2010 Express, run Visual C++ 2010 Express Command Prompt from the start menu, and you can simply compile and run the code. or from the regular command line, you can run vcvars32.bat first to set up the environment. Alternatively search for setvcvars.cmd (part … Read more

What is the ASCII Code of ½?

I want to print the value ‘½’ in a file. I searched for the ascii value of this as Alt+(ascii Value) will give you the same. To my surprise I found 2 ascii values for this symbol in various sites. One is 171 and the other is 189. I tried to write this symbol by … Read more

Can’t start hostednetwork

This happen after you disable via Control Panel -> network adapters -> right click button on the virtual connection -> disable To fix that go to Device Manager (Windows-key +x+ m on windows 8, Windows-key +x then m on windows 10), then open the network adapters tree , right click button on Microsoft Hosted Network Virtual Adapter and click on enable. Try now with … Read more

Compare 2 directories in windows

For Windows you can use this solution. Here’s the right way to do it, without the external downloads. It looks like a lot at first, but once you’ve done it, it’s very easy.It works in all Windows versions from 7 back to 95. For our example assume that you’re comparing two directories named ‘A’ and ‘B’. … Read more

How do I add the MinGW bin directory to my system path?

To change the path on Windows XP, follow these instructions, and then add the directory where you install MinGW plus bin. Example: if you install MinGW in C:\ then you have to add C:\mingw\bin to your path Just for completeness here are the steps shown on the link: From the desktop, right-click My Computer and click Properties. In the System Properties window, click on the Advanced tab. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)