Hey guys. can anyone help me, i'm a newbie and i need to show the number of times each of the numbers 1 -9 appear in a 2 dimensional array.
store counts are suppose to be 1 dimensional and i also have to enter the code to display the nine counts on the screen. im using visual c++ 2008 edition
ladyscoleman 0 Newbie Poster
Recommended Answers
Jump to PostnumberArray[1][1] = "value 2";
numberArray[1][2] = "value 4;
numberArray[1][3] = "value 1";
numberArray[1][4] = "value 2";
numberArray[1][5] = "value 2";
numberArray[1][6] = "value 1";
numberArray[1][7] = "value 1";
numberArray[1][8] = "value 1";
numberArray[1][9] = "value 1";am I on the right path here?
Not sure what you are doing here. …
Jump to Post//Displays the number of times a value
//appears in a two-dimensional array
//Created/revised by <your name> on <current date>#include <iostream>
using std::cout;
using std::endl;int main()
{
//declare numbers array
int numbers[5][3] = {{1, 2, 5} , {2, 4, 3}, {1, 9, 8}, {2, 6, 5}, {7, 4, 2}};…
Jump to Postit's confusing to me altogether, it's like me learning a new language with no help.
see the code up top is what i have to start with. i have to include a code of how many times each of the numbers show up in the array, hence the reason i …
Jump to PostI started with the following then I added the values the next time around and that's when i got the code not even to build, the first way it did pop up with the black processing screen..
int main()
{
//declare numbers array
int numbers[5][3] = {{1, 2, 5} , …
All 16 Replies
n1337 29 Junior Poster in Training
ladyscoleman 0 Newbie Poster
ladyscoleman 0 Newbie Poster
ladyscoleman 0 Newbie Poster
VernonDozier 2,218 Posting Expert Featured Poster
ladyscoleman 0 Newbie Poster
VernonDozier 2,218 Posting Expert Featured Poster
ladyscoleman 0 Newbie Poster
VernonDozier 2,218 Posting Expert Featured Poster
ladyscoleman 0 Newbie Poster
ladyscoleman 0 Newbie Poster
VernonDozier 2,218 Posting Expert Featured Poster
ladyscoleman 0 Newbie Poster
VernonDozier 2,218 Posting Expert Featured Poster
ladyscoleman 0 Newbie Poster
tesuji 135 Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.