ncurses.how to get this triangle to x,y coordinate (4,6)

#include<ncurses.h>
#include<iostream>
using namespace std;
void tri(int row,int col,int hei)
{

for(int i=0;i<=hei;i++)
{
for(int j=5-i;j>0;j--)
cout<<" ";
for(int x=0;x<i;x++)
{
cout<<"x"<<" ";
}
cout<<endl;
}
}

int main()
{
int h,r,c;
h=5;
r=4;
c=6;
tri(r,c,h);
return 0;
}
Topic archived. No new replies allowed.