View Full Version : c answers


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 [116] 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145

  1. Trying to understand casting, from base to derived.
  2. gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-34)
  3. forward declaration with namespace
  4. question about static "only" member functions
  5. header comment-- is there a std?
  6. another c++ i/o questions
  7. How to delcare a vector of a type which is a template class by itself?
  8. Undefined behaviour or broken compiler?
  9. Question for dbx.
  10. C++ Class Data
  11. Simple C++ graphical program to write ...!!
  12. Which causes more code-bloat: inline virtual or template class?
  13. A question about iterators.
  14. A question about std::lists
  15. operator delete problem.
  16. problem: calling a template member function
  17. Flags
  18. bits of this, bits of that
  19. generational garbage collection
  20. C library in C++ code
  21. Protected Static may as well be public?
  22. Not specifically C++, but worth sharing
  23. Can I remove constant from non-pointer variables
  24. Question for defining pointer.
  25. extern "C" directive and calling conventions
  26. A question on initialize a object with a pointer
  27. Which C++ compiler for Parallel Algorithm?
  28. Initialization lists and passed parameters
  29. how to define operator "<?="
  30. help finding an efficient way to copy dynamic memory!!
  31. How debug STL programs?
  32. BMP-Threshold-8bit-->2 bit-problem-image writing
  33. Linked List
  34. compare bitmaps
  35. question on partial specializatio (class template specialization)
  36. Passing a list of types to a class template
  37. overloading constructor
  38. question about the memory allocation of class members
  39. [MSVC7.1] set_terminate and set_unexpected problem
  40. minor confusion..
  41. Unable to understand the code fragement
  42. static variables and performance
  43. polymorphism
  44. _beginthread -- how to terminate a thread from out side of it.
  45. Why identifiers don't beging with digits?
  46. inheriting from a class template
  47. Why static data members can be declared as the type of its own class
  48. Question about const types
  49. md5sum differs across builds
  50. How to capture last octect of an IP address in C++?
  51. ISAPI problem
  52. ISAPI problem
  53. virtual constructors?
  54. VTABLE virtual function in derived class
  55. C++ implementation for C API ---- converting legacy C code to C++
  56. Iterators on Vector
  57. Operator Overloading and Interdependant Classes
  58. extern "C" struct -> class
  59. string::data() mem function
  60. overloaded operators and namespaces compile problems
  61. comma
  62. using system tray
  63. How do I parse a string into individual characters? (really simple!) really!
  64. Static variable
  65. What's the difference between string::c_str() and string::data()?
  66. Why does Explicit specialization of function templates cause generation of code?
  67. Templates & Implicit Casting
  68. i/o question
  69. Dynamically estimating time needed to complete a program
  70. Conversion of one object type to another
  71. item callback on container or why STL does not have pointer to iterator conversion open?
  72. inheritance - minor confusion.....
  73. is code hazarous?
  74. copy_ptr: request for code review.
  75. Select element from Set randomly?
  76. precondition and postcondition
  77. 60 GB IPOD deal found
  78. (mostly) non OO data dictionary / modelling?
  79. Problem on using "template" in VC/C++ 6.0
  80. using clone() function
  81. medlemsregistret@cf.se
  82. books about deep C++ knowledge?
  83. books on c++
  84. templates problems give compile error
  85. fout.close()
  86. this should be a compile time warning?
  87. Lookup Tables
  88. am I running out of memory?
  89. Inter-process comms - which method?
  90. have I wrong order in assignment operator and cpy-ctor
  91. proposal for template type parameter constraint
  92. Control CPU usage of a program?
  93. Beginner: A question about strings/arrays
  94. Loki TypeTraits bugs
  95. reference object when using STL
  96. Interface hierarchy emulation
  97. cutting up a long in date code?
  98. why not virtual static method
  99. Windows Programming using C++
  100. Exporting C++ Classes from a Static Library and from a DLL
  101. Why avoid constant template parameter
  102. database
  103. convert std::string to (byte*, DWORD)
  104. having trouble with casting operators..
  105. STL
  106. Instance creation
  107. Side Effects of Mutiple inheritance in C++
  108. Lightning Calculator
  109. weird bug w/ a template program
  110. Question about class design
  111. how to replace sscanf in C++,using <string>s
  112. Type casting C vs C++
  113. Const types in map
  114. type
  115. Repeating index - Indirect arrays - valarray
  116. inheritance doesn't works as expected
  117. printf or something like it
  118. dbx question: how to trace deletion of specific object?
  119. garbage collector c++
  120. why reference cannot represent NULL object?
  121. inheritance and polymorfism
  122. Pass by Pointer * or Pass by Reference &?
  123. How do i convert a character array to string.
  124. ifndef
  125. Stepanov Benchmark
  126. Count Down
  127. The other kind of map?
  128. I Need A Vector, Victor
  129. Can This C Code Compile Under g++
  130. create an array by value
  131. fairly basic question on command options
  132. extract number of entries in a line
  133. define new iterators
  134. STL map
  135. Compiler/Linker Error undefined reference to 'std::ios_base::Init::Init[in-charge]()
  136. copy constructor and destructor
  137. Template partial specialisation/inheritance problem
  138. enum within class
  139. Other way to write this?
  140. i got a prOblem, OF FUNTIONS
  141. STL Concurrent Acces
  142. container question
  143. using maximum value of double and int.
  144. string " removed from argv input
  145. Template within a template
  146. STL list insertion compiler error
  147. File Read Issue
  148. Creating inherited class with set base class
  149. Iterator assignment from a pointer
  150. problem with a truth table
  151. Keep index while sorting vectors
  152. const reference
  153. 60 GB PHOTO IPOD DEAL FOUND
  154. findFirstFile, findNextFile
  155. Problems of overloading template operator >>
  156. linked list with templates ...
  157. List with templates...??
  158. placement new and bit fields.
  159. winsock/mingw compile problem (undefined reference)
  160. Indexing an auto_ptr'ed chunk of memory
  161. Marshaling multidimensional array between COM and .NET
  162. const after function name
  163. emacs-calc
  164. INFINITY on gcc 3.3
  165. How to declare enum using attribute in VC++ .Net?
  166. is this the correct code for a bitset map
  167. Linked List Help
  168. Big O notation (Maybe offtopic)
  169. Oko IDDE and DB-manager now shareware
  170. Trouble with namespaces
  171. what next ???
  172. using directive being transitive
  173. Need programmer for develop software (p2p remote administrator).
  174. limitation of template parameters
  175. A question about the diamond inheritance
  176. Polymorphism Design Question
  177. Random Number Not Seeding
  178. using assert
  179. pointers and so
  180. Visual Studio NET Enterprise Architect 2002 and Visual Studio NET 2003 difference
  181. PHP script communicating with C/C++ program
  182. the diamond problem
  183. STL' Set as variable
  184. Handling exceptions in a destructor?
  185. sizeof object
  186. pass by ref vs pass by pointer
  187. using operator overloding with template
  188. Operator overloading, C++ performance crappiness
  189. SQL connectivity in C++
  190. advanced architecture of c++
  191. protected member
  192. one additional querstion about multiple inheritance
  193. question and understanding about multiple inheritance
  194. about delete.
  195. static member function
  196. Can't Find Answer Any Where (What would you do/try): fopen ("file on shared drive","w+") doesn't work on 2nd call using Windows LabView DDL
  197. Adobe Indesign SDK: Interface declaration
  198. Program
  199. How to upgrade config file
  200. Explain this
  201. reference/pointer to arrays type-cast operators
  202. C++ Internal representation of objects
  203. why compile error in multiple inheritance
  204. Sorting a list of objects
  205. pointer arithmetic
  206. A question about design of using virtual or not
  207. confused: vector<char*> and malloc
  208. problem with multiple inheritance
  209. Playsound Function
  210. what is a modul
  211. public inheritance wth advantage and disdvantage
  212. Can I delete an unnamed memory with a certain address?
  213. volatile variables
  214. size of char ch[] = "" ??
  215. Operator overloading advise
  216. Implementation Dependcies in C++
  217. A question about inheritance with template
  218. for_each with a non const member fuction
  219. Copying gsl_rng_state across MPI
  220. generic functions(template functions)
  221. Any new compiler support the `export` of C++ template?
  222. some more inheritance with template
  223. inheritance and name resolution
  224. C++ Primer, 4th Edition
  225. STL map and pthread performance problem on Linux/GCC
  226. C++ code reformatter
  227. How do i save data?
  228. template and inheritanc
  229. template with several classes
  230. "Container-of" in C++
  231. Question about shifting, portability
  232. DsGetDc.h Missing
  233. Anjuta IDE doesn't compile wizard generated Gtkmm projects
  234. defining + and = operator for vector<double>
  235. Problem: references mess up inheritance. Doesn't make sense.
  236. one more template question and some typedef
  237. a Visual C++ question
  238. even one more template question
  239. more template questions
  240. a template question
  241. is it okay to call the overrided assignment function in copy constructor
  242. template link error with GCC v3.3.5
  243. the pointer this
  244. Why does this work has to do with const
  245. A const pointer question
  246. declaring friend
  247. illegal indirections
  248. C++ include statements
  249. C++ includes
  250. C++ casts
  251. Why do I see an incomplete type when I define the constructor outside the class declaration?
  252. c++ book
  253. a C program
  254. strstream depreciation
  255. Programming Win32 Under the API?
  256. C++ for small Windows app?
  257. Created object on stack and then returned this object to caller. Item deleted but still there??
  258. Help Finding Error In std::find code
  259. Uninitialized vector?
  260. Problem with stable_sort when used inside a object's method
  261. Multiplatform Report System for C++
  262. A question about reference counting
  263. reference counting
  264. The bridge design pattern
  265. What book should I study before a new job.
  266. makefile
  267. Safe union?
  268. Segmentation fault
  269. gcc flag to compiling C
  270. Stroustrup answer book?
  271. private inheritance
  272. Interleaving iostream read and write
  273. BiskyMisky
  274. what does 'this' mean if it static
  275. smart pointer
  276. How to deallocate memory when handling exception
  277. Bash and C++, friends?
  278. exception(logic error and runtime error)
  279. tricks to organize code for faster compile
  280. Database
  281. vector by name, recordset/field setup
  282. stack overflow before it attempts to sort 1 & 2 million int arrays
  283. location of names and typedef
  284. g++ 3.4 exception problem
  285. ADCURSORS
  286. custom istream class
  287. Sharing same copy of a member across all instances of a class.
  288. software framework
  289. interface principle
  290. About data-storing problem....
  291. Could someone help me?
  292. advanced template question...
  293. confusion regarding auto pointers
  294. signed integer overflow
  295. C++ lint (detection of unused classes and functions)?
  296. reference attribut
  297. tolower in locale
  298. static class local variable in memeber function
  299. c++ calling java calling c++ ...
  300. Need Help - Structure Required on Left Side
  301. MFC application using COM port for serial communication stops on minimization
  302. Redirect of stdout to pipe 'hangs'
  303. Template Metaprogramming
  304. Hexadecimal To Decimal Conversion (Via Char Array)
  305. PC-Lint
  306. compiler nightmares
  307. about copy constructor and destructor
  308. g++ template problem
  309. what is the most effortless way to add a description comment to a function
  310. using copy constructor
  311. Deallocation upon constructor failure
  312. Developing for Linux Shell Using Windows
  313. Constructor problem - help needed urgently to resolve this
  314. what is wrong with this cerr useage?
  315. heap based objects
  316. Stange Occurance After Using std::Merge On std::vector's
  317. using exceptions
  318. Why doesn't this list copy work?
  319. using inline
  320. query regarding copy constructors
  321. Organizing source in namespaces.
  322. Restructuring Ansi C to C++
  323. std::stringstream::seekg
  324. why define virtual destructor
  325. Why these operators cant be overloaded?
  326. storing return value not using assignment nor memcpy?
  327. Recursion using Stack
  328. How can I get the size of a ASCII file?
  329. random number generator
  330. optional debugging
  331. New member to group qustion
  332. compile errors with list of auto_ptr
  333. undefined reference to `vtable for Base'
  334. conversion from size_t to int
  335. Memory leak
  336. Allocate more memory
  337. casting in VC++ 6
  338. Polymorphic assignment?
  339. char_traits<char>::compare
  340. problem with template class and overloaded methods
  341. G++ 4: Unrecognised Friendship
  342. ifstream::read and pointers to std::vector
  343. copy constructors and the assignment operator
  344. Member arrays and copy-construction
  345. How much memory can I use
  346. read/write file contents
  347. Pointer to member variable of derivied class
  348. error compiling
  349. Static values, does the name matter?
  350. dereferencing pointer and object creation
  351. Why template by return value is forbidden?
  352. extracting data from string streams
  353. Is there is any strong reason not to use standard native C++ data types
  354. strtok help
  355. Extremely low-level serial port programming
  356. Is temporary variable always *const*?
  357. How to optimize? Object gets constructed a 100 million times
  358. lifetime of temp string object
  359. changing throw(...) changes interface?
  360. why VC7 linker complains this undefined...
  361. Crystal Reports with Visual Studio .NET C++
  362. Learning about dynamic memory - Question
  363. call java from c++?
  364. Nested try/catch blocks to give 2 attempts on an operation
  365. index a vector of properties
  366. unsigned char pointer
  367. Best way to cast anythign to void* and back
  368. C++ produced ASM code
  369. Have any solution
  370. std string streams
  371. operators (f.e. new[]) undefined
  372. Why ambiguous base when one is inherited private?
  373. using assignment operator
  374. Problem of random number generate..
  375. forward declarations
  376. Form feed character in header files
  377. using destructor
  378. is "delete" needed?
  379. powerset
  380. C++ books
  381. Printing Counsel Window
  382. How to find whether Object is in HEAP/Stack.
  383. How Does Loop In strcpy Work?
  384. Searching a container
  385. question abot Exceptional C++ (47. eng puzzles) Iby Sutter
  386. Avoiding multiply defined symbols for member functions
  387. recognize utf-8 files
  388. sql question
  389. Best way to return an int as a std::string
  390. transform
  391. comments accross platforms
  392. Data Structure Problem
  393. Data Structure Problem
  394. stl includes
  395. Need help with declarations (simple question)
  396. Ultimate++ 0.98.7 released
  397. Idiotic Question
  398. Preventing the console window from closing when writing a console program in C++
  399. Adding Lib to Dev-Cpp
  400. Using C30 and dsPIC Microchip controllers
  401. book recommendation for C programmer
  402. cannot dynamic_cast 't' (of type 'void*') to type 'struct mom::object*' (source is not a pointer to class)
  403. Polymorphism, iterators and ABCs?
  404. stable_sort with arrays?
  405. Borland C++ Turbo
  406. Effective C++ - item 7 (memory mgt).
  407. vc++ - strtok() access violation
  408. How is :: and -> pronounced?
  409. Converting a float to int (Visual Studio 2003)
  410. template conversion operator clarification needed
  411. audio synthesis libraries / platforms / drivers questions
  412. Abstract Classes, Templates and inheritance...
  413. MySQL, ZeosLib & C++ Builder
  414. GCC, libgcc & thread-safe exception handling
  415. typeid with Qt throws exception
  416. Derive from MFC DLL to MFC APP
  417. string class
  418. C++ forbids declaration of ‘vector’ with no type
  419. AndyD
  420. using copy constructor
  421. good debuger for c++ on linux
  422. C program
  423. test - ignore
  424. Private members and copy constructors
  425. Unable to consume Process reserved memory
  426. string reversal
  427. Default parameter for member array?
  428. Stuffing bytes into structs and endians
  429. Binary Search Tree Help Needed
  430. delete pointer
  431. Adobe GoLive 5.0
  432. maybe a problem with pointers
  433. I am making a project on protocol SNMP
  434. Text template engine?
  435. string streams
  436. Specialization of a method of a templated class
  437. XML libraries for C++
  438. std::ostream data-modifying manipulator?
  439. CPU usage
  440. Problems with C++ Hook
  441. convert a char[4] (binary) to an unsigned long
  442. Makefile for C++ program
  443. Problem with member function of a templated class returning a pointer to an object of the same class
  444. Learning C++
  445. Store a static member functions
  446. problem in calling constructors and destructors
  447. Operator overloading: s1 = s1 + s1;
  448. Linker Errors + Multiple Definition Warnings (Dev-C++ and VS2005)
  449. casting from raw bytes to structures.
  450. unexpected return value
  451. Help with overloading the == operator.
  452. Again in english: Problem with probability formula for gaming logic
  453. std::string with non-type template arg
  454. Problem Wahrscheinlichkeitsrechnung bei Programmierung Fussballmanager
  455. Is C++ faddish like Java?
  456. An STL vector collection of C++ interface pointers?
  457. compiler error with a map<string, enumtype>
  458. Parsing c++ code
  459. How do I find out if drive (possibly WITHOUT file system) exists?
  460. Any down to earth c++ reference guides?
  461. for(int i... and speed
  462. returning const reference and compiler warning
  463. wchar_t and wstring with -fshort-wchar optinon with g++.
  464. typedef error, #define instead?
  465. EOS definition?
  466. Learning C++ and/or C
  467. C++ UML CASE Tool
  468. Visual C++ Forms error question
  469. Graceful error recovery with arithmetic
  470. What's wrong with std::ifstream::read()?
  471. Beginner's question
  472. Name lookup doubt
  473. Convert hex string into GUID without using MFC/ATL/.NET
  474. program hanging returning from a constructor
  475. error casting pointers
  476. static_cast
  477. C++ Sockets interface
  478. casting
  479. object members in vector
  480. Comment code in MS VC++
  481. Array size Template and references to array
  482. Multiple looping
  483. RAII- Am I making life difficult? [LONGISH]
  484. conversion from one container object to another
  485. overloading new[] operator
  486. static analysis tool for c++
  487. Adding variables to variables
  488. About head files for abs?
  489. vectors
  490. Compile time initialization of data.
  491. Boost.Filesystem what would you add?
  492. vtable and such like
  493. Operators overloading
  494. bit operations
  495. Why for the Virtual Destrcutors
  496. Iterators over nested STL container
  497. Query: How to declare a template class member function 'extern "C"' ?
  498. virtual table and shared memory
  499. Cantata++
  500. gotoxy & cprintf for cpp
  501. size of an empty class
  502. How to make new window not steal focus?
  503. Casting Union as hexadecimal and back again
  504. typedef struct {} SName; vs. struct SName{};
  505. static const data member
  506. Callback to member function
  507. exception handling problem
  508. How to partially specialize a class but NOT specialize a member function:
  509. Cannot make const_iterator of templatized hash_map
  510. Detaching primitive from boost::shared_ptr?
  511. sizeof observation
  512. Question of compile C++ code with g++
  513. share object between DLLs
  514. diff of advisory lock and mandatory locks
  515. array size
  516. extern struct variable
  517. Wanna study high quality c++ code
  518. Workaround for number of template args?
  519. ODBC handle classes
  520. Protected members
  521. Search and replace algorithm for string
  522. isNull() method a good idea?
  523. Rogue Wave C++ Standard Library released into Open Source
  524. optimal access/insertion associative array
  525. Pointers and Strings Help
  526. nonmember function
  527. Another program call - Need help
  528. String to int and double conversion?
  529. From printf to C++ formatting
  530. 'Passing' an operator like <, >, == to a template function?
  531. Procedure for eliminating static variables?
  532. high resolution time function under windows platform?
  533. How do you erase an entry from a map?
  534. header file help
  535. Puzzle
  536. about static members in a class.
  537. Using objects returned from functions
  538. ordered subset problem
  539. **Wanted Eastern European C++ Expert **
  540. ctor as protected
  541. What does "formatted" I/O really mean?
  542. design woes ... confused on an implementation approach
  543. memory selection
  544. metrics
  545. What is *this ?
  546. What is *this ?
  547. not "this" again
  548. Problem with <string> values if used in more than one file
  549. ODI's and Sehwag....is there some problem
  550. Question: Compilers