well thnx for those articles, but this isnt my homework or something, i m trying to do this since 2 days, i am new, so ofcourse i need some help. well here is the program i wrote which has 7 errors
# include <iostream>
using namespace std;
int printStars (int lines,int stars,int space);
int main ()
{
printStars(lines, stars, space);
return 0;
}
int printStars (int lines,int stars,int space)
{
int lines, stars, space;
for (lines=1; lines<=4; lines++)
{
for (space= 4; space >=0; space--)
{
cout<<" ";
while (space=0)
{
for (stars=1; stars<=lines; stars++)
}
{
cout<<"* ";
}
}
cout<<endl;
}
}
thnx
Last edited by mnmustafa; Jan 7th, 2009 at 2:06 am.