i was having trouble with this couse we use an asterisk sign instead of a graph but the output is so mixed up how will i will aline the asterisk..pls help me
# include <"stdafx.h">
# include <iostream>
# include <conio.h>
# include <string>
# include <windows.h>
void main()
{
int president;
int voters;
int coe = 0;
int coe = 0;
int y; // loop
char x= '*'
int +; // total
cout <<"voters for president:";
cin >> voters;
for (y=l;y<=voters;ytt)
{
cout <<"survey for president!";
cin>> president;
if (president==1)
{
cie = cie+l;
}
else if (president==2)
coe + coe+l;
}
cout <<"total votes!"<<endl;
x = cie/1;
cout <<"votes from cie :" <<cie<<endl;
for ( t=l; t<=x ; +++)
{
cout <<'x';
cout <<endl;
}
x=coe/1;
cout <<"votes from coe<<coe<<endl;
for (t=l; t<=x;+++)
{
cout <<'*'
}
getch();
}