Wednesday 10 September 2014

How to reverse each letter of word of a string


C++ is an amazing language. Those who have learnt it consider it to be most easiest languages. Everything and every program which you can think of can be made on C++.
Its not that I have learnt it so I am saying it's a fact and no one cab deny it. Here when we (The Best within Everything) have reached 7K visitors till now I had thought of expanding the scope to C++ as well.

Here now onwards the difficult programs of C++ which I'd be encountering will be published with tag C++.

How to reverse each letter of word of given string?

This program uses only three loops and 4 variables.
Anyone have a better code us invited to write on our blog

#include<iostream.h>
#include<conio.h>
#include<stdio.h>

void main()
{
 clrscr();
 int i,j,k,l;
 char str[101];
 i=0;
 j=0;
 cout<<"Enter a String: ";
 gets(str);
 cout<<" \n";
 for(l=0, k=0; str[k]!='\0';l++,k=i+1)
 {
   for(i=k; str[i]!=' 'i+=1);
   for(j=i-1; str[j]!=' '||j>=0; j-=1)
   {
     cout<<str[j];
    }
   cout<<" ";
 }
getch();
}



Thursday 4 September 2014

More about Facebook Messenger

The Best Features of Facebook Messenger

You're Probably Not Using


Facebook took a lot of flak for making its standalone Messenger app mandatory. Many feel (myself among them) that a standalone app for messages is unnecessary. Even so, that doesn't make it a bad app, or not useful in its own way. Here are some of the best features of Facebook Messenger that make it worth using.



Take Pictures or Video Instantly with the Built-In Camera

The Best Features of Facebook Messenger You're Probably Not Using
Taking pictures with a camera shouldn't really be that novel of a feature. However, the Messenger app embeds a small (but expandable) viewfinder in the keyboard section of the app itself. You can use either the front or rear camera and tap the send button to snap a picture–or hold it to take a video–without actually leaving the app. This even works in chat heads so you can take pictures from Facebook Messenger anywhere in the OS.

Image Search Shares Pictures From the Web

The Best Features of Facebook Messenger You're Probably Not Using
Finding pictures from the web and sharing the link is kind of a pain on mobile. It's not impossible, but it can mean jumping between two or three different apps. In Facebook Messenger, you can access Image Search from the drop down menu. Enter a search term and you'll see a list of image results. Just tap one to send it to your message recipient.

Use the Location Feature to Quickly Show Where You Are

The Best Features of Facebook Messenger You're Probably Not Using
Location sharing isn't exactly a high priority on most people's list. However, when you're trying to meet up with friends, temporarily sharing your location can help. Simply enable location for a particular message and it will be tagged with where you are. The other person you're talking to can then press "View Map" on the menu.

Send Quick Audio Notes and Eliminate Voicemail

The Best Features of Facebook Messenger You're Probably Not Using
Sometimes you just need to say something out loud. While voice transcription has made it easier to dictate text messages, you can still share audio clips pretty quickly. Tap the microphone and you'll be presented with a little red button. You can hold down the button to record an audio clip. It will send immediately as soon as you're done. You can also use Messenger for two-way voice calls.



Use Pinned Group Chats to Find Mass Messages Easier

The Best Features of Facebook Messenger You're Probably Not Using
Group chats are a great way to communicate with a bunch of people at once. Facebook even has one of the better methods for doing so. However, finding an old group chat on the web (or even the old Android app) isn't exactly intuitive. Group chats are typically lumped together with regular chats, so finding them later is a pain. Not so on mobile. Group chats get their own special tab, and you can even pin favorite chats to the top so you never lose them.