Compile code and communicate that application was installed

Assignment Help C/C++ Programming
Reference no: EM131123893

Simplee c++ program

Programming

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.

Reference no: EM131123893

Questions Cloud

Fmv tax adjusted basis appreciation : Robert and Sylvia propose to have their corporation, Wolverine Universal (WU), acquire another corporation, EMU, Inc., in a stock-for-stock Type B acquisition. The sole shareholder of EMU, Edie Eagle, will receive $400,000 of WU voting stock in the t..
What french general was called the hero of two worlds : What French general was called the hero of two worlds, because he was prominent in both the American Revolution and the French Revolution?
Find the date of the maximum number of hours of daylight : Find the date of the maximum number of hours of daylight for cities at 40°N See Exercise 75 on page 314.
The research or the interpretation of data : In any project, there is a possibility that bias will creep into either the research or the interpretation of data. How would you prevent this from happening, depending on the research method you are using? What are the possible roadblocks to rec..
Compile code and communicate that application was installed : 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.
Find the velocity at which the part is moved after 5.0 s : find the velocity at which the part is moved after 5.0 s of each period.
Positive reinforcement case study : After reviewing the case study labeled "Level B Case 1" and the STAR sheets in Encouraging Appropriate Behavior, write a one- to two-page summary in which you:
Unification of most of modern day china under rule : China changed irreversibly in 1207 AD when what group of people began a 60 year conquest that saw the unification of most of modern day China under their rule?
What is the name given to the colored part of the human eye : What is the name given to the colored part of the human eye that controls how much light passes through the pupil

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Prefetching is a technique that leverages predictable

Prefetching is a technique that leverages predictable address patterns to speculatively bring in additional cache blocks when a particular cache block is accessed. One example of prefetching is a stream buffer that prefetches sequentially adjacent..

  Explain what the following code does

Explain what the following code does?

  Program that prompts the user to enter a test score

Write a complete C++ program that prompts the user to enter a test score. The test score must be greater than or equal to 0 and less than or equal to 100.

  Write a c function called resistance which reads adc channel

Write a C function called sensor to read the status of all sensors and return a single byte (short int) whose value is 0 if no sensor is active, 1 if the ‘core placed' sensor is active, 2 if the ‘winder' sensor is active, or 3 if the ‘test point' ..

  Implement class bankacct for bank of usq using bankacctcpp

implement class bankacct for bank of usq using bankacct.cpp and bankacct.h- the bsb for bank of usq at towoomba is

  Describe the chemical symbol of one of the elements

Write a program that reads a single character describing the chemical symbol of one of the elements H, C, N, O, F and prints the full name of the element.

  Create an application that has two heaps place a linked

create an application that has two heaps. place a linked list into each heap. select one hundred random numbers.

  Calculate the total as well as the average payment

Create a C++ application which will read a file of daily payments, calculate the total as well as the average payment, display the results to the screen and write the results to a file

  Explain strings are an important part of programming

Strings are an important part of programming. They are used to transfer all sorts of data between the user and program, as well as from program to program. Humans communicate with streams because they are flexible enough to encode words and vari..

  Program that uses an instance of the timeoff

Write a program that uses an instance of the TimeOff class you designed in Programming Challenge 5. The program should ask the user to enter the number of months an employee has worked for the company. It should then use the TimeOff object to calc..

  Write a console-based object-oriented c++ program

Write a console-based object-oriented C++ program that generates a random number and prompts the user to guess it

  Definition of the function template moventhfront

Write the definition of the function template moveNthFront that takes as a parameter a queue and a positive integer, n.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd