jeioruweoaihdnasui

What problem are you having? Maybe a simple example will get you started. A simple multiplication table.

#include <iostream>
using namespace std;

int main(){
 const int MAX = 5;
 //show row metadata
 cout << "\t";
 for(int n = 0; n < MAX; ++n){
   cout << n << "\t";
 }
 cout << endl;
 for(int i = 0; i < MAX; ++i) cout << "\t--";

 for(int i = 0; i < MAX; ++i)
 {
  cout << endl;
  cout << i << "|\t";
  for(int j = 0; j < MAX; ++j){
      cout << i * j << "\t";
  }
  cout << endl;
 }
}
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.