i cant get access to a pc atm im on my psp..

for(i = 0; i < 11; i++) {
triangle(i, '×');

cout << triangle < endl;
}

triangle is a string. ty

I can't get access to a compiler atm but I will tell you no it don't work.

* << endl;

can someone help? how can i make the program work?

Post something which compiles perhaps?
Random lines from your program doesn't tell us a great deal about all the possible ways you could have gone wrong.

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.