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. How to Replace CR\LF
  2. Indestructible pointer: Sample code for feedback
  3. Good code-generating visual designers for Windows C++ compilers?
  4. "Principles Of Compiler Design" answers to questions
  5. why we need a function to be static
  6. How to use this member template
  7. calculator prototype
  8. Separating a class definition into header and source files
  9. Why is the constructor never called ?
  10. How can I output html file to another directory!
  11. How can I output html file to another directory!
  12. Visual C++ .Net Problem
  13. using default values on <Enter> with no input
  14. How to convert to WAV file with a specific requirement....
  15. C++ cross platform development
  16. What the fastest way to copy strings from file to a vector?
  17. How should I set the values of these static data members?
  18. Private container, public iterator
  19. Efficiency Issue - true or false?
  20. from std::string to std::istream?
  21. std::string - case insensitive?
  22. mem_fun vs mem_fun_ref
  23. C++ .net, reading an opened file.
  24. common baseclass for stl classes?
  25. File Handling
  26. borland c++ event handler crash
  27. Something like bigint / GMP?
  28. \b ?
  29. CListCtrl
  30. c++ annotation wanted(sorry OT)
  31. How come this C++ segment doesn't work?
  32. function adaptors for member functions
  33. NDK Network Development Kit - doubt
  34. Object member functions and runtime memory consumption
  35. basic stack functions
  36. multiple projects in Dev-C++?
  37. c++ help (new to programming)
  38. Windows Compiler with format-string warning option ?
  39. Using a macro, can I change what type an object is being cast to?
  40. mobile phone keyboard
  41. WSAEventSelect Help
  42. why static_cast needed here to produce proper output
  43. Initialising stl containers
  44. GCC Cygwin C++ DLL linking problem
  45. GDB .... no debugging symbols found
  46. Functions returning pointers
  47. Miscrosoft speech SDK 5.1 for C++ .net
  48. Difference between variable declarations...
  49. weird error
  50. Enumerations as case labels
  51. Catching FP division by 0?
  52. std::search question...
  53. Input output
  54. C++ program to perform extensive data IO task, 160MB/s.
  55. Is a const parameter generally optimized to a reference?
  56. Reference parameters and anonymous objects
  57. object file
  58. Problem with basic templates on GCC
  59. [RW] Rogue Wave standard library -- unbelievable bug
  60. how implement getline ?
  61. equivalent of getch() with <iostream>
  62. Question about pointers
  63. What's difference between f(const MyClass & in) and f(MyClass in)
  64. allocating array in function
  65. Wildcard handling with STL
  66. Declaring constants within the scope of a class
  67. Correct C++ tutorial chapter 2.1 "Classes" available (Windows, mingw/msvc/std)
  68. polymorphism, overloading...
  69. optimizing code
  70. Sinewave Generator
  71. Templated copy constructor
  72. object destruction
  73. delete problem
  74. Template name lookup
  75. CFP: International Conference on Intelligent Agents, Web Technologies and Internet Commerce
  76. cin after reditected file?
  77. getting a type ID during new operator overloading
  78. delete object array question
  79. problem with function pointers
  80. std::bitset, standard and endianess
  81. Using a fstream reference with getline
  82. gcc 2.95 and gcc 3.2
  83. strange link error when STL is used
  84. string literal does not match array template parameter
  85. static_cast etc
  86. Looking for C++ implementations of a particular pattern
  87. debug gives different result than run
  88. I don't understand this code.
  89. Getting class type
  90. Adress of a struct vs address of its first field
  91. Does filename has to be the same as funtion name??
  92. help
  93. Random numbers something insatiable ?
  94. STL newie
  95. Using for_each() to deallocate memory
  96. Structures
  97. Problem with unary function for_each
  98. Is returning a reference to a constant undefined?
  99. "extern" for the same file leads to wrong result. bug or feature?
  100. Invalid suffix to floating constant
  101. WAN IP adress
  102. Very simple screensaver in VC++
  103. std::map<int,std::set<std::string> > Wrong? (Segmentation fault.)
  104. How can i find when a variable is out of scope?
  105. Deleteing Objects from std::vector
  106. the different between aaa m1[100] and aaa *p = new [100]
  107. RTTI
  108. How to use running ActiveX exe in another program instance ?
  109. Why Am I Getting an Inverted Question Mark?
  110. C++ SDL Makefile for MPW on Mac OS 9
  111. # character
  112. threads question
  113. pass pointer to a thread function ?
  114. how to make object sortable for use in STL containers
  115. how to cast stack-based class?
  116. Ksiazki dla poczatkujacych
  117. Compile time constants - few questions...
  118. can a class definition inside another class's definition
  119. File Deletion Problems
  120. problem about array of object
  121. Design pattern for file cache
  122. C++ theory
  123. Please help me write a functor template
  124. looking for version of portfwd ported to HPUX
  125. how to include a templatized variable in another class
  126. Suggestions on casting needed
  127. enum { A,B, }
  128. New POTM Contest: Deadline May 31, 2005
  129. Pseudocode Help
  130. alloc 2d array with new
  131. Classses of each other
  132. Digraph Class
  133. Any way to get rid of the cast when calling get_value()?
  134. how to do a "REAL" string compare?
  135. std::list & sorting
  136. [BEGINNER] Some questions
  137. nakładki
  138. Read a binary file
  139. How to test string library functions ?
  140. Copy Constructor and other questions
  141. Private/protected inheritance problem
  142. displaying ints in price form
  143. How do I...?
  144. MCISendString() - Playing MCI files from memory
  145. Making a global variable
  146. Inheritance query
  147. Wrong way to pass pointer by value in functions
  148. design pattern/ class relationship
  149. c++ and windows api
  150. What is "stdafx.h" for in VS.Net?
  151. Pointer to member function
  152. Using vector units
  153. wierd template
  154. Is it an undefined behavior in C++ Standard?
  155. Quick and dirty C++ managed memory
  156. Can the Forward Declaration contain the infomation of inheritance ?
  157. Point me in the way to a timer?
  158. Converting String to Integer or Double
  159. Using a modifier method inside the constructor
  160. Simple files.
  161. Streams and Serilzation.
  162. Conversion Operator question
  163. illegal espace sequence question
  164. help with code and error msg plz
  165. Return value of std::map::erase()
  166. In search of a good example.
  167. Q: Map of pointers to member functions
  168. error in mystrcat
  169. Need help : -O2 flag and GDB
  170. Question about passing by const reference
  171. Pretty code
  172. Problems with reading binary data files
  173. Polymorphic types and a lot of confusion....
  174. C++ Question
  175. inaccurate floating point and DBL_MAX
  176. Do using declarations respect private, protected, public access levels?
  177. bind2nd question
  178. why is "delete" an expression?
  179. KToon: 2D Animation Toolkit
  180. Building an ATL ActiveX Sink
  181. A big thanks to you all
  182. Wierd Behaviour: Crash at 'delete' of memory.
  183. Use Real 1GB and Fake 3GB Memory?
  184. Best Practices GUI Design Whitepaper
  185. Getting AXIS C++ to Interoperate with Python
  186. simple(?) question about template
  187. C++ FAQ
  188. Overflow
  189. pointer arithmetic with inheritance
  190. Concatenating Calls
  191. Alias de template comme parametre de fonction template
  192. std::maps within std::maps -- optimisation
  193. Error with __extension__
  194. Dispatch Interface question
  195. aribitrary length arithmetic
  196. Date conversions in C or C++
  197. WndProc - Windows Classes Question
  198. OSS 2005 Conference -- Call For Experience Report
  199. Best practices for referring to other namespaces in header files
  200. Thread Start Time and End time
  201. Pointer List How?
  202. friends and templates
  203. Which is the best C++ compiler for Windows ?
  204. Which C++ compiler do you use for windows and why ?
  205. using templates as substitutions for #ifdef
  206. when can pass by value be dangerous?
  207. Interview questions in C++ and OO
  208. std::list member in class? - vc6 problem?
  209. How to do MFC code change when a field type in the underlying data base is changed
  210. inheritance and memory layout
  211. Backtracking recursion problem
  212. Strange email address
  213. when to use uint? dis/advantages?
  214. What is wrong with this code?
  215. advice on using mutable
  216. query on std::make_pair()
  217. issue with << and >> overloading
  218. How to set up virtual "get" methods?
  219. How to open VERY large file using std::ifstream
  220. Deleting sub-list from list
  221. Advantages of C++ over C - request for information
  222. Derived classes question
  223. From char* iterators to char* strings
  224. VC6 compiling problem
  225. permutations and combinations
  226. Reducing build-times for large projects.
  227. getting avg of long and std::vector::size_type
  228. Problem with default parameters in templated functions
  229. Static Vars in member-functions?
  230. std::map - erase+continue
  231. Adjacency list representation
  232. operator <<=
  233. i++ or ++i, any difference?
  234. Using 'random_sample'...
  235. Copy algorithm with insert iterators...
  236. i used to post question
  237. redirecting stdout to nowhere
  238. Grpah bridge
  239. Small C++ exercise
  240. any classes help me to measure some program segment runing time.
  241. Not C++ but...
  242. Help me find a good typedef name for the following type
  243. Question about Files.
  244. g++ typedef inheritance
  245. Circular dependencies in Templates - better solution?
  246. What C++ has promised you ?
  247. cin and cin.getline()
  248. Assignment from scalar to user-defined type
  249. core dump when using ifstream
  250. DBL_MAX
  251. [ICSEng'05] Final CFP - due date March 10, 2005
  252. [ICCIMA'05] Final Call for Papers; Due Date March 10, 2005
  253. Initialization of static objects
  254. Iterator and arrays
  255. Function template + overloading + polymorphism
  256. Teaching new tricks to an old dog (C++ -->Ada)
  257. [BEGINNER] new keyword
  258. Help with assembler thing
  259. why sizeof can't be overloaded?
  260. the virtual keyword
  261. How can I use 2 dimention pointer
  262. #include "file" -vs- #include <file>
  263. question on try/catch
  264. integer or long overflow...
  265. getline() and a '\0' as a delimiter
  266. Memory Problem part 2
  267. delete a void * pointer ?
  268. Memory problems
  269. Problem with destructor
  270. Changing CreateQuad() defined Texture - D3D
  271. Which is the proper header to include for std::pair?
  272. validity of pointers to vectors
  273. How C and C++ are context sensitive
  274. Syntax question
  275. about filehandling
  276. ld: 0711-317 ERROR: Undefined symbol: .__vec__delete2
  277. UNIX signals & C++
  278. can you return a void function call?
  279. exception in a constructor
  280. Class design...
  281. Am I right in thinking a return value is carried over into a __finally statement?
  282. Why we need symbol files for GDI32.dll or Kernel32.dll etc...
  283. Navigating C++
  284. Backward traversal of sequence container: stop condition
  285. class design question
  286. how to compare two number sequences
  287. UnOverRideable member functions?
  288. extern const in c++
  289. problem with array sorting - urgent responce needed, due tommrow
  290. rdbuf() stream
  291. benefits of precompiled headers
  292. What are the threading options in C++
  293. errno, etymology thereof
  294. what is (const String& str)?
  295. Any good static analysis tools out there?
  296. operator overloading question
  297. Set of vectors and...
  298. throw specifiers only when debugging
  299. typing characters in TEdit starts principal form's shortcuts In Borland c++ 6.
  300. Does "void func(MyClass *& myCls)" make sense?
  301. get vector from iterator
  302. assignment in class
  303. asignment in class
  304. asignment in class
  305. Container with Abstract Type
  306. Swapping data between vector and map...
  307. How to disable warning C4786 in VC++ 6.0?
  308. Problem overriding >> and << in a template class
  309. multiple files
  310. Weird const-ness troubles
  311. validity of begin() on empty string or vector
  312. ostringstream / ostrstream problem
  313. ToString behavior
  314. Code Clean up (refactoring?)
  315. COM mechanism - please help!
  316. Removal Of Elements in a Vector Conatings User-Defined Object Basedon Value Contained in Object
  317. Initializing a subset of state
  318. Boost and austria C++
  319. operator = override
  320. Advanced C++ Book Suggestion
  321. ABC vs. CRTP?
  322. Functor and function pointers
  323. Why does std::exception constructor specifies it can throw any ?
  324. istream trouble
  325. much optimizing = bad code ? (array/vector)
  326. How to read...?
  327. TAPI
  328. need help with operations stability
  329. Return pointer or variable by ref.?
  330. please help me view the code
  331. Template function type for arithmetic operators for elementary types
  332. C++ programming migration from DOS to Windows
  333. C++ programming migration from DOS to Windows
  334. printf a 64-bit number
  335. Is pass by reference thread safe?
  336. New to c++, need help with a template class
  337. replacing chars in a text file
  338. SPI on PCs parallel port
  339. STL vector<float> crash
  340. How increase a C/C++ Program speed ?
  341. Template parameter method being identified as a variable
  342. Starting Book for C++
  343. Generic indirection adaptor
  344. A list of multiset.
  345. Less than operator...
  346. Learning game programming timescales
  347. How to declare friendship-ness to all inherited class?
  348. simple question: how to do this ?
  349. inheritage: possible to call the original function ?
  350. experience definition in interview
  351. client -server interaction over XML supporting multiple protocols
  352. Default constuctor
  353. C++ questions
  354. pointer vectors
  355. inheriting from template of self
  356. Copying Polymorphically
  357. multitasking
  358. C and C++ naming issues?
  359. ActiveX or not ???
  360. C++ questions
  361. C++ questions
  362. Convert to Static Char
  363. template problem
  364. monitoring the heap
  365. Exception Handling
  366. operator overload with namespace
  367. customised login form?
  368. Can I print elements of a simple matrix with out manual nested loop?
  369. File IO between C/C++ libs and .NET Framework
  370. cartesian product...
  371. date comparison
  372. Reading/Writing directly to/from a device in MSWindows
  373. A comparison among VSS Remote Access Tools including SourceOffSite, SourceAnyWhere and VSS Remoting
  374. controlling devices through computers
  375. vector
  376. How protect source code in template library?
  377. Copy-Constructor
  378. Help needed
  379. std::map iterator and clearing
  380. Why we need classes
  381. editor that offers a search only in cursor scope
  382. Should exceptions be thrown by value or reference?
  383. How do I make my convert() function do nothing for equal types?
  384. Object initialization and xml question
  385. Exception handling questions
  386. seg-fault on vector-auto-reserve
  387. Dereference Adaptor
  388. best way to modify a file
  389. "Streams"
  390. two classes - each has pointer to other
  391. using uint64_t with GCC
  392. template func in class question
  393. How to get file descriptor permissions?
  394. Is AMD64 an untouchable @ DELL ?
  395. Some sort of append algorithm...
  396. Template of interface?
  397. Accessing Directorys
  398. Different methods of implementing variable-length templated classes
  399. differences between a c-function and a class method
  400. What is the difference between putch() and _putch()?
  401. How to write Chars like "˛" ?
  402. trees in c++
  403. virtual function problem
  404. sizeof(int)
  405. amusing error message
  406. declaring a function pointer variable
  407. functions
  408. disambiguate my Large Scale design probs (C++)
  409. trouble splitting strings
  410. const function?
  411. Template resolution problem
  412. Static Objects as Struct Members
  413. Cannot match void (T::* ptr)() when base class of T defines function
  414. ambiguous call to overloaded
  415. Invalid initialization of non-const reference
  416. Quick question...
  417. priority queue wrapper
  418. consfusion in C++ Large scale design
  419. What C++ beautifier do you use?
  420. Buffered printfs????
  421. Question about scope of variables created with new
  422. C++ I/O error detection
  423. using fstream objects in a multiuser environ.
  424. typeof emulation
  425. block on reading a half-filled buffer for ifstream
  426. read line
  427. printf and 'long double'
  428. test
  429. approximating pi
  430. library for url reading
  431. bits operation
  432. Calling a shell script from within C++ program
  433. When exiting function scope, which occurs first...
  434. STL iterators
  435. Terminology - global
  436. Loki::Tuple and g++
  437. print a byte number with cout
  438. Template syntax...
  439. Random crashes
  440. How I can use BigInt lib?
  441. Order of class static members initialization
  442. vector: capacity and resize
  443. formatted output with cout
  444. CALLBACK problem
  445. Algorithm for combinations...
  446. Setting Pointer to Video memory
  447. tokenize a string
  448. how to generate random data for a normal distribution
  449. Odd results with C++ under WinXP SP2
  450. How to pass an element of a structure to another function??
  451. Calling constructor explicitely
  452. BigInt lib not working, help!
  453. static variables in derived classes
  454. Simple code compile problem?
  455. find a string in a grid
  456. find a string in a grid
  457. fstream methods
  458. Help preventing weak software
  459. How should I construct my objects when reading ctor args from a text file?
  460. The itoa function can not be used in g++,right?
  461. template class syntax
  462. static member variable in multithreaded environment
  463. Should this code compile?
  464. std::vector and structs of PODs
  465. Saving/Loading C++ objects into a file
  466. Unrolling a loop
  467. greedy method
  468. streaming proxy
  469. Can I connect to SQL database through C++,
  470. Passing STL container to temlate function
  471. typeof and g++
  472. HOW TO HANDLE CONTROL_LOGOFF_EVENT handler
  473. Problem With Visual C++
  474. Operator Overloading
  475. auto_ptr<> as function return
  476. Memory Leak Detection
  477. Exception Handling Critique ...
  478. How to keep element address in container
  479. dynamically creating object
  480. non-member function can not have 'const' method qualifier?
  481. Different behavior from __LINE__ macro in g++ 2.95.x and 3.x
  482. learning C++?
  483. C++ FAQ
  484. Limited namespace
  485. Open for discussion: Correct C++ tutorial part 7 "Create beginner's programs" (Windows, mingw/msvc/std)
  486. Is this board a good alternative to the PC?
  487. std::vector - fast way to crop?
  488. math cos, rounding, or other problem?
  489. Know C++, want to script a little, recommend Luban
  490. round-to-nearer-integer ?
  491. using QueryPerformance
  492. Constructor returns wrong size of stl::list<T>??
  493. everywhere, i need to use std::
  494. why this code doesn't work!!
  495. How to redefine operator delete/delete[] via macro?
  496. goolge a little
  497. Introsort
  498. Templates and Copy Constructors. Again.
  499. try-catch name
  500. capCapture frameRate problem. (URGENT)
  501. Weather Prediction Program Help
  502. "namespace" and "class"
  503. Will standard C++ allow me to replace a string in a unicode-encoded text file?
  504. hmm, what does it do?
  505. temlate class
  506. Visitor Pattern, Deep Copy & Double Dispatch
  507. Function pointers and dynamically loaded DLLs
  508. MAllocate memory for structures?
  509. Containing containers - handling interface ?
  510. What is happening here
  511. Compatibility of checks done by 'Forte Developer 7' & 'Sun studio 9' C++ compilers
  512. VC++: Cast operator not used?
  513. Which member functions do you provided for a class
  514. Efficiently Extracting Identical Values From A List/Array
  515. Supplement to my previous message
  516. It is very surprising ....
  517. polyfit / polyval
  518. Same template arguments, different specializations
  519. __LINE__ as template argument (VC++)
  520. string to byte array
  521. comparing date time
  522. STL sorting algorithms
  523. Shared libraries / C++
  524. Newibe C++ XML Questions
  525. what is .i file?
  526. Help with Global structs in headers and multiple definitions
  527. polymorphic return types in virtual functions
  528. what does this statement mean?
  529. "namespace" and "class"
  530. Matching words within two arrays
  531. Where to include header files / A question of style?
  532. Designing a proper server model
  533. Q: Reading indeterminate pointer -> Ref to Std?
  534. what to put in an IF statement?
  535. How should I interpret this set of laptop specifications?
  536. How do I get GLUT to work with GCC for Win32?
  537. whats this macro doing
  538. Question about overriding new and delete
  539. Big-O
  540. Help with string class
  541. Exception Handling and Refactoring Question ...
  542. Where do you buy your books from?
  543. template recursion depth
  544. LPTSTR to char *.. How
  545. functors and stl find_if
  546. Lost
  547. What exactly is a POD type
  548. random shuffling
  549. Convert a string to float and vice versa
  550. detecting if no exception was thrown