www.flickr.com

String Initials in C++

Monday, November 7, 2011 Posted by Glenn

#include "iostream.h"
#include "conio.h"

using namespace std;
int main(void)
{
string f,m,l;
//string testing..getting the initials
cout<<"ENTER YOUR FULL NAME (first middle and lastname)";
cin>>f>>m>>l;
string initals = f.substr(0,1)
+ m.substr(0,1) + l.substr(0,1);
cout<<"Your initials are: "<

glenn von

Author: Glenn Posadas

20 year old 5th year Computer Engineering Student, a blogger, photographer, programmer, and an electronics hobbyist; a Christian who loves God very much..

Sharing is so Easy:
StumpleUpon DiggIt! Del.icio.us Blinklist Yahoo Furl Technorati Simpy Spurl Reddit Google Twitter FaceBook

Labels: ,

Post a Comment

Drop a comment. Thank you guys!