Array Problems

Hello everyone!
I am a C++ beginner(I am familiar with Database but not C++) I have been learning C++ for two months....(Yes, I am a student)

First, I am not a native English speaker, please forgive my poor english. =[

here are the questions about ARRAY applications (2D Array)

1. After inputting all data into a map of array (let's say, char data type), how to print out the data??
for example, I have a seperated functon for inputting map(name: mapinput), then, in the main(),shall I use "cout" for printing the map? used "cout" with for-loop??

2. the map printed is just like a puzzle game, how to search the data?? shall I say how to find the queue of the data?? do I need to treat the map (e.g. size 10x10) as 100 grids and compare them with each other??
I don't know how to express this in C++....

3. how if I want to count the queues....stack???(accumulate the data?)

I am trying hard to read books and source code, but I am confused how to apply them into my work...

So, is there anyone can help me??

Thank you so much!!
closed account (1wqDSL3A)
1 use std::cerr<< ,
2. don't know...
3. This is on this webpage's tutorial :)
standard for loop for single dimensional arrays, and imbeded for loop for multi eg:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 1 dimension
for (int i=0 ; i<arraySize ; i++)
{
    cout << array[i] << endl;
}

// multi dimension
for (int i=0 ; i<arraySize ; i++)
{
    for (int j=0 ; j < arraySize[i] ; j++)
    {
        cout << array[i][j];
    }
}
Topic archived. No new replies allowed.