Start with a function that prints character ch out n times:
1 2 3 4 5
void repeat(char ch, int n) {
for (int i=0; i<n; ++i) {
cout << ch;
}
}
This will make your code a lot easier to write.
The trick to printing a diamond is to recognize that you need two loops. The first loop prints the top half. Then the second loops prints the bottom half.