10 print"*******"
20 print" * *"
30 print" * *"
40 print" * *"
50 print" *"
60 print" *"
70 print"*******"
80 print" *"
90 print" *"
100print" *"
110print" * *"
120print" * *"
130print" * *"
140print"* *"
150print"High world?"
my first was harder, after the textual boot basic sequence
using the superb drawing combination ANSI Borland offer
pixeling in mathematic is always toughtfull and it's hard
after a will to imagine new sequence even.
Just know that i'v been teach Merise methode (orygrame)
way to program but never use it favorising hard spagetti type
of ansi program. Over time i get better, my spag end up
really straight .. just wondering if i could do a merise of my
last dynamic sequence... Egosphere on Homospere
i give my first computer course this afternoon, for 10$
to a rooki, good sign i'am less free worker, wage more
or less 5$ a hours, one stud
\\ used to debug, speake with compilator or simply adding compilation switch
\\ rarely re-read fully a self prog but understand them fast, even the spag on
\\ bug once in a will on version 1.01 (wild effect)
\\ e-one
\\ tank's to borland help file, for screen syncronisme
\\ if you modify please keep and add to the header if their is one
++++++++++++++++++++++++++++++++++++++++++++
+ pixel matric using line.. version 2 could use pixel....harder+
++++++++++++++++++++++++++++++++++++++++++++
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
int main(void)
{
/* request auto detection */
int gdriver = DETECT, gmode, errorcode;
int xmax, ymax,a,b,c;
/* initialize graphics and local variables */
initgraph(&gdriver, &gmode, "");
/* read result of initialization */
errorcode = graphresult();
/* an error occurred */
if (errorcode != grOk)
{
printf("Graphics error: %s\n",
grapherrormsg(errorcode));
printf("Press any key to halt:");
getch();
exit(1);
}
setcolor(getmaxcolor());
xmax = getmaxx();
ymax = getmaxy();
/* draw a diagonal line */
setcolor(2);
for(a=0;a=a+20;a==640)
{
line(a, 0, a, 480);
line(0, a, 640, a);
}
setcolor(14);
line(300,0,300,480);
line(0,240,640,240);
/* clean up */
//-0.3+tan(3x)
//1+sin(x)
//(-1+sin(3x))*1.5
//(-1+sin(9x))/3
//y=0
getch();
closegraph();
return 0;
}