????? ?????????????, ???????????? ????? CyberForum.ru
???? ????????

?????????? ???????????? ????????? ??????? - C++

?????
???????????
???????????? ??????
?????? ???? ???????
C++ ??????????? ????????? http://www.cyberforum.ru/cpp-beginners/thread754254.html
??????? ????????. ????? ????????? ????????, ?? ???????? ????????? ?????? ????? ?? ?????????. ??? ????????? ???. ???????? ?????????, ???? ? ??????? ?????????????? ?????. ??? ?? ???????...
C++ ???????.?? ??????? ??????? ????????? ?? ???????? ????????? ????????? ???????????,?? ?? ????? ????????? ????????,???????? ?????????? #include "stdafx.h" #include "locale.h" void vod(int*a,int b) { int i; printf("??????? ?????? A\n",b); http://www.cyberforum.ru/cpp-beginners/thread754253.html
?????????????? ????????? ????? ?++ C++
?????, ??? ????? ??????... ???? ???????? ?????? ? ?????????? ? ????? ??? ?????????... ??????? ???????? =)) ? ???? ???? ???????? ????, ?????? ? ???????? ??????????, ? ??????: ???????? ?????? ?...
?????????? "?????????" C++
?????,???????? ?????????? ? ??????????? ?????????. ????? ?????? ????????? ? ????-?????. ?? ???? ?? ???????????:)????????? "?????????" ????????? ??????
C++ ??? ???????? ??????? ?????? http://www.cyberforum.ru/cpp-beginners/thread754196.html
???????? ??? ?????? ? ??????? ???????? ?????? ? ???? ????????? ??????? ??????????????? ????????? ? ??????, ?? ?????? ? ???????? ????????? ??? ? ?? ???? ?????? ???????. //??????? ????????? ???????...
C++ ???????? ???? ???? ?????? ????. ???????? ?? ?????? ?????? ?? 2 ???????: 1. ????????? ??? - ??? ?????????????? ??? ?????? ??? ?????????? ?????, ? ??????? ???? - ????????? ????????? ????? ?????????????? ?????... ?????????

???????? ????????? ????????
DiffEreD
1431 / 768 / 95
???????????: 21.06.2011
?????????: 1,740
??????? ? ?????: 2
06.01.2013, 22:08
?????? ????? ????? ????????? ?? ???????
C++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>
#include <algorithm>
#include <array>
 
int main()
{
    setlocale (LC_ALL, "Russian");
    
    std::array<int, 10> some_array = {88,2,6,9,5,88,4,0,88,7};
    int maxElem = *std::max_element(some_array.begin(), some_array.end());
    std::cout<<"????????????(??????????) ??????? = "<<maxElem<<
        "\n?????????? ????? ????????? = "<<std::count(some_array.begin(), some_array.end(), maxElem)<<"\n";
 
    system("pause");
    return 0;
}
1
 
?????????? - ????? ?????????????, ???????????? ?????, ????????????????
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
???????@Mail.ru