Friday
April 25, 2014

Homework Help: C++ Programming

Posted by Chamell Williams on Sunday, September 28, 2008 at 11:33am.

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;
}

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

IT/210 - Assignment: Chapter 5 Programming Problems Complete Programming ...
statistics - On average, 30-minute television sitcoms have 22 minutes of ...
statistics - On average, 30-minute television sitcoms have 22 minutes of ...
statistics - On average, 30-minute television sitcoms have 22 minutes of ...
Computer Programming - can anyone give me site about programming I need a sample...
programming - An instructor wants to build a program to help him keep track of ...
social - Ok, I think both of these are syndicated but im so confused! The type ...
social - Ok, I think both of these are syndicated but im so confused! The type ...
programming - Can you help me write an authentication progam that would deny ...
java programming - write a java program using arrays function for hotel bill ...

Search
Members