Hi! I'm trying to write a code that displays lines between user designated points with circles at each point, but I can't get the lines to display! I'm at a loss on what to do and need fresh eyes on the subject.
#include <iostream>
#include "graph1.h"
using namespace std;
//Function Prototypes Follow
void getNoPoints(int* no_points);
void getPoints(int* x, int* y,int no_points);
void drawPolyLine(int* x, int* y, int no_points,int objects[]);
int main()
{
//Variable Declaration/Initialization
int no_points = 0;
const int MAX_POINTS = 10;
int x[MAX_POINTS];
int y[MAX_POINTS];
int no_circles = 0;
int objects[MAX_POINTS];
//Display Graphics Window
displayGraphics();
//Get the number of points (pass the address of no_points )
getNoPoints(&no_points);
//Get the data for the points
getPoints(x,y,no_points);
//Draw the polyline
drawPolyLine(x,y,no_points,objects);
Please don't do multiple posts about the same topic, just keep the original one going. It can be annoying to do a reply for one post, only to discover the same things are being said in the other one.