#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <fstream>
#include <cstdlib>
using namespace std;
int main()
{
string title, nameX, nameY;
const int maxData = 20;
int data, maxValue;
int count = 0;
vector<int> v;
maxValue = *(max_element(v.begin(), v.end()));
for(int a = maxValue; a > 0; a++)
{
if (a < 10)
{
cout << a << " |";
}
else
{
cout << a << " |";
}
for(int b = 0; b < v.size()-1; b++)
{
int temp = v[b];
if (temp >= maxValue)
{
if (b < 10)
{
cout << " * ";
}
else
{
cout << " * ";
}
}
else
{
if (b < 10)
{
cout << " ";
}
else
{
cout << " ";
}
}
}
maxValue--;
cout << endl;
}
}
pem 0 Newbie Poster
Moschops 683 Practically a Master Poster Featured Poster
pem 0 Newbie Poster
triumphost 120 Posting Whiz
Moschops 683 Practically a Master Poster Featured 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.