CyberSlug Rules!

Beginner Programming CMPS060

Prof. Paulo Franca

Home

Syllabus

Login

Objects

Download

Staff only

Screen Objects - examples:

  • Create a circle at (50,50)

#include "franca.h"

void mainprog()

{

int x,y;
x=50;
y=50;
Circle mycircle;
mycircle.place(x,y);
mycircle.show()

}

  • Program c5circ1.cpp asks for coordinates to draw circles.
  • Can you request a color too? Can you erase each circle?