logo

Crowdly

Looking for test answers and solutions? Browse our comprehensive collection of verified answers for at eln.stu.cn.ua.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Клас для роботи з масивом заданий наступним чином:

class Masiv

 {

public:      Masiv(int N=3, int M=4);

                 void InputMas(int i, int j, double ms);

                 double OutputMas(int i, int j);

                 void SetN(int);

                 int GetN();

                 void SetM(int);

                 int GetM();

                 void Transponired(Masiv);

                 ~Masiv();

private:    double mas[100][100];

                int n,m;           

} A, *B;

 

Для чого, найвірогідніше, використовуються елементи цього класу? Оберіть відповідність.

View this question

У наступному коді роботи з віджетом tableWidget_2:

1:    ui->tableWidget_2->setRowCount(m);

2:    ui->tableWidget_2->setColumnCount(n);

3:     for(int i=0;i<m;i++)

4:     for(int j=0;j<n;j++)

5:      {

6:        b[i][j]=a[j][i];

7:        QTableWidgetItem *ptw=0;

9:        ptw=new QTableWidgetItem(QString::number(b[i][j]));

10:       ui->tableWidget_2->setItem(i,j,ptw);

11:       }

Які дії робляться у рядках з 3-го по 7-й  ?

0%
100%
0%
0%
100%
0%
100%
0%
100%
View this question

Поставте у відповідність правильний опис методів для встановлення властивостей віджету tableWidget.

View this question

Які фрагменти коду треба виконати, щоб налаштувати віджет ui->tableWidget для роботи з вектором-стовпчиком з N елементів?

0%
100%
0%
0%
0%
0%
100%
0%
0%
0%
View this question

Скільки комірок по замовчуванню у стандартного віджета tableWidget у Qt для роботи з масивами?

0%
0%
0%
0%
0%
100%
0%
0%
View this question

У наступному коді роботи з віджетом tableWidget:

1:  ui->tableWidget->setRowCount(p);

2:  ui->tableWidget->setColumnCount(d);

3:    for(int i=0;i<p;i++)

4:      for(int j=0;j<d;j++) {

5:   QTableWidgetItem *ptw=0;

6:   ptw=new QTableWidgetItem("");

7:   ui->tableWidget->setItem(i,j,ptw);

8:    }

9:  for(int i=0;i<p;i++)

10:    for(int j=0;j<d;j++)

11:     a[i][j]=ui->tableWidget->item(i,j)->text().toDouble();

Які дії робляться у рядках з 9-го по 11-й  ?

100%
100%
0%
0%
0%
100%
0%
0%
View this question

class MC

public:

    void SetA(int=0);      

     MC();            

    int GetA(void);          

    ~MC();                

    int A;                     

    double BC;            

protected:

    int F(int);                  

};

У цьому класі конструктором є:

0%
100%
0%
0%
0%
View this question

Що не є маніпулятором формату

0%
0%
0%
0%
100%
0%
0%
0%
0%
0%
View this question
Що виведе на екран програма:

#inсlude<іostream>

#inсlude<iomanip>

using namespaсe std;

іnt main()

{

іnt x=32;

сout << setiosflags(ios::showpos) << left << setfіll('+') << setw(8)<< x;

return0;

}

 
0%
0%
0%
0%
0%
0%
0%
100%
View this question

Чим відрізняються старий та новий стиль С++?

0%
0%
100%
0%
0%
View this question

Want instant access to all verified answers on eln.stu.cn.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!