I need some help building a triangle in c++. I feel like I'm screwing up real bad so I apologize upfront if this program is hideous. Please take a look and let me know what you think.
When I try to execute program my computer just gives me an "illegal instruction" error
// File: stars.cxx 01/20/2011
// The main purpose of this program is to draw triangles in C++ for HW #1
//Directives:
#include <graphics.h>
#include <cstdlib>
#include <cmath>
using namespace std;
//----------------------------------------------------------------------------
const int S = 800;
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
//Prototypes
void draw_traingle(double x, double y, double angle);
//----------------------------------------------------------------------------