.


:




:

































 

 

 

 


. 1. Windows to boot istartedsomething: [ ] // www.istartedsomething.com, 2005-2013




1. Windows to boot istartedsomething: [ ] // www.istartedsomething.com, 2005-2013. URL: http://www.istartedsomething.com/20061122/windows-boot/. ( : 18.02.2013).

2. Windows 1.0 // . [20132013]. : 19.02.2013. URL: http://ru.wikipedia.org/?oldid=52634963 ( : 18.02.2013)

3. modnews: [ ] // modnews.ru, 20052013. URL: http://modnews.ru/analytics/view/905 /. ( : 18.02.2013).

4. Windows 3.11 // . [20052005]. : 06.08.2005. URL: http://ru.wikipedia.org/?oldid=340956 ( : 18.02.2013)

5. Windows 95 // . [20132013]. : 07.02.2013. URL: http://ru.wikipedia.org/?oldid=52306876 ( : 18.02.2013)

6. Microsoft: [ ] // music.adme.ru, 20052013. URL: http://music.adme.ru/publ/29-1-0-25. ( : 18.02.2013).

7. Windows NT 3.1 // . [20132013]. : 05.02.2013. URL: http://ru.wikipedia.org/?oldid=52255028 ( : 18.02.2013)

8. MS WINDOWS. Microsoft Windows 2000 Microsoft Windows 98: [ ] // .., 2000-2003. URL: http://www.is.svitonline.com/assol/win2k.htm. ( : 18.02.2013).

9. : [ ] // proIT.com.ua, 2006 - 2013. URL: http://proit.com.ua/article/mobile/2007/06/12/141254.html. ( : 18.02.2013).

10. Windows 7: [ ] // NoNaMe, 20002013.

URL: http://nnm.ru/blogs/ashkaa777/pervyy_den_rozhdeniya_windows_7/. ( : 18.02.2013).

11. Windows 8 // . [20132013]. : 05.03.2013. URL: http://ru.wikipedia.org/?oldid=52998818 ( : 18.02.2013)

12. : [ ] // , 20002013. URL: http://www.plam.ru/compinet/windows_xp/p4.php. ( : 18.02.2013).

13. 9.5. Windows: [ ] // .., .. . , 20002013. URL: http://inf11.gym5cheb.ru/OS_win.html. ( : 18.02.2013).

14. Windows .Wiki: [ ] // http://wiki.mvtom.ru, 20002013. URL: http://wiki.mvtom.ru/index.php/Windows. ( : 18.02.2013).

15. () // . [20122012]. : 17.11.2012. URL: http://ru.wikipedia.org/?oldid=49933456 ( : 18.02.2013).

16. .. : /

.. , .. , - 2- ., .: , 2009.

17. .. : . /

.. , - 2- .,.: , 2009.

 


1

#include<stdio.h>

#include<conio.h>

#include<windows.h>

/*------------------------------------------------*/

void printrusb(char string[100],int a)

{ char buf[100]; /* */

CharToOem(string, buf);/* */

printf(buf);//

if (a == 1) {puts("\n");}//

};

int st_stop(char string[100],int a)

{

FILE *f;

int d;

f=fopen(string,"rt"); //

if (f!=NULL)

{

fscanf(f,"%d",&d);//

if (d==a)

{

fclose(f); //

f=fopen(string,"wt"); //

fprintf(f,"%d",a+1);// 1

fclose(f); //

printf("%s = %d\n",string,a+1);

return 1;

}

else

{

if (a==2)

{

fclose(f); //

f=fopen(string,"wt"); //

fprintf(f,"%d",a);// 1

fclose(f); //

printf("%s = %d\n",string,a);

}

return 0;

}

}

else printrusb(" ",1);

return 0;

}

void zapis(char string[100],char a[50])

{

FILE *f;

int d;

f=fopen(string,"wt"); //

if (f!=NULL)

{

fprintf(f,"%s",a);//

fclose(f); //

printrusb(" ",0);printf("%s",string);printrusb(" : ",0);printf("%s\n",a);

}

else printrusb(" ",1);

}

 

int main()//

{

int b;

char a='0';

char chars[50]="";

while (a!='a')

{ getch();

b=st_stop("semaphore.txt",0);

getch();

if(b==1)

{

printrusb(" : ",0);

scanf("%s",&chars);

zapis("res.txt",chars);

getch();

st_stop("semaphore.txt",2);

}

else printrusb(" ",1);

printrusb(" , ",1);

a=getch();

}

return 0;

}

2

#include<stdio.h>

#include<conio.h>

#include<windows.h>

 

/*------------------------------------------------*/

void printrusb(char string[100],int a)

{ char buf[100]; /* */

CharToOem(string, buf);/* */

printf(buf);//

if (a == 1) {puts("\n");}//

};

 

int st_stop(char string[100],int a)

{

FILE *f;

int d;

f=fopen(string,"rt"); //

if (f!=NULL)

{

fscanf(f,"%d",&d);//

if (d==a)

{fclose(f); //

f=fopen(string,"wt"); //

fprintf(f,"%d",a+1);// 1

fclose(f); //

printf("%s = %d\n",string,a+1);

return 1;

}

else

{

if (a==0)

{

fclose(f); //

f=fopen(string,"wt"); //

fprintf(f,"%d",a);// 1

fclose(f); //

printf("%s = %d\n",string,0);

}

return 0;

}

}

else printrusb(" ",1);

return 0;

}

 

void schit(char string[100])

{

FILE *f;

char a[50];

int d;

f=fopen(string,"rt"); //

if (f!=NULL)

{

fscanf(f,"%s",&a);//

fclose(f); //

printrusb(" ",0);printf("%s",string);printrusb(" : ",0);printf("%s\n",a);

}

else printrusb(" ",1);

}

int main()//

{

int b;

char a='0';

char chars[50]="";

while (a!='a')

{

getch();

b=st_stop("semaphore.txt",2);

getch();

if(b==1)

{schit("res.txt");

getch();

st_stop("semaphore.txt",0);

}

else printrusb(" ",1);

printrusb(" , ",1);

a=getch();

}

return 0;

}





:


: 2016-12-18; !; : 366 |


:

:

, , .
==> ...

1822 - | 1704 -


© 2015-2024 lektsii.org - -

: 0.019 .