file processing, C/C++ Programming

Write a C++ program doing the following:
The program reads from the keyboard the numbers of rows and columns of a 2-D array of
integers. Then, it allocates this array (let’s name it A) and it initializes its elements with random
numbers between -4 and +4, and prints the array row by row.
Then, the program transforms the array in the following way: for every element A[i][j] equal
to 0, it makes the entire row i and the entire column j equal to 0. Finally, the program prints the
resulting array row by row.
Your must write three functions and use them in your program:
• a function that initializes randomly your 2-D array with integers between A and B;
• a function that prints your array;
• a function that performs the transformation described above
Posted Date: 10/31/2012 3:44:31 PM | Location : United States







Related Discussions:- file processing, Assignment Help, Ask Question on file processing, Get Answer, Expert's Help, file processing Discussions

Write discussion on file processing
Your posts are moderated
Related Questions


A: The simplest instance of a smart pointer is auto_ptr that is included in the standard C++ library. Auto Pointer only takes care of Memory leak & does nothing regarding dangling

A: N delete p is a two-step procedure: it calls the destructor, and then releases the memory. The code developed for delete p is functionally similar to this (supposing p is of typ

Define a structure in C++: Write a program a structure in c++ program. void main() {                 struct player                 {                 char name[2

What happens if you write following code? string& foo()


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

Write a program in C language to implement Two-Way Merge Sort. Input the following data to the program. Show all intermediate steps: 84, 83, 78,90,23,123,98,159,8,200

A palindrome is a string that reads the same from the both the ends. Given a string S convert it to a palindrome by doing character replacement. Your takes is to convert S to palin