R
RaymondH2OS
Guest
I'm creating business cards and I want have two columns with 5 cards. This is what I have so far. I am still new to c++ so if anyone could tell me what I should start looking into it in order for me to make this possible.
// Business Cards
#include <iostream>
#include <string>
using namespace std;
const string NAME = "John Smith"; // String for name
const string ADDRESS = "1234 Road Street City, CA"; // String for address
const string NUMBER = "(123) 456-7890"; // String for phone number
const string EMAIL = "name@gmail.com"; // String for email address
const string LINE = "____________________________________"; // String to create a clean line seperating the business cards
int main()
{
cout << LINE << endl; // Line for business card
cout << NAME << endl; // Line for displaying name
cout << ADDRESS << endl; // Line for displaying address
cout << NUMBER << endl; // Line for displaying number
cout << EMAIL << endl; // Line for displaying email
cout << LINE << endl; // Line for business card
cout << NAME << endl; // Line for displaying name
cout << ADDRESS << endl; // Line for displaying address
cout << NUMBER << endl; // Line for displaying number
cout << EMAIL << endl; // Line for displaying email
cout << LINE << endl; // Line for business card
cout << NAME << endl; // Line for displaying name
cout << ADDRESS << endl; // Line for displaying address
cout << NUMBER << endl; // Line for displaying number
cout << EMAIL << endl; // Line for displaying email
cout << LINE << endl; // Line for business card
cout << NAME << endl; // Line for displaying name
cout << ADDRESS << endl; // Line for displaying address
cout << NUMBER << endl; // Line for displaying number
cout << EMAIL << endl; // Line for displaying email
cout << LINE << endl; // Line for business card
cin.get();
return 0;
}
Continue reading...
// Business Cards
#include <iostream>
#include <string>
using namespace std;
const string NAME = "John Smith"; // String for name
const string ADDRESS = "1234 Road Street City, CA"; // String for address
const string NUMBER = "(123) 456-7890"; // String for phone number
const string EMAIL = "name@gmail.com"; // String for email address
const string LINE = "____________________________________"; // String to create a clean line seperating the business cards
int main()
{
cout << LINE << endl; // Line for business card
cout << NAME << endl; // Line for displaying name
cout << ADDRESS << endl; // Line for displaying address
cout << NUMBER << endl; // Line for displaying number
cout << EMAIL << endl; // Line for displaying email
cout << LINE << endl; // Line for business card
cout << NAME << endl; // Line for displaying name
cout << ADDRESS << endl; // Line for displaying address
cout << NUMBER << endl; // Line for displaying number
cout << EMAIL << endl; // Line for displaying email
cout << LINE << endl; // Line for business card
cout << NAME << endl; // Line for displaying name
cout << ADDRESS << endl; // Line for displaying address
cout << NUMBER << endl; // Line for displaying number
cout << EMAIL << endl; // Line for displaying email
cout << LINE << endl; // Line for business card
cout << NAME << endl; // Line for displaying name
cout << ADDRESS << endl; // Line for displaying address
cout << NUMBER << endl; // Line for displaying number
cout << EMAIL << endl; // Line for displaying email
cout << LINE << endl; // Line for business card
cin.get();
return 0;
}
Continue reading...