This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.thetekst.crocodile; | |
public class TestCrocodile { | |
public static void main(String[] args) throws InterruptedException { | |
Crocodile crocodile = new Crocodile(); | |
System.out.println(crocodile.getState()); | |
do{ | |
Thread.sleep(1000); | |
System.out.println(crocodile.getState()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Shift operators (-r -c -e -d -a) | |
#include <stdio.h> | |
int main(void) { | |
unsigned char used=0; | |
unsigned char bRead=1; | |
unsigned char bCreate=1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Algorithm | |
Просим ввести число мин в переменную minutes | |
запускаем функцию таймера. | |
сравниваем ее в цикле с переменной minutes: minutes<=timer | |
Если условие истинно, то повторяем цикл while() | |
Если условие ложно: выводим сообщение и обнуляем minutes | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TimeMeter { | |
public TimeMeter(Date sec) { | |
System.out.println("Вы ввели .. секунд. Задание будет готово в .. .. .."); | |
} | |
public TimeMeter(Date min, Data sec) { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//InnerClassTest.java | |
import javax.swing.*; | |
public class InnerClassTest | |
{ | |
public static void main(String[] args) | |
{ | |
TalkingClock clock = new TalkingClock(1000, true); | |
// TalkingClock.setBeep(false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<td style="vertical-align: top;" class="uni_tab" bgcolor="E2F5F0" valign="top" rowspan="9"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Input int | |
#include <stdio.h> | |
int main(int argc, char const *argv[]) | |
{ | |
int dec; | |
printf("Input: "); | |
scanf("%d", &dec); | |
printf("%d", dec); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <windows.h> // Для Sleep() | |
#include <stdlib.h> // Для кириллицы | |
#include <signal.h> // Библиотека для звуковых сигналов | |
#include <windows.h> // WinApi header file | |
void mySound(void); // Прототип функции | |
int main(int argc, char const *argv[]) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Converter.java-> | |
public class Converter { | |
public String convertTemp(int temperature, char convertTo){ | |
int result = 0; | |
char value; | |
if(convertTo == 'F'){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@charset "utf-8"; | |
/* CSS Document */ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, font, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, | |
dl, dt, dd, ol, ul, li, |