I've been trying to do this asteriks triangle with nested loop for days and many hours and still no luck. Im using visual studio 2010 and I've been searching the web for clues and everytime I use the cout, anything iostream, const char and more it always fails I'm not sure if its not compatible with Vistual Studios or what is exactly the issue but I'm new to programming so I'm struggling a lot with this and have restarted the program 4 times completely already. My assignment includes only 1 button and a multiline text box. When the user clicks the botton a right triangle with one astriks at the top and increasing by one the last row has 8 astriks for example ...
*
**
***
****
*****
******
*******
********
With my current code I'm working on nothing happens at all in the text box and Ive used so many different codes already but the closest I got was only one pathetic "*"
int row, col;
String^value;
value += "*";
for(row = 9; row > 1; row++){
for(col = 1; col < 9; col--){
value += "\r\n";
}
txtBox->Text += value;
}
}
};
Any input would be greatly appreciated and if by chance someone could also explain the iostream and cout used in visual studio or if its even possible with visual studio 2010 we .
haven't gone over that at all in class yet I've only seen it on the internet trying to search for help. Thank you so much!