37 Topics
| |
| I am trying to create a code that receives up to 50 integers from the keyboard, sorts the array from largest to smallest, then counts the instances of each number and displays the number inputted and the count of the number of instances. For example, if the number 11 was … |
Hi, I have code as follows wherein I pass a 2D array to a function and want to receive this array with its contents tripled. [CODE]#include <iostream> #include <cstdio> using namespace std; int** test2 (int arr2[][4],int mul){ for (int i=0;i<2;i++){ for(int j=0;j<4;j++){ arr2[i][j]=arr2[i][j]*mul; } } return arr2;//sending back the address … | |
So I have a problem... according to the specification given by my lab TA, we must [QUOTE]"write a Microsoft Visual Studio console application that will calculate the following four operations over the elements of a two dimensional array (matrix) of integers: 1. Sum 2. Average 3. Max 4. Min All … | |
Hello, I am a new programmer. I am trying to copy the elements of this 20x3 array into a 1x60 or 60x1 array an[60]=A[20][3] one of my attempts is:[code] for (i=0;i<20;i++) { for(j=0;j<3;j++){ at1[i]=A[i][j]; at2[i]=A[i][j]; at3[i]=A[i][j];} } an[60]={at1,at2,at3};[/code] | |
Hi there, I'am developing a snippet for a website widget that will read/fetch data from an XML file, sort it in array's and then show it back to the user - formated as a sentence. [b]Example:[/b] [b]XML sample:[/b] [code=text] <row id="1"> <username>GGR1024</username> <name>Raymond</name> <surname>Saliba</surname> <game>Lotto</game> <won>5000</won> </row> <row id="2"> <username>GGR1111</username> … | |
Hi guys! I'm pretty new to C++. I am currently on freshman year at college, and have a programming problem (not homework, it's actually a side project of mine) that consists on implementing some algebra-related functions on C++. I'll go straight to the point: [code] int switchlines(int i, int j, … | |
This program asks for integers from the user and stores them into a multidimensional array that adjusts its size. |
The End.