#include #include #include "project.h" /************************************************************************ * Reads in a binary sequence and outputs positions of points * * Point existence is determined by the sequence * * David Longbottom * ************************************************************************/ int main (int argc, char *argv[]) { char c; float x, y; y = 50.0; x = 0.0; GET_ARG(y,1) while ( TRUE ) { if ((c = getchar() ) == '\n' ) break; // \n is end of line if ( c == A ) PRINT_POINT(x,y) x += LENGTH_A; } return(EXIT_SUCCESS); }