Форум программистов, компьютерный форум CyberForum.ru

Утечка памяти - C++

Войти
Регистрация
Восстановить пароль
Другие темы раздела
C++ в одномерном массиве, состоящем из n вещественных элементов, вычислить: http://www.cyberforum.ru/cpp-beginners/thread127252.html
1) сумму элементов массива с нечетными номерами; 2) сумму элементов массива, расположенных между первым и последним отрицательными элементами. Сжать массив, удалив из него все элементы, модуль которых не превышает 1. Освободившиеся в конце массива элементы заполнить нулями.
C++/CLI WinForms Как передать TextBox функции В общем, есть Windows Forms Application. Там создал TextBox. Как его передать (использовать в) другой функции? (которая принадлежит другому заголовочному файлу, соответственно, не видит TextBox) http://www.cyberforum.ru/cpp-beginners/thread127242.html
Нити и процессы C++
Посоветуйте хорошую книгу по процессам и нитям, мьютексам и семафорам. Мне предложили книгу А. П. Побегайло - Системное программирование в Windows. Как считаете хорошая книга???
C++ Распечатать количество вхождений заданного слова в каждую строку и заменить его на другое заданное слово
Даны две строки, содержащие не более 100 символов. Строки состоят из слов, разделенных пробелами. Распечатать количество вхождений заданного слова в каждую строку и заменить его на другое заданное слово. Распечатать полученные строки. как реализовать этот алгоритм?
C++ Структуры http://www.cyberforum.ru/cpp-beginners/thread127227.html
Привет всем. Вот я начал своё знакомство со структурамми.Попытался создать картотеку квартир #include<iostream.h> #include<cctype> #include<cstring> #include<cstdlib> const int size=100; struct cart_type { char ad;//адрес int flor;//этаж double area;//площадь
C++ оператор Саse Составить программу расчёта и печати одной из четырёх функций в зависимости от следующих условий: u = 4,2 tg x2, при х = 1; v = 3,14 sin2x –2x, при х = 2,3; w = 7,11 ln x + 5x, при х = 3; z = cos 2x – 9,15x, при х = 4. #include<iostream.h> #include<math.h> #include<conio.h>... подробнее

Показать сообщение отдельно
savak
2 / 2 / 0
Регистрация: 28.03.2009
Сообщений: 61
09.05.2010, 20:47  [ТС]     Утечка памяти
List errors
1>c:\program files\microsoft visual studio 9.0\vc\include\xdebug(32) : warning C4229: anachronism used : modifiers on data are ignored
1>c:\program files\microsoft visual studio 9.0\vc\include\xdebug(32) : error C2365: 'operator new' : redefinition; previous definition was 'function'
1>c:\program files\microsoft visual studio 9.0\vc\include\xdebug(32) : error C2491: 'new' : definition of dllimport data not allowed
1>c:\program files\microsoft visual studio 9.0\vc\include\xdebug(32) : error C2078: too many initializers
1>c:\program files\microsoft visual studio 9.0\vc\include\xdebug(32) : error C2440: 'initializing' : cannot convert from 'int' to 'void *'
1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
1>c:\program files\microsoft visual studio 9.0\vc\include\xdebug(32) : error C2143: syntax error : missing ';' before '('
1>c:\program files\microsoft visual studio 9.0\vc\include\xdebug(32) : error C2226: syntax error : unexpected type 'size_t'
1>c:\program files\microsoft visual studio 9.0\vc\include\xdebug(33) : error C2059: syntax error : ')'
1>c:\program files\microsoft visual studio 9.0\vc\include\xdebug(36) : warning C4229: anachronism used : modifiers on data are ignored
1>c:\program files\microsoft visual studio 9.0\vc\include\xdebug(36) : error C2365: 'operator new' : redefinition; previous definition was 'function'
1>c:\program files\microsoft visual studio 9.0\vc\include\xdebug(36) : error C2491: 'new' : definition of dllimport data not allowed
1>c:\program files\microsoft visual studio 9.0\vc\include\xdebug(36) : error C2078: too many initializers
1>c:\program files\microsoft visual studio 9.0\vc\include\xdebug(36) : error C2440: 'initializing' : cannot convert from 'int' to 'void *'
1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
1>c:\program files\microsoft visual studio 9.0\vc\include\xdebug(36) : error C2143: syntax error : missing ';' before '['
1>c:\program files\microsoft visual studio 9.0\vc\include\xdebug(36) : error C3409: empty attribute block is not allowed
1>c:\program files\microsoft visual studio 9.0\vc\include\xdebug(36) : error C2226: syntax error : unexpected type 'size_t'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(143) : error C2059: syntax error : 'constant'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(144) : error C2091: function returns function
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(144) : error C2802: static member 'operator new' has no formal parameters
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(144) : error C2333: 'std::locale::facet::operator new' : error in function declaration; skipping function body
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(149) : error C2059: syntax error : 'constant'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(151) : error C2091: function returns function
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(151) : error C2556: 'void *(__cdecl *std::locale::facet::operator new(void))(size_t,const std::_DebugHeapTag_t &,char *,int)' : overloaded function differs only by return type from 'void *(__cdecl *std::locale::facet::operator new(void))(size_t)'
1> c:\program files\microsoft visual studio 9.0\vc\include\xlocale(143) : see declaration of 'std::locale::facet::operator new'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(152) : error C2059: syntax error : 'return'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(152) : error C2238: unexpected token(s) preceding ';'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(155) : error C2628: 'std::locale::facet' followed by 'void' is illegal (did you forget a ';'?)
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(157) : error C2487: 'delete' : member of dll interface class may not be declared with dll interface
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(157) : error C2817: return type for 'operator delete' must be 'void'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(157) : error C2333: 'std::locale::operator delete' : error in function declaration; skipping function body
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(162) : error C2487: 'delete' : member of dll interface class may not be declared with dll interface
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(169) : error C2523: 'std::locale::~facet' : destructor tag mismatch
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(170) : error C2487: '{dtor}' : member of dll interface class may not be declared with dll interface
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(174) : error C2590: 'facet' : only a constructor can have a base/member initializer list
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(174) : error C2487: 'std::locale::{ctor}' : member of dll interface class may not be declared with dll interface
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(186) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(186) : warning C4183: 'facet': missing return type; assumed to be a member function returning 'int'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(187) : error C2143: syntax error : missing ';' before '&'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(187) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(187) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(187) : error C2143: syntax error : missing ',' before '&'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(187) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(119) : error C2327: 'std::locale::_Refs' : is not a type name, static, or enumerator
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(119) : error C2065: '_Refs' : undeclared identifier
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(120) : error C2327: 'std::locale::_Refs' : is not a type name, static, or enumerator
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(120) : error C2065: '_Refs' : undeclared identifier
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(127) : error C2327: 'std::locale::_Refs' : is not a type name, static, or enumerator
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(127) : error C2065: '_Refs' : undeclared identifier
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(127) : error C2327: 'std::locale::_Refs' : is not a type name, static, or enumerator
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(127) : error C2065: '_Refs' : undeclared identifier
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(128) : error C2327: 'std::locale::_Refs' : is not a type name, static, or enumerator
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(128) : error C2065: '_Refs' : undeclared identifier
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(129) : error C2327: 'std::locale::_Refs' : is not a type name, static, or enumerator
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(129) : error C2065: '_Refs' : undeclared identifier
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(163) : error C2059: syntax error : ')'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(197) : error C2504: 'facet' : base class undefined
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(207) : error C2061: syntax error : identifier 'facet'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(222) : error C2061: syntax error : identifier 'facet'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(228) : error C2061: syntax error : identifier 'category'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(231) : error C2061: syntax error : identifier 'category'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(235) : error C2061: syntax error : identifier 'category'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(239) : error C2061: syntax error : identifier 'category'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(241) : error C2143: syntax error : missing ';' before '*'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(241) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(241) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(243) : error C2146: syntax error : missing ';' before identifier '_Catmask'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(243) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(243) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(212) : error C2065: 'none' : undeclared identifier
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(213) : error C2614: 'std::_Locimp' : illegal member initialization: '_Catmask' is not a base or member
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(213) : error C2614: 'std::_Locimp' : illegal member initialization: '_Facetvec' is not a base or member
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(213) : error C2614: 'std::_Locimp' : illegal member initialization: 'facet' is not a base or member
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(217) : error C2039: '_Catmask' : is not a member of 'std::_Locimp'
1> c:\program files\microsoft visual studio 9.0\vc\include\xlocale(196) : see declaration of 'std::_Locimp'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(218) : error C2614: 'std::_Locimp' : illegal member initialization: '_Catmask' is not a base or member
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(218) : error C2614: 'std::_Locimp' : illegal member initialization: '_Facetvec' is not a base or member
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(218) : error C2614: 'std::_Locimp' : illegal member initialization: 'facet' is not a base or member
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(224) : error C2065: '_Pfacet' : undeclared identifier
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(224) : error C2065: '_Id' : undeclared identifier
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(259) : error C2065: 'facet' : undeclared identifier
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(259) : error C2065: '_Fac' : undeclared identifier
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(259) : error C2275: 'size_t' : illegal use of this type as an expression
1> c:\documents and settings\virex\мои документы\visual studio 2008\projects\coursework2\coursework2\predefined c++ types (compiler internal)(19) : see declaration of 'size_t'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(259) : error C2146: syntax error : missing ')' before identifier '_Id'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(259) : error C2078: too many initializers
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(259) : error C2275: 'size_t' : illegal use of this type as an expression
1> c:\documents and settings\virex\мои документы\visual studio 2008\projects\coursework2\coursework2\predefined c++ types (compiler internal)(19) : see declaration of 'size_t'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(260) : error C2059: syntax error : ')'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(261) : error C2143: syntax error : missing ';' before '{'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(261) : error C2447: '{' : missing function header (old-style formal list?)
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(286) : error C2270: '()' : modifiers not allowed on nonmember functions
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(286) : error C2801: 'std::operator ()' must be a non-static member
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(304) : error C2270: 'combine' : modifiers not allowed on nonmember functions
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(307) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(307) : error C2904: 'locale' : name already used for a template in the current scope
1> c:\program files\microsoft visual studio 9.0\vc\include\xlocale(62) : see declaration of 'std::locale'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(323) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(323) : error C3861: '_Init': identifier not found
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(324) : error C2550: 'std::locale' : constructor initializer lists are only allowed on constructor definitions
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(325) : error C2227: left of '->_Incref' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(325) : error C3861: '_Getgloballocale': identifier not found
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(326) : warning C4508: 'std::locale' : function should return a value; 'void' return type assumed
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(329) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(330) : warning C4508: 'std::locale' : function should return a value; 'void' return type assumed
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(332) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(332) : error C2143: syntax error : missing ',' before '&'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(333) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(333) : error C2065: '_Right' : undeclared identifier
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(333) : error C2228: left of '._Ptr' must have class/struct/union
1> type is ''unknown-type''
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(334) : error C2550: 'std::locale' : constructor initializer lists are only allowed on constructor definitions
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(335) : error C2227: left of '->_Incref' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(336) : warning C4508: 'std::locale' : function should return a value; 'void' return type assumed
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(338) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(338) : error C2143: syntax error : missing ',' before '&'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(340) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(340) : error C2084: function 'int std::locale(const int) throw()' already has a body
1> c:\program files\microsoft visual studio 9.0\vc\include\xlocale(332) : see previous definition of 'locale'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(340) : error C2061: syntax error : identifier '_DebugHeapTag_func'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(340) : error C2612: trailing 'identifier' illegal in base/member initializer list
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(340) : error C2550: 'std::locale' : constructor initializer lists are only allowed on constructor definitions
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(340) : error C2065: '_Loc' : undeclared identifier
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(340) : error C2228: left of '._Ptr' must have class/struct/union
1> type is ''unknown-type''
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(340) : error C2059: syntax error : ')'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(341) : error C2143: syntax error : missing ';' before '{'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(343) : error C2065: '_Loc' : undeclared identifier
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(343) : error C2228: left of '._Ptr' must have class/struct/union
1> type is ''unknown-type''
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(343) : error C2227: left of '->_Catmask' must point to class/struct/union/generic type
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(343) : error C2065: '_Loc' : undeclared identifier


эмммм.. вотъ
 
Текущее время: 08:10. Часовой пояс GMT +3.
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Рейтинг@Mail.ru