Your output should look like this, right?
Code:
*
**
***
****
*****
******
The spaces get messed up if you don't use [code] tags.
I would suggest writing a simple program that asks the user for n and for c. Then write a separate simple program that writes something to an output file. Then write a separate simple program that writes the triangle above (with c='*' and n=6) to cout. Then once all three are working, combine each part one at a time into a big program.
Good luck and post code if you've tried but still can't figure a specific problem out.