|
0 / 0 / 0
Регистрация: 07.02.2012
Сообщений: 5
|
||||||||||||
Ошибки при создании шаблона07.02.2012, 19:25. Показов 1474. Ответов 9
Метки нет (Все метки)
0
|
||||||||||||
| 07.02.2012, 19:25 | |
|
Ответы с готовыми решениями:
9
При введении шаблона игнорируются ошибки Ошибки при создании окна Ошибки при создании .dll |
|
В астрале
8049 / 4806 / 655
Регистрация: 24.06.2010
Сообщений: 10,562
|
|
| 07.02.2012, 19:29 | |
|
alegator52rus, Описание ошибки в студию
0
|
|
|
0 / 0 / 0
Регистрация: 07.02.2012
Сообщений: 5
|
|
| 07.02.2012, 19:56 [ТС] | |
|
(37): error C2374: 'i' : redefinition; multiple initialization
(30) : see declaration of 'i' (50) : error C2374: 'i' : redefinition; multiple initialization (42) : see declaration of 'i' Добавлено через 24 минуты код редактирую вылазиет еще больше ошибок((((
0
|
|
|
Жарю без масла
867 / 749 / 225
Регистрация: 13.01.2012
Сообщений: 1,702
|
||||||
| 07.02.2012, 20:04 | ||||||
|
старый компилятор?
вынесите объявление int i из for
0
|
||||||
|
0 / 0 / 0
Регистрация: 07.02.2012
Сообщений: 5
|
|
| 07.02.2012, 20:15 [ТС] | |
|
это я уже делал выдает 34 ошибки(((
Добавлено через 1 минуту да 6 версия
0
|
|
|
3646 / 1378 / 243
Регистрация: 16.04.2009
Сообщений: 4,526
|
|||
| 07.02.2012, 20:34 | |||
0
|
|||
|
0 / 0 / 0
Регистрация: 07.02.2012
Сообщений: 5
|
|||||||
| 07.02.2012, 20:48 [ТС] | |||||||
|
Вот они
(59) : error C2065: 'N' : undeclared identifier
(35) : see reference to function template instantiation 'int __cdecl fSumma(int *,int)' being compiled (60) : error C2065: 'A' : undeclared identifier (35) : see reference to function template instantiation 'int __cdecl fSumma(int *,int)' being compiled (60) : error C2109: subscript requires array or pointer type (35) : see reference to function template instantiation 'int __cdecl fSumma(int *,int)' being compiled (60) : error C2109: subscript requires array or pointer type (35) : see reference to function template instantiation 'int __cdecl fSumma(int *,int)' being compiled (68) : error C2109: subscript requires array or pointer type (36) : see reference to function template instantiation 'int __cdecl fProizvedenie(int *,int)' being compiled (68) : error C2109: subscript requires array or pointer type 36) : see reference to function template instantiation 'int __cdecl fProizvedenie(int *,int)' being compiled (69) : error C2109: subscript requires array or pointer type (36) : see reference to function template instantiation 'int __cdecl fProizvedenie(int *,int)' being compiled (69) : error C2109: subscript requires array or pointer type (36) : see reference to function template instantiation 'int __cdecl fProizvedenie(int *,int)' being compiled (72) : error C2109: subscript requires array or pointer type (36) : see reference to function template instantiation 'int __cdecl fProizvedenie(int *,int)' being compiled (74) : error C2109: subscript requires array or pointer type (36) : see reference to function template instantiation 'int __cdecl fProizvedenie(int *,int)' being compiled (83) : error C2109: subscript requires array or pointer type (37) : see reference to function template instantiation 'void __cdecl fSortirovka(int [],int)' being compiled (83) : error C2109: subscript requires array or pointer type (37) : see reference to function template instantiation 'void __cdecl fSortirovka(int [],int)' being compiled (84) : error C2109: subscript requires array or pointer type (37) : see reference to function template instantiation 'void __cdecl fSortirovka(int [],int)' being compiled (85) : error C2109: subscript requires array or pointer type (37) : see reference to function template instantiation 'void __cdecl fSortirovka(int [],int)' being compiled (85) : error C2109: subscript requires array or pointer type (37) : see reference to function template instantiation 'void __cdecl fSortirovka(int [],int)' being compiled (85) : error C2106: '=' : left operand must be l-value (37) : see reference to function template instantiation 'void __cdecl fSortirovka(int [],int)' being compiled (86) : error C2109: subscript requires array or pointer type (37) : see reference to function template instantiation 'void __cdecl fSortirovka(int [],int)' being compiled (86) : error C2106: '=' : left operand must be l-value (37) : see reference to function template instantiation 'void __cdecl fSortirovka(int [],int)' being compiled (60) : error C2109: subscript requires array or pointer type (48) : see reference to function template instantiation 'double __cdecl fSumma(double *,int)' being compiled (60) : error C2109: subscript requires array or pointer type (48) : see reference to function template instantiation 'double __cdecl fSumma(double *,int)' being compiled (68) : error C2109: subscript requires array or pointer type (49) : see reference to function template instantiation 'double __cdecl fProizvedenie(double *,int)' being compiled (68) : error C2109: subscript requires array or pointer type (49) : see reference to function template instantiation 'double __cdecl fProizvedenie(double *,int)' being compiled (69) : error C2109: subscript requires array or pointer type (49) : see reference to function template instantiation 'double __cdecl fProizvedenie(double *,int)' being compiled (69) : error C2109: subscript requires array or pointer type (49) : see reference to function template instantiation 'double __cdecl fProizvedenie(double *,int)' being compiled (72) : error C2109: subscript requires array or pointer type (49) : see reference to function template instantiation 'double __cdecl fProizvedenie(double *,int)' being compiled (74) : error C2109: subscript requires array or pointer type (49) : see reference to function template instantiation 'double __cdecl fProizvedenie(double *,int)' being compiled (83) : error C2109: subscript requires array or pointer type (50) : see reference to function template instantiation 'void __cdecl fSortirovka(double [],int)' being compiled (83) : error C2109: subscript requires array or pointer type (50) : see reference to function template instantiation 'void __cdecl fSortirovka(double [],int)' being compiled (84) : error C2109: subscript requires array or pointer type (50) : see reference to function template instantiation 'void __cdecl fSortirovka(double [],int)' being compiled (85) : error C2109: subscript requires array or pointer type (50) : see reference to function template instantiation 'void __cdecl fSortirovka(double [],int)' being compiled (85) : error C2109: subscript requires array or pointer type (50) : see reference to function template instantiation 'void __cdecl fSortirovka(double [],int)' being compiled (85) : error C2106: '=' : left operand must be l-value (50) : see reference to function template instantiation 'void __cdecl fSortirovka(double [],int)' being compiled (86) : error C2109: subscript requires array or pointer type (50) : see reference to function template instantiation 'void __cdecl fSortirovka(double [],int)' being compiled (86) : error C2106: '=' : left operand must be l-value (50) : see reference to function template instantiation 'void __cdecl fSortirovka(double [],int)' being compiled
0
|
|||||||
|
3646 / 1378 / 243
Регистрация: 16.04.2009
Сообщений: 4,526
|
|
| 07.02.2012, 20:53 | |
|
alegator52rus, не-а. 5-6 от силы. А вообще, исправив abs на fabs, получил кое-что http://liveworkspace.org/code/... 4fc6f03085 Ну и int main конечно!
0
|
|
|
Модератор
13771 / 10964 / 6491
Регистрация: 18.12.2011
Сообщений: 29,242
|
|
| 07.02.2012, 20:55 | |
|
Попробуйте функцию main()
поставить в самый конец проекта. Есть подозрение, что 6 версия не может реализовать вызов не имея реализованного шаблона.
0
|
|
|
0 / 0 / 0
Регистрация: 07.02.2012
Сообщений: 5
|
|
| 07.02.2012, 21:04 [ТС] | |
|
не че не изменилосm((
0
|
|
| 07.02.2012, 21:04 | |
|
Помогаю со студенческими работами здесь
10
Ошибки при создании объекта в другом файле Ошибки при создании vector'a пользовательского класса Ошибки в выполнении программы при динамическом создании структуры Краш при создании чекпоинта: найти и исправить ошибки в коде Проблемы при создании и построении проекта Microsoft Visual Studio 2008 Ошибки! Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |
|
Новые блоги и статьи
|
|||
|
SDL3 для Web (WebAssembly): Обработчик клика мыши в браузере ПК и касания экрана в браузере на мобильном устройстве
8Observer8 02.02.2026
Содержание блога
Для начала пошагово создадим рабочий пример для подготовки к экспериментам в браузере ПК и в браузере мобильного устройства. Потом напишем обработчик клика мыши и обработчик. . .
|
Философия технологии
iceja 01.02.2026
На мой взгляд у человека в технических проектах остается роль генерального директора. Все остальное нейронки делают уже лучше человека. Они не могут нести предпринимательские риски, не могут. . .
|
SDL3 для Web (WebAssembly): Вывод текста со шрифтом TTF с помощью SDL3_ttf
8Observer8 01.02.2026
Содержание блога
В этой пошаговой инструкции создадим с нуля веб-приложение, которое выводит текст в окне браузера. Запустим на Android на локальном сервере. Загрузим Release на бесплатный. . .
|
SDL3 для Web (WebAssembly): Сборка C/C++ проекта из консоли
8Observer8 30.01.2026
Содержание блога
Если вы откроете примеры для начинающих на официальном репозитории SDL3 в папке: examples, то вы увидите, что все примеры используют следующие четыре обязательные функции, а. . .
|
|
SDL3 для Web (WebAssembly): Установка Emscripten SDK (emsdk) и CMake для сборки C и C++ приложений в Wasm
8Observer8 30.01.2026
Содержание блога
Для того чтобы скачать Emscripten SDK (emsdk) необходимо сначало скачать и уставить Git: Install for Windows. Следуйте стандартной процедуре установки Git через установщик. . . .
|
SDL3 для Android: Подключение Box2D v3, физика и отрисовка коллайдеров
8Observer8 29.01.2026
Содержание блога
Box2D - это библиотека для 2D физики для анимаций и игр. С её помощью можно определять были ли коллизии между конкретными объектами. Версия v3 была полностью переписана на Си, в. . .
|
Инструменты COM: Сохранение данный из VARIANT в файл и загрузка из файла в VARIANT
bedvit 28.01.2026
Сохранение базовых типов COM и массивов (одномерных или двухмерных) любой вложенности (деревья) в файл, с возможностью выбора алгоритмов сжатия и шифрования.
Часть библиотеки BedvitCOM
Использованы. . .
|
SDL3 для Android: Загрузка PNG с альфа-каналом с помощью SDL_LoadPNG (без SDL3_image)
8Observer8 28.01.2026
Содержание блога
SDL3 имеет собственные средства для загрузки и отображения PNG-файлов с альфа-каналом и базовой работы с ними. В этой инструкции используется функция SDL_LoadPNG(), которая. . .
|