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 measure code-efficiency?
  2. What is NP-complete?
  3. Removing all elements from STL queue
  4. primitive range
  5. inheritance question
  6. taking a pointer from iterator
  7. pssible confusion about iterators
  8. Pixel Manipulations
  9. Loki Typelists
  10. class with destructor inside a vector...?
  11. Binary
  12. Partial specialization ambiguity resolution
  13. subset function for string
  14. Why can type conversion operator not be qualified with explicit?
  15. meters 2 ft/in problem
  16. error C2664 with InterlockedExchangePointer
  17. sizeof(std::string) seems to small
  18. C-Array iterator C++ compliance problem
  19. c++ question
  20. ctor using template pattern?
  21. peek() and tellg()
  22. Need help - dynamic memory allocation, objects and functions
  23. Need to volatile a by-reference parameter?
  24. arrays
  25. I need a function that extracts all string from /this config
  26. creating an array of pointers
  27. / operation
  28. system call
  29. Template recursive class
  30. Value of INF (double)
  31. destry array of defined type
  32. Selectively Public Function
  33. intersting problem with inheritance and iterators
  34. Creating functions sequentialy
  35. collocated architecture versus distributed architecture
  36. distributed computing choices
  37. select() for iostreams
  38. sandbox is the same as development machine?
  39. interfacce in c++
  40. integral vs. user-defined type check
  41. va_arg only for bult-in types?
  42. Function pointers in typedef templates under Linux
  43. vector functions
  44. How is memory deallocated after an exception in a constructor?
  45. Templates and friend operator
  46. static local variable in a member function.
  47. linker error when using template class in Dev-C++
  48. Convert float/double to wchar_t (unicode)
  49. Possible problem with iterators in STL
  50. Does c_str property of string class allocate memory?
  51. multidimentional array
  52. forward declaration?
  53. inheritance not allowed
  54. ambiguous definition
  55. the function in_avail()
  56. The best OOP languages??
  57. Templates, friends, operators .. what more do we need to have fun?
  58. Object ownership and memory management
  59. How to tell if a number has decimal places different than 0
  60. C++ equivalent for strftime()?
  61. A doubt on assignment operator.
  62. Pitfalls and problems in this code?
  63. error in file input
  64. Spreading a class across several compilation units
  65. an error i coudnt understand
  66. template linker error
  67. SFINAE problem.
  68. Generate All Subsets
  69. quick watch of an overloaded operator
  70. Prevent a class instance being created on the stack. Possible somehow?
  71. [Linker error] undefined reference to `WinMain@16'...
  72. OT-Sort of--> Versioning
  73. more effective c++ item 31
  74. Compiling error
  75. Pointer question
  76. i've got strange destructor
  77. Use Class Definition From Different File
  78. auto_ptr
  79. Why isn't the whitespace removed?
  80. C++ philosophy - using clause in header files
  81. Extracting data from a date
  82. strstream.h header file?
  83. Othello Valid Move Logic
  84. vector inside a class
  85. Local objects in function not destructed on exception?
  86. Pointer to array of char
  87. input issue
  88. exceptions and prototypes
  89. unknown compile error
  90. instanceof
  91. indenting
  92. extracting int of string
  93. calling pure virtual in abstract class's constructor
  94. ABC inheriting from ABC
  95. memcpy()
  96. strange compiler error ( gcc 4.0.2)
  97. c+ header files
  98. unnamed namespace problem
  99. Is it possible to create matrixes with vector <vector <double >> ?
  100. Creating and using a lookup array
  101. Catching unknown exceptions
  102. Class data to byte stream transfer mechinisim
  103. convert double to string query
  104. defult reference parameters
  105. organizing elements of two sets for efficient search.
  106. Private inheritance renders class inaccessible
  107. Draw a line using Bresenhams
  108. Why virtual function can not be overloaded?
  109. tweaking the virtual function table pointer
  110. why we use letter 'm' for variable decleration
  111. Need Help with static struct class definition
  112. running another program from a C++ program
  113. What's the new features of c++0x?
  114. Why this warning here?
  115. template specialization
  116. "typedef typename" inside template
  117. lookup tables
  118. STL::vector problem
  119. do serious programmers have a life?
  120. 1D pointer to 3D array casting
  121. std::vector's reserve(), erase() and clear()
  122. Measuring a String
  123. Debugging bizzare error help needed
  124. casting pointers and dynamic binding
  125. Logging for C++
  126. garbage collector
  127. std::map & compare
  128. Force method call in destructor of a derived class?
  129. C++ and setting pointer to eof to add records
  130. Array of array recursion
  131. Regular expressions and I/O
  132. visibility/passing of variables
  133. template function compareLess
  134. code obfucation
  135. c++ interfaces
  136. int a, int b[a]
  137. pass by reference vs pass by pointer
  138. safept
  139. How do I initialize complex class static member?
  140. default argument in friend function of template class
  141. inserting into stl containers using boosts' lambda
  142. How does STL report out of memory errors?
  143. break
  144. Help with UNIONS
  145. Logic check please
  146. std::vector - works in BCB6 but not in g++
  147. concatenation operators
  148. Template specializations
  149. Commercial md2 and md3 use
  150. new to stl
  151. Object creation - Do we really need to create a parent for a derieved object - can't the base object just point to an already created base object
  152. read system-call
  153. Life time of static pointer to member function
  154. problem with char*'s and changing individual chars in it
  155. 3 files = 1 program HELP!
  156. Global object initialization
  157. Why is delete[] basePtr undefined if basePtr points to array of derived-class objects
  158. what is the different between glibc.* and libc.so.*/libstdc++*
  159. Cannot dynamic_cast the same object for the second time?
  160. strange multi-inheritance problem
  161. exception
  162. STL Vector vs Arrays
  163. How to implement malloc()
  164. SmartWin++, release candidate 0.99993 out...
  165. memcpy confusion
  166. ifstream and wifstream - combined
  167. set of structs (intersection)
  168. set_intersection
  169. is it safe to change the char* returned by ostrstream::str()?
  170. non-const for_each usage
  171. should this program compile?
  172. any potential multi-heritance fault?
  173. how much memory does an empty STL deque occupy?
  174. list::splice and iterator invalidation
  175. Date encoding as integer please help
  176. skipws
  177. Slicing problem
  178. g++ compile error
  179. Simple stack implementation
  180. question about polymorphism
  181. set and operators
  182. set and operators
  183. Is user login ?
  184. Beginner questions...
  185. is chmod(766) possible in C++?
  186. Boost program_options trouble
  187. Boost program_options trouble
  188. Newb float casting question
  189. Coding Problem, Help Needed
  190. Callbacks accross different threads
  191. Function Ptrs a bad practice in c+ ?? Array od Function Ptr - Indexing issue
  192. How to find memory leaks?
  193. is it a good idea to assign object to pointer without initialising it to NULL.
  194. fopen??
  195. Using Ptr of derived class to point to base class and viceversa
  196. Casting char to char*
  197. Casting char to char*
  198. How can i Create a EXE file in win32 use C++
  199. Inline assembler errors
  200. Inheritance & polymorphism
  201. [templates] is this code legal?
  202. Is C faster than C++
  203. Structured programming
  204. Help on OO leap year calculator
  205. Anti-rust programming language
  206. stl data structure to represent a tree
  207. sizeof(int) and sizeof(long int)
  208. reading tabulated files
  209. Explicit destructor calls from inside base class destructor
  210. Visual C++ and visualization
  211. Redefinition Error
  212. Recompilation problem
  213. Calling assembly from C++ and vice versa
  214. late binding for most drived class
  215. Cast from void* to base class virtual function problem
  216. template, implicit specialization?
  217. Error in using ams { } with C++.
  218. what is word boundary?
  219. How would I write a cell phone OS?
  220. "Aborted" (while reading file ?)
  221. how to overloading operator <
  222. Converting AnsiString to double
  223. Simple Database Interaction
  224. problem passing a static const int member by reference
  225. bmp//array questions
  226. specialize a template function that contains a template parameter
  227. hardware interaction
  228. Textinput with more than one line
  229. Kernel streaming
  230. Template.. iterator...
  231. char *string
  232. Converting Strings
  233. Exception handling stack trace
  234. templated exception type
  235. Casting Strings
  236. Overloading Operator <<
  237. std::allocator % HeapAlloc
  238. Compile error with SGI STL
  239. memory allocation problem
  240. Template construction in old gcc 3.3.3 does not compile in gcc 3.4.4
  241. questions regarding class
  242. new char[480000000] crashes
  243. how password is stored and check the authentication??
  244. template<T> operator+. linker error
  245. Convert double to string
  246. this pointer
  247. problem in using [ ] operator
  248. Openings in Webspectrum for JAVA NMS/EMS
  249. array
  250. std::wofstream
  251. valid main declaration
  252. stl vector help
  253. Display MS DOS's Size...by default...
  254. Calculating the log of a number
  255. namespace issue
  256. Calculating the nth root of a number
  257. passing character to function.
  258. need for typedef for instances of template classes
  259. Need Help with programming
  260. Converting a PRN file to a CSV using C++
  261. Redirecting printed messages to a file
  262. a question on my constructor "STRING (const char*)"
  263. Unused variables used for class constructors
  264. Segmentation fault
  265. Again: linking between C++ and Fortran results in incorrect result
  266. Challenge
  267. undefined symbol error
  268. Case-insentive
  269. setting values for all elements in hash to a value
  270. vector.size() and (signed) int
  271. memory allocation checking
  272. recursion order question
  273. It looks like bad programming, but is it?
  274. HTTP Client library - uploading files (POST method)
  275. Union Misalignment?
  276. Specialization problem
  277. Specialization
  278. Return appropriately by value, (smart) pointer, or reference
  279. this on reference counted objects
  280. how to improve custom String implementation
  281. Non Null Terminated string
  282. library problem
  283. can cout<<""; can cout<<""; contribute ?
  284. Porting from g++ 2.95/3.2 to g++ 4.01 template problem
  285. Simulate post at webpage
  286. is a char promoted to an integer in C++?
  287. same value enum
  288. Where can I get InfPrec?
  289. COBOL style C++
  290. seek() function
  291. How To Make Vector = Pointer
  292. Need Help Asap On Compiling!! By 10:00 Tonight!!
  293. Help with compiling.
  294. overloading operator >> to read a text file into a Matrix
  295. How does inlining work?
  296. Scope rules
  297. sort with vector<struct>
  298. Problem with EOF when using pipes and stdin
  299. Why file containing 256 bytes is 257 bytes long?
  300. type declaration
  301. call static method when class initialized
  302. c++ compilation problem
  303. passing through all elements in hash
  304. what is going on?
  305. problem with char* block[5000] and binary reading
  306. Problem in defining a map object
  307. Visual C++ to Borland Compiler
  308. integrate c++ in Java
  309. C++ XDK Question
  310. Problems when giving default value for 'const auto_ptr &' argument
  311. resurrecting cin
  312. Loki TypeTraits and compilation problems
  313. syntax
  314. Policies, traits, generics
  315. Problem in file writing.
  316. implementing begin()
  317. Macros and Executionspeed
  318. visual c++ debug dinamic objects
  319. Arbitrary number of arguments
  320. function sequence error on aix5.2
  321. C++ vs Java : Problem with Inheritence
  322. c++ array help
  323. C++ ARRAY HELP!!
  324. Who can help me about VC7.0
  325. how can i do this in o(n)
  326. Languages popularity
  327. adding huge doubles
  328. Is C++ any better than BASIC?
  329. Writing a function that can modify it's number of parameters at runtime using vectors?
  330. Help with vectors
  331. Function that calculates the arithmetic mean using vectors?
  332. Rounding
  333. returning const references/pointers from functions?
  334. Problem with distance and STL map
  335. Vectors and References
  336. Memory and References
  337. Best way to handle ownership
  338. in-class static array initialization HOWTO?
  339. What is encapsulation?
  340. Formatting
  341. queries about the FAQ's section 7.5
  342. Formatting
  343. Selectors and modificators trouble
  344. confused with garbage collection
  345. to over load =
  346. How to identify exception ?
  347. sizeof('x') in C and in C++
  348. Encrypted passwords
  349. Bug with access violation :(
  350. std::string vs. Unicode UTF-8
  351. data structure/algorithm problem
  352. Using external files throughout a program (please read before replying)
  353. Interfaces without ABCs?
  354. Cannot instantiate abstract class
  355. How watch for and extract single char from cin?
  356. Writing a destructive trojan with C++...
  357. PRNG writing
  358. designing a component system
  359. changing http
  360. which one to use? string or wsting?
  361. refs
  362. Othello A.I
  363. custom iterator
  364. STL learning
  365. pointers to member functions and virtual inheritance
  366. g++ wrarning hides constructor
  367. singleton for a parent with protected destructor
  368. template
  369. C++ teaching book
  370. Prefix increment/decrement results in lvalue, but postfix one results in rvalue?
  371. C++ delete throwing exception
  372. Factorial using C
  373. Why?
  374. question about .. my 'unpacker'.
  375. C++ and Java...
  376. How do you write an infinite precision number class?
  377. "no matching function for call to"?
  378. Getting the file size...
  379. c++ help....i'm stuck in the middle...
  380. const char *&
  381. is there any "join" implementation source code available?
  382. template
  383. Trouble with inheritance
  384. type cast and pointer
  385. Why doesn't it show the c'tor name in the list folowed by :: in VC++ IDE
  386. Recursive templates
  387. VS6 : Fatal error C1021: invalid preprocessor command 'using'
  388. referencing
  389. providing classes
  390. C++ Exception: Why does this program behave differently for pointer and array of pointer
  391. help! about Database, thanks
  392. Connot compile Qt
  393. string to int
  394. Reversing a number
  395. Help with rule of 3 pleae.
  396. Howcome?
  397. Is this program right?
  398. Custom bidimensional iterator and container
  399. argv[2] comparing with "d"
  400. partial template specializations w/ bcc
  401. "declaration of 'foo' changes meaning from 'struct foo'"
  402. const * volatile *
  403. the use of returning const &
  404. Adding digits
  405. "unable to match function definition to an existing declaration"
  406. easy way to read numbers from file
  407. Wrapper around C lib, problem with c_str and const
  408. matching callback parameters in generic algorithm
  409. linux base gui profiler for c++?
  410. pointers
  411. Code snippets etc...
  412. functors .
  413. Case statement
  414. Right triangles...
  415. c++ version of instanceof()
  416. Temperature conversion
  417. static variables in a class
  418. Templates...???
  419. Banging head against a wall
  420. Creating Triangles
  421. question on dev-c++ dllimport
  422. Using SFINAE with constructors
  423. question about data type
  424. C++ refresher projects after a 3 yr gap
  425. question about const
  426. vector of structs with vectors
  427. Vo2Ado
  428. Visual c++
  429. how do u overload operator << so that cout<<A prints out the letter A as well as the value of A
  430. const iterators
  431. Operator<<, in nested templated classes.
  432. Operator Overloading in Template Classes
  433. When is it nesessary with initialize list
  434. copy constructor, assignment operator in template
  435. Compile Error using C++ VS6.0 using Notes API
  436. using declaration and ADL
  437. my aplogizes
  438. Why the results are different?(about virtual function)
  439. pointer / deltaTime in OpenGL Game Programming book
  440. Specialization errors
  441. LOAD/SHOW/SAVE IMAGES VC++
  442. private friend member function - should this compile or not?
  443. Just wondering if anyone knows if there are converters to convert from: MS Visual C++ 6.0 or MS Visual Studio 2003 project files into UNIX autogen/configure/make files?
  444. About Mapping Intergral Constants To Types
  445. Difference between a type and a class?
  446. Please help a newbie to Visual C++...
  447. What am i missing?
  448. question about string compare stricmp
  449. null pointers questions
  450. Storing (0, 1, -1, U, X) in a variable
  451. Undefined reference to vtable
  452. Redefine a member variable in a derived class
  453. Win 32 bit Programming
  454. Reverse Newline character?
  455. problem between c++ and fortran memory boundary
  456. (Templated) Operator overload on return type.
  457. How to hide class member variable
  458. Particularizing Template Method
  459. Generating combinations
  460. xemacs,gdb,I can't input from the terminal in main function,but others functions well.
  461. an information 'bout |
  462. template sort
  463. how pointers behave with int and arrays
  464. difference between unsigned char and char in c
  465. BUS ERROR
  466. How to create a project file from make files in VC++
  467. std::sort using a member function as the BinaryPredicate
  468. Are Built-in Data Types also Classes
  469. Name Of Argument
  470. '::memcpy' has not been declared
  471. reading from text file
  472. save(char* filename)
  473. q: minimization/optimization library
  474. Strange debugging
  475. problem with library for pocket pc
  476. Enumeration of Array Indicies?
  477. void pointer
  478. SGI CC compiler: What happens if I use --> #include "unistd.h" and "stdio.h"?
  479. Upwards-casting question
  480. conversion, promotion, exact match
  481. leaving an if statement (should be easy)
  482. How does the compiler interpret a template argument (reference vs. non-reference) ?
  483. Is "a >= b" equivalent to "a - b >= 0"?
  484. STL map search
  485. name mangling vs name decorating...
  486. Template function adaptors
  487. How to tell if function has been declared?
  488. Flex, Bison and ifstream
  489. How to find: Fatal exception not rethrown
  490. Meta class programming question
  491. Help I need to call a member from assembler code (WIN32)
  492. sendInput() can't work at chinese char?
  493. Difference between struct and class in c++ and c
  494. Dark-corners floating-point behavior in C++
  495. a small code for filter non-chinese files.
  496. Smart Pointer Question
  497. a
  498. question about recognizing data
  499. Help with copy constructor
  500. 3rd Edition vs Special Edition
  501. inline function in a class
  502. Is this legal?
  503. write to output file Query
  504. Manipulate two 8-Bits using Carry?
  505. Templates, nested classes and static members
  506. GoF:"C++ [doesn't] treat classes as frist class objects"
  507. references
  508. double or float
  509. Sequences
  510. Init an array in a class
  511. interesting pointer problem?
  512. operator bool and warning C4213
  513. unqualified-id?
  514. sign_command (e.g not_negative) missing(?) in C++ (/C)
  515. Setting Right Alignment
  516. Methods of Objects
  517. Autokey Viginere Cipher
  518. Compiler errors
  519. displaying output from this program
  520. new to pointers
  521. Need advice, client wants cut of my money from other client..
  522. How to build a library from the C++ using template?
  523. how find a char most use in a stirng ?
  524. grave problem with ifstream::is_open
  525. tellg() for large filesizes
  526. answer?
  527. memory leaks
  528. xml parseing
  529. Portable SIP C++ Library?
  530. How do I get bitmap information of a button (HWND)
  531. B/B+ tree data structure?
  532. Inheritance
  533. Value of a pointer to base type when assigned to a derived type
  534. Quick question
  535. Issues with for loops
  536. how to construct a class with member type unknown till runtime?
  537. removing duplicate entries in a list.
  538. tree template
  539. Safe garbage collecting
  540. OStringStream
  541. template/friend problem
  542. Convoluted template declarations
  543. SIGSEGV : 11 error
  544. c++ templates question
  545. Converting Int to String...
  546. Default args for Class B an aggregate of Class A
  547. HowTo make template class part of static library?
  548. object adaptor
  549. private inheritance
  550. don't know where is the catch...