C++ Programming

posted by .

I have to redo programming exercise 5 of chapter 9 using dynamic arrays. but I have the information but I don't know how to use it in a dynamic arrays please help.

//Chapter 9: Programming Exercise 5

#include <iostream>
#include <cstring>
#include <cctype>

using namespace std;

int main()
{
char str[81];

int len;

int i;

cout << "Enter a string: ";
cin.get(str, 80);
cout << endl;
cout << "String in upper case letters is:" << endl;

len = strlen(str);
for (i = 0; i < len; i++)
cout << static_cast<char>(toupper(str[i]));
cout << endl;

return 0;
}

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. social

    Ok, I think both of these are syndicated but im so confused! The type of programming aired by a station with which they "affiliate" is called A) syndicated programming B) local origination C) network programming D) non of the above …
  2. social

    Ok, I think both of these are syndicated but im so confused! The type of programming aired by a station with which they "affiliate" is called A) syndicated programming B) local origination C) network programming D) non of the above …
  3. programming

    An instructor wants to build a program to help him keep track of students’ grades. He’s assuming he won’t have more than 30 students and won’t have more than 2 exams from which he’ll calculate the average. How many arrays …
  4. IT/210

    Assignment: Chapter 5 Programming Problems · Complete Programming Problems 1 and 2. · Provide the analysis, pseudocode and test cases using the template submitted in Week 6 only (no diagrams are required). Chapter 5 Programming Problem …
  5. java programming

    write a java program using arrays function for hotel bill calculation?
  6. programming

    Explain the term "dynamic memory allocation" in C++?
  7. programming

    Using Dynamic memory allocation demonstrate how to resize an array of integers in c++
  8. Computer Literary

    Which of the following is Not an example of debugging A)Looking for errors in programming code B)Fixing misspelled commands in programming code C)Solving faulty logic in programming code D)Upgrading to improve the programming code
  9. Linear Programming - The Graphical Method

    Solve the linear programming programming by graphing and then determining which vertex minimizes the objective function G=4x+3y . {5x+15y≥15 {5x+5y≥35 {x≥0 {y≥0 x = y = What is the minimum value?
  10. Java Programming

    Hey! Thanks for checking my question out! ____ 10. If x is a sorted array of int values, which of the following shows a call to a method of the Arrays class that will determine if the value 7 exists in the array?

More Similar Questions