/*this is what i have so far. i already have the triangle part completed sine
curve is giving me problems. not sure where to start. i know i need a for loop from 0 to 180 in increments of 4, then convert that to radians. and call the function *back into main. dont worry about little errors i have just need help with general the placement of parts of void functions */
int main()
{
int lineLength=0;
char displayChar;
double radValue = 0.0;
while (true)
{
cout <<"This program draws triangles and sine curves"<<endl;
cout << "********************************" << endl;
cout <<"To draw a triangle press 1." <<endl;
cout << "To draw a sin curve press 2."<<endl;
cout <<"Select 0 to end program" <<endl;
cout <<"Enter a selection please: " <<endl;
cout << "********************************" << endl;
int userSelection=0;
cin >> userSelection;
if (userSelection ==2) ;
{
for (int t=0; t<180; t=t+4);
}
}} //end main
thank you.
you over did it actually. i only needed it to go to 180 (forgot to mention that) and i have to have it orientated the other way so it looks like this
*
--*
----*
------*
----*
--*
*
i can figure that out though
thanks for your help