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

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

?????
???????????
???????????? ??????
?????? ???? ???????
C++ ?????? ??? ???????? ?????????? ??????? ?++ http://www.cyberforum.ru/cpp-beginners/thread1193993.html
??????? ??????? ?????. ?????????? ? ????? ?????????: ?? ?????????? ?????????? ???????. ????? ?????????? ??? ?? ??????? ??????, ? ??? ?????. ??????? ?????? ????? kbhit + getch, ????????, ?? getch...
C++ ???????? ???????????? ?????????????????? ???? ????? ? ?????? ???????? ???????????? ?????????????????? ???? ????? ? ?????? (?????? ?????????? ??????????? ????????? ??????, ? ??????? ?????????? ????? ????? ??? ??? ??? ????????? ? ??????). ?????? ?????? ???... http://www.cyberforum.ru/cpp-beginners/thread1193986.html
C++ ???????? ?????????, ??????? ??????? ????? ????????? ?? n
??????.???????? ?????????, ??????? ??????? ????? ???????? ?? n, n ?????? ? ??????????. ??????? ???????? ?????????? 1, 2, 3, 5, 8, ? ????? ?? ???????: Ai+1 = Ai + Ai−1 . ? ??????? ?????? printf,...
??????????? ? ???????? ??????? C++
???????? ? ???????? ???????. ?????????? ?????? ?? ?????? ?????? ??????? #include "stdafx.h" #include <iostream> #include <string> #include <cstring> using namespace std; int main() {
C++ ??????? ?????? ? ???? m ??????? ?????? http://www.cyberforum.ru/cpp-beginners/thread1193959.html
?????? ? ?????????? m, ??????? ?????? a, ???????? m. ????????? ????????? ???????, ??????? ????? ?????? ??????? ????? ????????? ??? ???????? ??????? a ?? ??????????? 0, ? ??????? ???? ?? ???? ????? ...
C++ ???????? ?????? ???????????? ?? ??????: "?????????? ????????? ??? ??????????" ????????? ???????? ?????????: ?????????? ????????? ??? ?????????? ????? ?????? y ??? "??" ??? n ??? "???". ??????????, ??? ??????????? ?????? ?????? ??? ???, ??? ? ???? ??????????, ?? ??? ??... ?????????

???????? ????????? ????????
montkay
10 / 10 / 8
???????????: 19.02.2014
?????????: 72
01.06.2014, 15:14
C++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>
#include <string>
using namespace std;
 
int main()
{
    cout << "Enter a number: ";
    string num;
    getline(cin, num);
 
    cout << num;
    for (int i = 0; i < num.size(); i++)
        cout << num[i];
    cout << '\n';
 
    cout << num;
    for (int i = num.size() - 1; i >= 0; i--)
        cout << num[i];
    cout << '\n';
    return 0;
}
0
 
?????????? - ????? ?????????????, ???????????? ?????, ????????????????
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
???????@Mail.ru