String program, C/C++ Programming

Write a C++ program which does the following:

1. Asks the user to enter the following text "Four score and seven years ago there was a man named Joey Bagadonuts."

2. Save this string into a C string named inputSentence

3. Open a text file named lab7.txt as an output file

4. Write the C string inputSentence out to the file and also print it out to the screen.

5. Close the output file

6. Open the  lab7.txt file as an input file

7. Read the contents into a C string named outputSentence

8. Print the contents of the  C string outputSentence to the screen

9. Close the input file

10.  Print your name on the screen

11.  Take a screen shot and save it to a word document called lab7.doc

12.  EXIT the program

13.  Create a Zip file for your entire lab7 project and your word doc and put it into the dropbox for week 7

Posted Date: 2/21/2013 3:16:49 AM | Location : United States







Related Discussions:- String program, Assignment Help, Ask Question on String program, Get Answer, Expert's Help, String program Discussions

Write discussion on String program
Your posts are moderated
Related Questions
array of class objects and single inheritance


Explain the class invariant. - It's a condition that ensures correct working of a class and defines all the valid states for an object. - When an object is created class inv


You are given a collection of words, say as in a dictionary. You can represent it in the following compressed form: the first word will be followed by a sequence of a pair of numbe


1. Create text a file with the name "myemail" that has a single line in it, consisting of your email address. Something like "firstname_lastname@carleton.ca" (or your hotmail or gm

Jewels can only be removed for polishing from either end of the necklace

At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with thes

Explain zero based addressing. - Array subscripts always start at zero. - These subscript values are used to identify elements in the array. - As subscripts start at 0, a