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

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

?????
???????????
???????????? ??????
?????? ???? ???????
C++ ??????? ??????? ?? ??????? ???????? http://www.cyberforum.ru/cpp-beginners/thread596191.html
?????????? ??????? ??????? ?? ??????? ????????. ???????? ???????????? ??? ?????????? ???? ???. ?? ???????? ? ???? ??? ?? ???????? ?? ??????????. struct gai {char FIO; }st; FILE *f; int...
C++ ?????????? ???? ????? ??????????????? ????? ???? ?????? ? ??????? vector< vector<int> > g; ??? ????? ??? ???? ??????? ?????? ? ??????? ????????? ?????????? ??????, ?? ????? ? ????? ?????????? ??? ?????????? ????. ????? ?? ??????????. http://www.cyberforum.ru/cpp-beginners/thread596189.html
?? ???? ???????? C++
??? ???: #include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int temp; vector <int> v; while(cin >> temp)
?????? ? ????????????, ?????????? ????????, ?????????? C++
???? ??????! ?????? ????? ??????! ?????? ?????: ???????? ????????? ? ??????? ??????? ???????? ???????: ?????????????? ??????(???, ?????, ????????). ??????????? ?????? ?????????? ?????? ? ???????...
C++ ?????????? ??????? http://www.cyberforum.ru/cpp-beginners/thread596156.html
??????? ???????? ?????? ?.???????? N ???????? ??????????.?????? ???????,?????? ????,???????? ??????? ?????????????? ???? ?????????. ??????? ?? ????? ?????????? ??????????? ???????.????????? ???? ?????
C++ ?????????? ??????????? ???????? ???????? ??????? ???????? ????????? ??? ?????????? ??????????? ???????? ???????? ??????? A.????????? ??????? ?? ????? ????????? ???? ????? ?????????

???????? ????????? ????????
Morozy4
0 / 0 / 0
???????????: 04.06.2012
?????????: 9
06.06.2012, 18:53  [??]
??????? ?? ??????)
????? ??? ???????? ???????? ????? ???????????
????????? ????? ??? ????????

void push_sorted_stack(stack_t * stack, int value) {
int top;

if (!empty_stack(stack)) {
top = top_stack(stack);

if (top > value) {
pop_stack(stack);
push_sorted_stack(stack, value);
push_stack(stack, top);

return;
}
}

??? ??????? ???????? ? ???? ???? ????????, ?? ?????? ?? ??????????? ??????? ?????????? ???????? ?????. ???? ??????????? ??????? ?????? ????????, ?? ??????? ??????????? ? ???????????? ? ?????????????? ????, ????? ??? ??? ?? ??????????? ??????? ??????????? ? ????? ??????? ?????????.
??? ?? ??? ??? ???? ??????????? ?? ????? ?????? ????????, ? ????? ??? ??????? ???????? ??????????? ? ?????
0
 
?????????? - ????? ?????????????, ???????????? ?????, ????????????????
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
???????@Mail.ru