« Previous entry | Next entry » Browse > Bad code
Skip to comments (5)
name program
Posted by Derek on Jul 02 2007 @ 23:59 :: 1241 unique visits
#include <cstdlib>#include <iostream>
#include <string>
using namespace std;
//This program is supposed to output like this
//James
// Tiberius
// Kirk
// JTK
const string first = "first name";
const string middle = "middle name";
const string last = "last name";
int main(int argc, char *argv[])
{
string first;
string middle;
string last;
string fml;
cout << "Enter a name in the format First Middle Last:";
cin >> first;
cin >> middle;
cin >> last;
cout << first << endl;
cout << middle << endl;
cout << last << endl;
system("PAUSE");
return EXIT_SUCCESS;
}
1. On Jan 03 2008 @ 15:54 guest wrote:
<img>hjhjhj