.


:




:

































 

 

 

 


,




//--- -- ----------------------------------------

#include <stdio.h> //

#include <conio.h> //

 

//--- -- --------------------------------

int main(int argc, char* argv[])

{// main

//--- -- ---------------------------

int left=21; //

//

int top=5; //

//

int width=40; //

int height=17; //

char str[100]=

"Registration"; //

 

//----- ----------------------------------------

textbackground(BLUE); //

gotoxy(left,top); //

 

for(int i=0;i<width;i++) //

cprintf(" "); //

 

gotoxy(left,top+1); //

 

for(int i=0;i<width;i++) //

cprintf(" "); //

 

//----- -----------------------------------------

gotoxy(left+1,top+1); //

textcolor(WHITE); //

textbackground(BLUE); //

cprintf("%s",str); //

 

//----- -------------------------------------

gotoxy(left,top+2); //

textcolor(BLUE); //

textbackground(WHITE); //

cprintf("%c",201); //

 

for(int i=0;i<width-2;i++)//

cprintf("%c",205); //

 

cprintf("%c",187); //

 

//----- --------------------------------

for(int i=0;i<height-5;i++) //

{// for

gotoxy(left,top+3+i); //

cprintf("%c",186); //

//

//

 

for(int i=0;i<width-2;i++)//

cprintf(" "); //

 

cprintf("%c",186); //

//

//

}// end for

 

//----- --------------------------------------

gotoxy(left,top+height-2);//

textcolor(BLUE); //

textbackground(WHITE); //

cprintf("%c",200); //

 

for(int i=0;i<width-2;i++)//

cprintf("%c",205); //

 

cprintf("%c",188); //

 

gotoxy(left,top+height-1);//

 

for(int i=0;i<width;i++) //

cprintf(" "); //

 

//----- ------------------------------------

textcolor(BLACK); //

textbackground(WHITE); //

 

gotoxy(left+6,top+5); //

cprintf("Name:"); //

 

gotoxy(left+6,top+7); //

cprintf("Patronimic:"); //

 

gotoxy(left+6,top+9); //

cprintf("Surname:"); //

 

gotoxy(left+6,top+11); //

cprintf("Password:"); //

 

//----- -------------------------------

textcolor(BLACK); //

textbackground(BLACK); //

 

gotoxy(left+18,top+5); //

cprintf(" ");//

 

gotoxy(left+18,top+7); //

cprintf(" ");//

 

gotoxy(left+18,top+9); //

cprintf(" ");//

gotoxy(left+18,top+11); //

cprintf(" ");//

 

//----- ------------------------------------

gotoxy(left+18,top+5); //

//

 

getch(); //

return 0;

}// end main

//--------------------------------------------------------------

 

. main, , . main , . . . . .

.

 
 

 

 

, , , . , .

 

//--- -- ----------------------------------------

#include <stdio.h>

#include <conio.h>

 

int main(int argc, char* argv[])

{// main

int i; //

int j=0;//

 

for(i=0;i<256;i++) // 256

{// for

printf("%c=%3d ",i,i);//

//

if(++j>=10) // 10

{// if

j=0; //

putchar('\n'); //

}// end if

}// end for

 

getchar();

}// end main

 
 

//--------------------------------------------------------------

 

, .

 

 

1.

2.

3.

4.

5.

6.

 





:


: 2016-09-03; !; : 335 |


:

:

, .
==> ...

1515 - | 1349 -


© 2015-2024 lektsii.org - -

: 0.023 .