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

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

?????
???????????
???????????? ??????
?????? ???? ???????
C++ ?????? ?????????? ??? ???????? ? float ? double http://www.cyberforum.ru/cpp-beginners/thread1186864.html
????????????! ?????? ??? ??????? ? float ? double ??????? ?????? ??????????? #include <iostream> #include <stdio.h> #include <math.h> using namespace std; void main () { float a=1000,...
C++ ???????? ???????, ????????????, ???? ?? ???????? ?????????? ? ????? ?????? ????? ??????: ??????? ????. ???????? ???????, ????????????, ???? ?? ???????? ?????????? ? ?????. ??????? ???????. http://www.cyberforum.ru/cpp-beginners/thread1186857.html
C++ ?????????? ???????
????????????! ???????? ????? ??????! ?????????? ????????? ??????? 2 ?????????: 1) ??? ???????? ???????? 2) ??? ????????? n ?? ????????? ??????????: #include <iostream> #include <stdio.h>...
C++ ???? ?????? ?? ?????
????????????, ?? ???????? ?????????? ? ??????, ??? ?????????: #include "stdafx.h" #include <iostream> #include <iomanip> #include <locale> #include "fstream" using namespace std; struct day...
C++ ????????. ????????????? ??????? http://www.cyberforum.ru/cpp-beginners/thread1186817.html
???? ????????? ?????? ??? ?????????. ???????? ????? ??????) ??????? ?????????? :) #include <iostream> #include <pthread.h> #include <semaphore.h> #include <cstdlib> /* srand, rand */...
C++ ?? ??????????? ????? ?? ???????? ???? , ? ????????? ?? ???, ??? ????. ??? ?????? ???????? ?? ???,???? ?????? ????????? ????? ? ???????? ?? ?? ???. #include "stdafx.h" #include "iostream" #include <cmath>... ?????????

???????? ????????? ????????
Marishka92
0 / 0 / 0
???????????: 20.05.2014
?????????: 7

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

24.05.2014, 18:19. ?????????? 269. ??????? 10
????? (??? ?????)

???? ??? ?????? ?? ?????? ????? ?????????, ?? ????? ???????? ?????? ? ?????????? ? ?? ? ????? ?????????, ??? ??? ?????????? ? ????????? ?? ????? ?????

C++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <iostream>
 
using namespace std;
 
int main()
{        
    int a[10] =
    {
        1, 5, 7, 3, 6, 9, 2, 4, 8, 10
    };
    cout << "Input x, y: ";
    int x, y;
    cin >> x
        >> y;
    for(int i = 0; i < 10; i++)
    {
        cout << a[i]
             << "\t";
    }
    cout << endl;
    for(int i = 0; i < 10; i++)
    {
        if(a[i] < x)
        {
            a[i] = y;
        }
        cout << a[i]
             << "\t";
    }
    cout << endl;
    system("pause");
    return 0;
}
C++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <conio.h>
#include <iostream>
#include <cmath>
#include <ctime>
#include <stdlib.h>
using namespace std;
const int n=10;
int main()
{
    int mas[n]={-5,-4,-3,-4,-5,-1,-1,-5,-17,-23};
    for(int i=0;i<n;i++)
    {
        if(mas[i]%3!=0 && mas[i]<0) mas[i]=abs(mas[i]);
        cout<<mas[i]<<" ";
    }
    getch();
    return 0;
}
0
??????? ???????? ????????????????? ? ??? ???????? ?????????.
 
?????????? - ????? ?????????????, ???????????? ?????, ????????????????
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
???????@Mail.ru