- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
bool* sdvig_vpravo(bool* mas) {
if (mas[0] == 1 && mas[1] == 0 && mas[2] == 0) {
mas[0] = 0;
mas[1] = 1;
mas[2] = 0;
}
else if (mas[0] == 0 && mas[1] == 1 && mas[2] == 0) {
mas[0] = 0;
mas[1] = 0;
mas[2] = 1;
}
else if (mas[0] == 0 && mas[1] == 0 && mas[2] == 1) {
mas[0] = 1;
mas[1] = 0;
mas[2] = 0;
}
return mas;
}
a1batross 12.04.2016 23:38 # +1
petr_koshka23 12.04.2016 23:40 # 0
Elvenfighter 13.04.2016 01:16 # 0
> vpravo
> mas
petr_koshka23 12.04.2016 23:41 # 0
guesto 12.04.2016 23:43 # +4
тут все программисты с пятидестилетним стажем
ну, кроме тех кто пишет на пхп
Elvenfighter 13.04.2016 01:18 # +1
inkanus-gray 13.04.2016 01:38 # +2
Antervis 13.04.2016 06:27 # +3
bormand 13.04.2016 07:28 # +4
inkanus-gray 13.04.2016 15:39 # +3
guesto 13.04.2016 17:49 # 0
Лiл)
gost 13.04.2016 09:23 # +5
guesto 13.04.2016 13:18 # 0
inkanus-gray 13.04.2016 13:26 # 0
guesto 13.04.2016 13:32 # +1
myaut 13.04.2016 15:35 # +1
http://en.cppreference.com/w/c/types/boolean