Posts

Showing posts from June, 2015

Shutdown and Restart your PC by opening a shortcut file

Image
This post explains about a technique by which you can create a shortcut file on a relevant place in your PC and then just open that file to SHUTDOWN OR RESTART your PC respectively. To do that Just follow the following steps: Note : - Here we have chosen the place to create shortcut on desktop(which is recommended), but you can create it any where on your PC. First, create a shortcut on your desktop by right-clicking on the desktop, choosing New, and then choosing Shortcut.  The Create Shortcut Wizard appears. In the box asking for the location of the shortcut, type shutdown. After you create the shortcut, double-clicking on it will shut down your PC. But you can do much more with a shutdown shortcut than merely shut down your PC. You can add any combination of several switches to do extra duty, like this: shutdown -r -t 01 -c "Rebooting your PC" Double-clicking on that shortcut will reboot your PC after a one-second delay and display the message

Episode 1: The Stranger

The Resurrection   (Time will reveal everything) (Mini web series) Episode 1: The Stranger You don’t need to know, what my name is, or who am I actually! All you need to know is the story I am about to share with you all. The story that matters, and the story that needs to be told! We know that sometimes, some things happen with some people that are actually unbelievable, strange and eccentric and this story is no different. These things or the series of events, change us for the better or worse, and decide who we become. So, assuming that you are ready to believe whatever I say and believe the not so obvious, I present to you the story of the unbelievable!! ‘C’mon, Abhay, make it fast buddy,’ a voice called him from the other side of the road.

Decision making and branching(Goto, switch, conditional operator)

In our previous post on C we discussed about the decision making and branching in C using various If-else statements and some programs related to it. Here in this post we are going to explain some other ways of decision making and branching which are very much useful in some programs which are menu driven or do not want to have big logic of loops, but still want a simple loop using a branching statement. As we have already discussed in our previous post that what is decision making and branching in C and what are various IF-else statements provided in C, I will explain some of the more usable options provided in C: The Switch statement The goto Statement The conditional operator These three branching and decision making statements are often used by the programmers. The switch statement provides the user a way to drive the program in a menu driven list, it gets a value from the user and chooses one particular case to be executed on that value. The goto statement