Results 1 to 5 of 5
Thread: ++
Hybrid View
-
12th January 2015 13:52 #1Registered User
Join Date: Jan:2015
Location: Plovdiv
Posts: 3
++
++ ,
++, 55 , . -1, 1. .
!
-
12th January 2015 13:55 #2
, .
, . .
"640K ught to be enough for anybody" - Bill Gates, 1981
::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel
-
12th January 2015 14:01 #3Registered 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;
}
-
12th January 2015 14:09 #4
1. - [CDE] ... [/CDE]
2. :
3. cin , .Code:for (i = 0; i < N; i++) { for (j = 0; j < M; j++) { ... array[i][j] } }, . .
"640K ught to be enough for anybody" - Bill Gates, 1981
::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel
-
12th January 2015 16:47 #5Registered User
Join Date: Jan:2015
Location: Plovdiv
Posts: 3




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in