#include
#include
#include
#include
#include
#define CLIP_ON 1
#define FON_2 CYAN
#define FON_1 7
#define COL_1 60
#define COL_2 57
#define COL_3 58
void Titul (void);
void GRAF(float E, float C, float r1,float r2);
void SHEMA(void);
int main(void)
{
clrscr();
Titul ();
clrscr();
int gdriver = DETECT, gmode, errorcode;
initgraph(&gdriver, &gmode, “c:\\bcpp\\bgi”);
errorcode = graphresult();
if (errorcode != grOk)
{
printf(“Graphics error: %s\n”, grapherrormsg(errorcode));
printf(“Press any key to halt:”);
getch();
exit(1);
}
///——————————
float E;
float t;
float C;
float r1;
float r2;
E=100;
C=1e-03;
r1=3000;
r2=1000;
SHEMA(); GRAF(E, C, r1,r2);
//………………………………
char ch;
while(ch!=27)
{
restorecrtmode();
clrscr(); //
//textbackground(YELLOW);
textcolor(57);
printf(“\n\n\n\n\n\n\n\n”);
cprintf(” EIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII»”); printf(“\n”);
cprintf(” ?„«i c?a®¤a § ?a®Fa ¬? a?aiai: ‘e’ ?”); printf(“\n”);
cprintf(” ? ?”); printf(“\n”);
cprintf(” ?„«i ?a®¤®c¦Yi ?a®Fa ¬? § ®c?¬? § cYi¬? ?”); printf(“\n”);
cprintf(” ? ? a ¬Yaaic aaY¬?, a?aiai: ‘n’ ?”); printf(“\n”);
cprintf(” EIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII1/4″); printf(“\n”);
ch=getch();
switch(ch)
{
case ‘e’: exit(1); break;
case ‘n’:
clrscr(); textcolor(GREEN);
cprintf(” UAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAe?”); printf(“\n”);
cprintf(” ? „«i c¤ «®F® ci¤®!a ¦Yi ?a®aeYaic Y®!ai¤®, e®!: ?”); printf(“\n”);
cprintf(” AAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAeAe?”); printf(“\n”);
cprintf(” ? E
Нашли опечатку? Выделите и нажмите CTRL+Enter