Heh, C++ syntax is quite heavy. This program does a lot more than what the Perl/PHP scripts do, though. It could be done without using classes and just storing everything as a single strings and be less than 20 lines. In that previous one, it would read a file, store all the names and numbers, then sort them by last name. Here's one possible way(using libraries) Of course you could always use character arrays and do it, but that's more work than is needed, lol.
#include <iostream>
#include <map>
using namespace std;
int main(){
string name, number;
string namefind;
map<string, string> mymap;
cout << "ENTER YO NAME AND NUMBA CRACKA" << endl;
while(cin >> name >> number){
mymap.insert(pair<string,string>(name,number));
}
cout << "ENTER DA NAME OF DA GUY YOU BE WISHIN TO FIND" << endl;
cin >> namefind;
it=mymap.find(namefind);
cout << it->first << "'s number is" << it->second << endl;
}