convert array to for-loop..

heey guys ...
can someone tell me how to fill the array with "*" by using for-loops instead of this way??
1
2
3
4
5
6
    char star[2][5] = {{'*','*','*','*','*'},{'*','*','*','*','*'}};
    for(int row=0;row<2;row++){
        for(int coulmn =0 ; coulmn<5;coulmn++){
        cout<<star[row][coulmn]<<" ";
        }cout<<endl;}


Last edited on
How about you replace cout<<start[row][coulmn/*?*/]<<" "; with start[row][coulmn/*?*/]='*'; ?
Topic archived. No new replies allowed.