MANAGE ORDERS | LOGIN | ORDER NOW

PROGRAMMING

Posted by:Prof. Lexx Posted on:Jul 6,2016

  • [maxbutton id=”1″]
  • Download and install the appropriate C++ development software based on your operating system as specified in the announcements and Instructor Guidance.

 

Depending on your operating system, you may need to download and run alternate software. XP users may need the following patch to get the Microsoft® Visual Studio® 2005 Express Editions Service Pack 1 software to run: Service Pack 1. Windows Vista and Windows 7 users are advised to download a similar opensource C++ program: DEV C++ by Bloodshed, instead of the software provided with the text.

 

The zip folder with the headers only need to be installed if you are installing Visual Studio.

Students using Visual Studio need to copy the zip file that provides the C++ libraries: Libraries.zip. Please read these Instructions on downloading the zip files to your hard drive.

 

As part of this exercise you will also use the sample code below to test the application, compile the code and communicate that your application was installed and working.

 

This is the sample code:

 

#include <iostream>

#include <string>

using namespace std;

 

int main()

{

string str1(“Alpha”);

string str2(“Beta”);

string str3(“Omega”);

string str4;

 

// assign a string

str4 = str1;

cout << str1 << “\n” << str3 << “\n”;

 

// concatenate two strings

str4 = str1 + str2;

cout << str4 << “\n”;

 

// concatenate a string with a C-string

str4 = str1 + ” to ” + str3;

cout << str4 << “\n”;

 

// compare strings

if(str3 > str1) cout << “str3 > str1\n”;

if(str3 == str1+str2)

cout << “str3 == str1+str2\n”;

 

/* A string object can also be

assigned a normal string. */

str1 = “This is a null-terminated string.\n”;

cout << str1;

 

// create a string object using another string object

string str5(str1);

cout << str5;

 

// input a string

cout << “Enter a string: “;

cin >> str5;

cout << str5;

 

system(“pause”);

return 0;

}

 

The code above is a simple program that will output some string statements and then ask for one input and close after you enter text and then hit enter.

Try to change the text once you are successful and rename your source file. Play around with the strings. Report your experience and your efforts to the discussion board.

  • [maxbutton id=”1″]

Prof. Lexx

Overview I have a Bachelor of Arts, majoring in English and minoring in History. I have worked in various fields ranging from academic research to freelance translating to editing to customer support and data entry. These include editing my old university's newspaper as well as co-leading their creative writing team; serving as a junior member in the history department's research network; publishing music and film reviews for several different magazines and webzines; and translating papers and books for numerous researchers in various languages, including Russian, Spanish, and Romanian. I am also a skilled typist, with a rate of at least 70 words per minute, and have myself digitized dozens of books and essays for both private and commercial use. I have a very strong work ethic, and make sure to prioritize the task I am given so that it is completed as quickly as possible. I am organized and disciplined, ensuring a job done professionally and efficiently.

    I have a background of 8 years in writing profession and currently pursuing also as an editor and proofreader. I have a knack for writing and thus, it was obvious to enhance my skills and serve others. Currently joined ‘Member of Association of Professional Writers and Editors’ a

    Pro Alex
    USA