|
|
Регистрация Восстановить пароль |
Регистрация | Задать вопрос |
Заплачу за решение |
Новые сообщения |
Сообщения за день |
Расширенный поиск |
Правила |
Всё прочитано |
|
Опции темы | Поиск в этой теме |
03.04.2018, 00:57 | #1 |
Пользователь
Регистрация: 30.01.2016
Сообщений: 34
|
Выражение должно иметь тип класса
Код:
if (radioButton2.Checked == true) { variant = 2; } выражение должно иметь тип класса _____ Код программы нужно выделять (форматировать) тегами [CODE] (читать FAQ) Модератор Последний раз редактировалось Serge_Bliznykov; 03.04.2018 в 09:04. |
03.04.2018, 07:33 | #2 |
Старожил
Регистрация: 15.02.2010
Сообщений: 15,760
|
Если они описаны не в классе, то и обращаться надо через объект, например, form1
|
03.04.2018, 08:49 | #3 |
Пользователь
Регистрация: 30.01.2016
Сообщений: 34
|
|
03.04.2018, 09:39 | #4 |
Старожил
Регистрация: 15.02.2010
Сообщений: 15,760
|
Не могу. У меня нет вашего кода.
|
03.04.2018, 10:59 | #5 |
Программист
Участник клуба
Регистрация: 23.06.2009
Сообщений: 1,772
|
У Вас же C++/CLI, там это пишется через стрелку:
Код:
|
Похожие темы | ||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
как указатель в классе может указывать на другой узел списка если он имеет тип самого этого класса? | EricJForster | Общие вопросы C/C++ | 1 | 08.07.2016 00:13 |
C++ в чем проблема? Не могу обратиться к элементам массива A. Пишет "выражение должно иметь тип указателя" | Praud | Помощь студентам | 3 | 04.05.2014 18:53 |
Зачем у "TStringList" свойству "Count" иметь знаковый тип (Integer) ? | malor | Общие вопросы Delphi | 15 | 27.04.2013 13:39 |
Выражение должно иметь константное значение? Си | snqL | Общие вопросы C/C++ | 6 | 14.10.2011 22:12 |
строковое выражение числа должно быть переведено в вещественный тип | Wi1D | Помощь студентам | 8 | 09.02.2009 18:16 |