0 / 0 / 0
Регистрация: 04.12.2018
Сообщений: 2
|
||||||
1 | ||||||
Main.cpp: In function ‘int main()’: main.cpp:10:1: error: ‘then’ was not declared in this scope04.12.2018, 21:33. Показов 2442. Ответов 2
Метки нет Все метки)
(
Написал программу и выдает ошибку.
Кликните здесь для просмотра всего текста
main.cpp: In function ‘int main()’:
main.cpp:10:1: error: ‘then’ was not declared in this scope then x >= -b/a && x <= a/b; ^ main.cpp:12:1: error: ‘then’ was not declared in this scope then x >= b/a; ^ main.cpp:14:1: error: ‘then’ was not declared in this scope then cout << "x решений нет"; ^ main.cpp:16:1: error: ‘then’ was not declared in this scope then x <= a/b; ^ main.cpp:17:6: error: no match for ‘operator>>’ (operand types are ‘std::ostream {aka std::basic_ostream}’ and ‘const char [48]’) cout >> "x принадлежит промежутку: " >> x; ^ Помогите, пожалуйста.
__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь
0
|
|
04.12.2018, 21:33 | |
Ответы с готовыми решениями:
2
Вот: source_file.cpp: In function 'int main()': source_file.cpp:10:12: error: 'strlen' was not declared in this scope Main.cpp In file included from main.cpp
Как передать переменные и массивы из main.cpp в mainwindow.cpp? |
Вездепух
![]() ![]() 10431 / 5701 / 1552
Регистрация: 18.10.2014
Сообщений: 14,080
|
|
04.12.2018, 21:36 | 2 |
Что такое
then у вас в коде? Что вы хотели сказать этим then x >= -b/a && x <= a/b; ?
0
|
Нарушитель
8386 / 4390 / 1008
Регистрация: 12.03.2015
Сообщений: 20,553
|
|
04.12.2018, 21:39 | 3 |
0
|
04.12.2018, 21:39 | |
Помогаю со студенческими работами здесь
3
Включение библиотек в main.cpp и my_func.cpp Есть три файла. файл main.cpp и Source.cpp знают только Header.h, так как он подключен. как же подключается Source.cpp Исправить ошибку в WxDev-C++: Error with debugging process: GDB Error: error, No source file named main.cpp Подключение файлов main.cpp some.cpp some.h Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |