View Full Version : 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

  1. copy constructors and pointers
  2. Dijkstra's algorithm segfaults
  3. Another stupid MSVC6 linking problem
  4. sum of consecutive positive integers
  5. compiling service ?
  6. Problems accessing methods of derived class
  7. MSVC++ 6.0 Linking problem (possible OT)
  8. pointer arithmetic
  9. General method for dynamically allocating memory for a string
  10. C++ says that these are ambiguous...
  11. switch from raw pointer to vector container
  12. Dynamic buffer library
  13. quick question?
  14. Polling for a new file in a directory
  15. Accessing Baseclass virtual function from derived
  16. opencv and C using KDevelop environment
  17. how to import classes in one class
  18. how to code this problem by using array
  19. Pitfall of proxy instead of temporary?
  20. price of casting a char into int to be used as an array index
  21. Redirection issue
  22. can I use STL on visual C++ type?
  23. algorithms and c++
  24. operating with binary
  25. Conversion of char to a string
  26. private constructor
  27. pls give me c++ interview questions
  28. MD5 Hashing
  29. How to write the transform equivalent in STL?
  30. Dynamic array of structures within a structure
  31. Can I declare a static array in a structure
  32. recursion in combinations
  33. Casting base * to derived *
  34. give me explanation for this statement
  35. what is Deep Copy, shallow copy and bitwises copy.?
  36. Regarding "#pragma once" and "Lvalue error"
  37. Variable Argument Functions
  38. Median of values in a std::map
  39. strncpy not that easy to use
  40. a strange one
  41. error C2258:
  42. different answer for same code in linux ,Eclipse IDE
  43. Need help
  44. Overloaded DESTRUCTOR ?
  45. how can i subclass a dlg item
  46. how to send ctrl-Z in C language - modem interfacing
  47. Runtime error when using pointers and Files
  48. how to deal with arrays with unknown length?
  49. Symbol search
  50. Architecture independant byte operations
  51. How to take the size of a pointer to array.
  52. vending machine
  53. Learning about Nodes:
  54. array of array of complex things
  55. Am I being Stupid?!
  56. combination of type conversion and string manipulation
  57. help in solving this function object.
  58. Copy constructors
  59. Hi a strange code ....
  60. inline functions
  61. Size of malloc'd?
  62. c code reusability
  63. Homework Help
  64. Catching exceptions across shared object boundaries
  65. Proper way to turn off debug macros at compile time.
  66. how to write a c program to find the roots of the equation using bisection method
  67. load and time
  68. is the C library a wrapper for windows API?
  69. object multi reference
  70. I am a C++ beginner
  71. What happens when I write struct xx_type {...}
  72. sorting arrays
  73. Maximum memory allocation
  74. How to write a C++ program to do the statistics of each word in an English text?
  75. stl::map lookup speed
  76. How can I change the color of button on mouse move over it
  77. std::for_each
  78. Mixing allocators and unitialized_fill?
  79. Question
  80. Method vs member function
  81. struct definition...
  82. File processing in C.
  83. connect db2 in my c program on AIX
  84. Connect to db2 in my c program on AIX
  85. strange output
  86. Dynamic Structures
  87. boost regex --- sregex_iterator -- Regular expression too big
  88. What is the ascii value of EOF in C
  89. Problem in pointer size!!
  90. why defined implicit
  91. testing read/write speed
  92. #include <boost/shared_ptr.hpp> or #include "boost/shared_ptr.hpp"?
  93. operator overloading
  94. child list. .
  95. multilingual application in C++
  96. Platform to create games using C++?
  97. Using printf/scanf inside printf
  98. Div() function
  99. Problem in returning a vector from a function
  100. c program to check that whether computer on which u r working is little endian or big
  101. VC++ Dll loading inJava
  102. Invisible TextOut. Why? How?
  103. Exception Handling
  104. help debug program..
  105. question about fwrite function.....
  106. why do we throw a reference to the object
  107. HELP in a logical issue
  108. Use macro parameter in string; Find type definition
  109. const does not apply to pointers?
  110. streams and floaters
  111. Why is for(int i=0; i < 100; ++i) poor?
  112. Import VC6 project to gcc
  113. Site for Microsoft Interview
  114. reguarding scientific notation
  115. stl::sort with a vector
  116. Aplication to add comments to my functions
  117. Trying to open a file that realy exists
  118. Custom output stream
  119. Play Sound Files over Medem on Linux
  120. number of children exist?
  121. closest equivalent of fdopen()?
  122. Need help with homework questions
  123. Network Drive Access
  124. C IDE Recommendations
  125. 64bit porting
  126. bubble sort
  127. serialize a structure
  128. Problems with my .exe symbol
  129. Call C++ function from C
  130. Slicing instances in STL containers
  131. c++ technical probelsm (a beginner)
  132. ostream
  133. why some operator ca't be overloaded
  134. MFC issue(VC++)
  135. where we should use reference and where pointer
  136. string manipulation
  137. does the output depends on the compiler
  138. Hi all,
  139. Strange behavior of fmod()
  140. overloading operator []
  141. int* ptr=10;.......issue.
  142. int* ptr=10;.......issue.
  143. How can I create a Ram Disk within C/C++ program?
  144. Improve memory for success
  145. Improve memory for success
  146. source formatter that sorts .h file according to public/private and protected?
  147. class composition problem
  148. HELP
  149. int main()?
  150. what's the problem with my iterator?
  151. max(NaN,0) should be NaN
  152. Why top level menu appears “Alt+F9:ile ”,
  153. How do I compile programs in windows (basic question) ?
  154. Structure Pointers & Encapsulation & 'ting
  155. Buffer or Realloc?
  156. Software Development C++ vs C#
  157. C/C++ usage of typedef struct
  158. Text to string program
  159. Adding Components and controls inVC2005
  160. Visual C++ 1.5 and Win2K
  161. What(s wrong with that :
  162. help with changing C light bulb (regulars please read)
  163. ASP.NET C++ LNK1120 error
  164. Capture audio/video and send through the internet
  165. Colour and drawings or graphics in C++
  166. Re : Object Factory Design Pattern by GoF, need help!
  167. Help me/....
  168. XML library
  169. I want to modify STL to suite my requirement
  170. Any explanations
  171. Any explanations
  172. Object Factory Design Pattern by GoF, need help!!
  173. How to play a .wav in a non-standard device in C++
  174. Copying pieces of char array to string
  175. Dilemma of const-ifying a function parameter
  176. code to find correlation
  177. Template as a base class.
  178. initialize static member variable
  179. what's this usuage?
  180. SOLVED: Function overloading and base types
  181. copy strings into an arbitrary location !
  182. Could anyone do this program "Urgent" Please
  183. Reading commands into an array from a text file
  184. basic doubt on shared libraries
  185. Variable arguments for a Constructor
  186. Cygwin g++ Mulitiple Definitions of std::min()
  187. data stucture using c
  188. Waring for string is absent.
  189. Generated function
  190. Is it Nesting structure within itself
  191. Constructor with pointer as parameter
  192. Template Class Member Definitions in Headers?!?
  193. Creating a shared library and loading it
  194. Creating a shared library and loading it
  195. FAQ Submition frequency
  196. compile error with Boost Function object and templated function (Intel C++ compiler)
  197. c++ highlighting in VI
  198. strange question
  199. floatptr=(float*) intptr;
  200. floatptr=(float*) intptr;
  201. casting
  202. Linear Alegebra in C++
  203. compiling iso c++ code in Visual Studio environment
  204. pointer to structure from pointer to member
  205. Ugly C looking code
  206. trouble outputing the address location of a character
  207. assigning string constant to char *
  208. How to be sure my array only takes pointer
  209. cast a pointer
  210. xmlrpc lib for c++
  211. alignment/zero length arrays
  212. Cant get codec to work
  213. Address of member (pointer syntax)
  214. Can't compile HW
  215. Completely new to C++, any ideas where to start?
  216. The callback-to-derived-member function problem
  217. Which one is efficient !!
  218. String to integer
  219. Assertion before definitions
  220. dll-interface problem
  221. class similar to a function object?
  222. Tokenizer does not like ampersand
  223. Read big characters
  224. When does msg queue fails??
  225. program doesn't "seem" to print "hello-out"
  226. What is faster, const_iterator or iterator?
  227. int i ='abcd';
  228. Where could I find function body of "fseek()" and "ftell()"
  229. created file is deleted still program not reporting error
  230. STL stack initialization
  231. Error returning a string
  232. Making Operating System
  233. The type of "Point to array"
  234. Generating random seeds for simulation
  235. Is overriding a function of a library in accordance with C++ standard?
  236. shared member between class instances
  237. Function overloading and base types
  238. little endian , big endian , big headache
  239. easy question about free()
  240. How to count numbers of repetitions in C++
  241. template function specialization inside template class possible?
  242. Inheritance implementation just feels wrong, I need reasons though...
  243. array initialization
  244. Syntax issue
  245. A question of pointer initialization
  246. c
  247. VLA and goto -- diagnostic required?
  248. why class A and E's sizes are 4 instead of 1?
  249. Same function implementation... different parameter types
  250. I can see the music!
  251. Bitshifting independant of signedness
  252. Porting from Windows to Linux - template class derivative compilationproblems
  253. WAV to BMP
  254. web application launcher
  255. evaluating strings
  256. sorting the value not the key
  257. declaring functions moving input pointer
  258. BTree implementation
  259. Windows networking
  260. select call is timing out? im stumped
  261. Totally omit default parameter brackets from template?
  262. Please suggest me some sites
  263. Relative Paths (noobie question)
  264. complexx cicles
  265. External functions
  266. Member variable with the same name in base and derived?
  267. Override a virtual member in a instance?
  268. SPEC CPU2006 announced
  269. SPEC CPU2006 announced
  270. how to check a particular bit of a DWORD value?
  271. c++
  272. range iterator
  273. How to download an URL (cross-platform)
  274. Hiding rule and pure virtuals
  275. Question about change of "fp" in function "fseek"and "ftell"
  276. Howto make an instance of a class defined in a DLL
  277. Code puzzle?: Implementing arrays without arrays or heap
  278. line plot sample code
  279. Insert characters into a text stream.
  280. Destructor & Constructor Question
  281. Valid pointer to map element after erase
  282. c99/c89
  283. Do inline functions have a valid code segment
  284. new one to c
  285. new one to c
  286. how to copy a part of a binary file
  287. Multimedia in C++
  288. Need help with audio library on DOS...
  289. Stumpted: sorting vectors.
  290. Why it's a pointer not just a class
  291. List Iterator = NULL?
  292. WAV to BMP & Back!
  293. what's the difference betwwen these two ways to use std::ofstream
  294. Boost serialization : Stream error exception
  295. puts() vs printf()
  296. Stop an SDL_sound stream, or possibly kill the fork?
  297. Name look up rules
  298. the difference between "const char* s" and "char* const s"
  299. i'm a little confused
  300. Array for speed or...
  301. Why is it -- or is it -- bad to cast like the following code?
  302. how to copy strings into a linked list?
  303. the difference between "const char* s" and "char* const s"
  304. use of control87 and floating point underflow
  305. operator= accepting a template?
  306. Why does this not fail?
  307. Floating point load-store behaviour.
  308. weird code.
  309. Left shift
  310. Hash function for float.
  311. is not a member error when trying to init members in constructor
  312. how to solve these equations
  313. how to read a file randomly
  314. MIDL problems
  315. timers in C++
  316. Unallocated memorz being freed in <iostream>?
  317. how to use the origin new operator after override it
  318. Question about static's
  319. routine to return number of rows and columns in a matrix
  320. calculation of cpu idle time
  321. calculation of cpu idle time
  322. W.A.P.
  323. Is it legal?
  324. Help me to find out what is wrong with this code
  325. class definition in template class
  326. How are functions organized in c++
  327. Design question
  328. How to implement sizeof operator
  329. Start point of execution of a program
  330. sd card interface
  331. How to catch a user interruption?
  332. Why can't the source compile?
  333. declaring a stream then defining it
  334. assigning a pointer the address of local variable
  335. delete dynamically allocated memory in a list?
  336. How to use enum from a different namespace?
  337. delete dynamically allocated memory in a list?
  338. Please participate in a non-profit academic research
  339. fork defunct process, already forked twice
  340. combinations ( NchooseK)
  341. memory allocation problems
  342. streambuf in binary mode
  343. explain
  344. explain
  345. Better program design?
  346. Looping question
  347. interfaces,
  348. Using C functions in a C++ program
  349. _POSIX_C_SOURCE redefined (Problems with Python.h?)
  350. linked lists
  351. toggle keys
  352. Variable across instances of class.
  353. Getting a File Name from a FILE *
  354. Question about using namespace std
  355. Computers Get The Cancer Too
  356. copying map
  357. Portable way to compare strings using case-insensitive
  358. scanf question using %[^$]
  359. extracting a report from files
  360. why empty class has size 1 byte
  361. Calculation of address
  362. make_pair with auto_ptr: ... discards qualifiers
  363. 3D library needed to display wire objects
  364. Printing Different Language Characters Using Locale
  365. remove decimal but show cents with sprintf
  366. Moment, Skew and Kurtosis? How to use this Math function
  367. why printf works first than cout
  368. deriving a class from a base class
  369. Virtual function definition
  370. Constructing/modifying va_lists
  371. non-POD type in call to va_start
  372. what is the reinterpret cast operator ?
  373. constructor call syntax
  374. dereferencing problem
  375. get random number in range [10..50]
  376. why is size of empty class is 1 byte
  377. why is size of empty class is 1 byte
  378. why is size of empty class is 1 byte
  379. why is size of empty class is 1 byte
  380. why is size of empty class is 1 byte
  381. why is size of empty class is 1 byte
  382. declaration shadows a parameter
  383. File size difference under different compilers.
  384. acces base class member from derive class
  385. The most powerful computer security tools
  386. The most powerful computer security tools
  387. pointer to a map
  388. a little confussion about initialization
  389. I think this should be a memory leakage. Anyone agree?
  390. understanding memset
  391. preprocessor code
  392. COPY DATA FROM A BUFFER AND SEND TO SERIAL i/o
  393. containment of standard c++ classes
  394. replacing blank lines in my .txt data file
  395. Floating Point and Wide Registers
  396. How to test for memory leaks?
  397. const and non-const version of the same fcn.
  398. basic code from Eckel's c++ book
  399. Function argument as char []
  400. Simple problem?
  401. switch error
  402. Indirection operator placement
  403. Problem with scope
  404. Search TXT file
  405. bool flag
  406. Help / NET
  407. overloading
  408. questions about point?
  409. cvs in eclipse
  410. cvs in eclipse
  411. PREPROCESSOR: Multiple expansions.
  412. please help..:(
  413. copy construct and overloading = operator
  414. Problem binding a predicate to random_shuffle()
  415. question on initializing a pointer to an object and releasing the memory.
  416. Nested FSM implementation
  417. Is this #define legal?
  418. Bucket sort...in C
  419. Objectives on C and C++
  420. typedef
  421. tools.o(.data+0x0): multiple definition of `VAR_1'
  422. K&R exercise 4-1
  423. which compiler and IDE will you use?
  424. Forward decleration of enumerations and typedefs in a NameSpace
  425. virtual functions in virtual base class
  426. malloc() and limitations
  427. Pointer arithmetic
  428. Recursion
  429. How to make a sub class a friend in another class?
  430. Convert from std::string to unsigned char*
  431. Strange problem with size_t
  432. Unix and Windows
  433. memory allocation (take 2)
  434. Help with template
  435. List iterators default constructible?
  436. %u printf
  437. Quick question on operator overloading
  438. C++ Installer
  439. Learning C for the third time?
  440. Printf Problem
  441. Problems with STL sorting using member functions
  442. algorith implementation
  443. end-of-file problem
  444. Plzz Explain !!
  445. Memory Leak
  446. help on craps
  447. Anyone know what
  448. How to use lib function "getline"
  449. How to use lib function "getline"
  450. STL find algorithm
  451. How does "delete [] <pointer>" work?
  452. Linked list/Tree using iterators?
  453. Suggestion for practical book for threading?
  454. Vectors deleting memory without loosing data
  455. Random Numbers
  456. Creating tree of objects w/o using pointers.
  457. Direct Pointer assignment
  458. Good Book on Parsing Strings?
  459. const callback
  460. IDE for Linux with good code completion
  461. Portable EOL?
  462. Having issues trying to copy an array
  463. a parent and child class
  464. How to compare compilers?
  465. how to implement timer
  466. secure integer library
  467. What ever happened to?
  468. Download, Zip, and extract
  469. Linked List Confusion I need some expert help Please
  470. Vector of lists?
  471. How do I get the mac address/es in C for Windows XP?
  472. memory allocation wrapper
  473. Subscript const overloading problem with visualc 7.0??
  474. modifying a container outside function
  475. Need help compiling 64-bit C++ Code in VS2005...
  476. float? double?
  477. it is this easy $$$$$
  478. STL vector problems
  479. typedef question
  480. Problem linking netcdf - Undefined References...
  481. This code must have crashed....but works fine
  482. Someone help!
  483. Instantiating a native class from a /clr DLL
  484. Class / Member Class relationship?
  485. Problem with in-line "typedef" and class cross-reference. Need help.
  486. help me plz
  487. Format problem with sprintf
  488. finding how much time that is consumed?
  489. Requeting Book suggestions/comments
  490. Urgent Need
  491. Copy Constructor Qtn
  492. What value
  493. = operator: vector
  494. Can't work with volatile objects?
  495. Canonical way to copy an array
  496. Performance File Parsing
  497. transform on valarray
  498. Is it declaration or defination?
  499. Exceptions across shared libraries (gcc 3.3.3)
  500. Help with memory leak problem with datatype string in C++
  501. simple array question
  502. Is this a valid c++ code
  503. About Bit Vectors
  504. Passing String with \x00
  505. inverting a string
  506. string.fine(string+string...
  507. Is there a way to write a memory leak detector supporting new(nothrow)?
  508. How defined is this?
  509. how to use the fread() function???
  510. PROBLEM: why can't auto-covert char [10][10] into char **
  511. Help understand Templates
  512. discuss portibility of this ENDIAN testing code
  513. Is there any corresponding C++ component for java.lang.reflect?
  514. res protocal for point to swf resource file
  515. Using Multiple CPP files
  516. problem about insert integer to link list
  517. Initialized arrays using new
  518. Help needed for strings
  519. Template type deduction issues
  520. Arguments that are not used
  521. Getting linking error: not found in vtable (Trying to understand whats wrong the way I did my classes?)
  522. Function that return a array
  523. Command line parameters - argc and argv[]
  524. template re-initialization question
  525. Strange sizeof behavior
  526. Plz solve my problem
  527. Plz solve my problem
  528. Calling function in classes
  529. does STL has a binder or an adaptor for type-casting?
  530. Cannot convert 'const void *' to 'const char *' in C++
  531. STL list/map - rest size
  532. ABOUT ADDITIONAL
  533. syntax of copy constructor
  534. linking c files with a c++ program
  535. Calculation of Rotation
  536. STL vector
  537. Is it ok to pass 'memory address' to free()
  538. Opaque pointers
  539. Help with destruction of an object created with the new operator- destructors
  540. "define" and "malloc" more
  541. Question about "define" and "malloc"
  542. How to be a freelancer?
  543. Learning to program
  544. looking for statefull snprintf
  545. how to put template class into container
  546. goto last 'active' tab
  547. template inheritance
  548. const reference vs. value
  549. "To many files open error <EMFILE>" bug
  550. How to allocate 128KB in a buffer using the farcalloc???