help making rows and columns in c++ programmi

December 4, 2010 at 16:37:48
Specs: Windows Vista
I need help in making for example 4 rows with 5 columns in each row. Any help with this?

See More: help making rows and columns in c++ programmi

Report •


#1
December 4, 2010 at 20:50:11

Report •

#2
December 5, 2010 at 20:42:06
i dont know if you can find this useful its the basic way

#include <iostream.h>

int main (int argc, char * const argv[]) {

const int rows =4;
const int colo =5;

for (int r=0; r <rows; r++) {

for (int c=0; c <colo; c++) {
cout << "|-h-| |-h-| |-h-| |-h-| |-h-|"
<< endl;
break;
}
}
return 0;
}


Report •

Related Solutions


Ask Question