Results 1 to 5 of 5

Thread: ++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Jan:2015
    Location: Plovdiv
    Posts: 3

    ++

    ++ ,

    ++, 55 , . -1, 1. .

    !

  2. #2
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    , .
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  3. #3
    Registered User
    Join Date: Jan:2015
    Location: Plovdiv
    Posts: 3


    #include <cstdlib>
    #include <iostream>
    #include <conio.h>
    #define N 5
    #define M 5
    int array[N][M];
    int main(int argc, char *argv[])
    {

    int i, j;
    for (i=0; i<N; i++)
    {
    i = rand() % 30-15;
    cin >> array[i];
    }
    for (j=0; j<M; j++)
    {
    j=rand() % 30-15;
    cin >> array[j];
    }
    cout << "masiva:\n";
    for (i=0; i<N; i++)
    {
    cout << array[i][j] << ' ';
    }
    getch();

    return 0;

    }

  4. #4
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    1. - [CDE] ... [/CDE]
    2. :

    Code:
    for (i = 0; i < N; i++) {
        for (j = 0; j < M; j++) {
        ...   array[i][j]
        }
    }
    3. cin , .
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  5. #5
    Registered User
    Join Date: Jan:2015
    Location: Plovdiv
    Posts: 3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |