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. qsort of malloc'ed structs
  2. CAN WE TYPE CAST AN INTEGER AS (VOID *)X..(Like can I return a value (void *)x)
  3. Is there any command like Pause or Nope in C++?
  4. reading lines from file
  5. Global Array with size for input
  6. break outside a loop and a switch
  7. checking and verifying input line in a C program
  8. [MFC] CDataExchange::Fail() fails
  9. which clustering algorithm to use
  10. File I/o questions
  11. Implementing
  12. help with string reverse
  13. Operator < in map template
  14. C++ Network Solution -- Where should I begin?
  15. syntax question
  16. Problem with fopen
  17. UNIX command prompt
  18. custom allocator using templates
  19. Forward declare a templatized class
  20. question about function pointers
  21. Rot-13 encoding an std::string
  22. Masking a virtual function?
  23. Class inheritance question
  24. Passing a const object by reference.
  25. How can i get each coloumn of a 2D array as 1D arrays??
  26. Main loop helper functions
  27. NULL with representation other then all bits 0
  28. Online programming challeges?
  29. Please use wxWidgets
  30. More Solutions
  31. advantage of using typedefs
  32. Binary File Reader
  33. std::find / find_if versus for loop
  34. Casting return value to fit within constraints of error values (portability)
  35. How do you define key_compare and value_compare
  36. tightly coupled class design problem
  37. Random Colors For Use In Defining Different Regions
  38. writing binary data whose size exceeds unsinged it
  39. map inserts and efficiency
  40. How to pass this template template argument? (MSVC++ 8 error C3200)
  41. bitmap array
  42. ToString : convert types to string
  43. std::string, subscripting, and npos
  44. DOS interrupt
  45. Template Instantiation and member templates.
  46. Linux c app, called remotely by web.
  47. #include in header file for size_t
  48. how do increment operations work
  49. Forward iterators and past-the-end iterator
  50. About const references
  51. Help! Need to make my own color...
  52. source files vs. resource files
  53. Problems using recursion while browsing directories
  54. templated pointer function for simple array
  55. Subscript operator overloading with vectors
  56. second largest element in an array
  57. Permutation problem
  58. How to use wide char
  59. knight's tour helpppppp
  60. Bit-fields and integral promotion/UACs
  61. Comment on style
  62. Bitwise questions with the following code
  63. Binding
  64. Simple output problem
  65. vector erase
  66. Dataset always null
  67. How to find the dependencies among C files
  68. reda4win released
  69. Overwriting a portion of a binary file
  70. How to find the depencies among files in a project
  71. MS ACCESS and C++
  72. member initialization - no matching function - candidates are
  73. Socket class done the C++ way
  74. class design question
  75. s there something better than EnumPrinters?
  76. Main loop
  77. Multiple Double Linked Lists
  78. how to declare this template operator?
  79. extract data from file
  80. Veteran Programmers!
  81. Which members are created automatically, which members are not inherited?
  82. What is the advantage of inherit from unary_function template
  83. Enum to type (for static dispatching)
  84. Question about the clc string lib
  85. Which members are created automatically, which members are not inherited?
  86. What is the proper behavior of gmtime()?
  87. Removing elements in a list that are also in another list
  88. Removing elements from a list that are elements in another list
  89. const map templated 'find'
  90. Work it out
  91. Double getters
  92. Does c++ standart support thread? Is _beginthreadex the standard function?
  93. Segmentation fault in Matrix Multiplication
  94. Professional C software
  95. Importing Borland DLL to MSVC++
  96. can u tell me the reason that y we get this types of outputs
  97. std::string performance (Sun implementation)
  98. Help with FMOD
  99. code for two half diamond shapes
  100. %#08x formatting of printf
  101. 16x16Matrix
  102. Is out-of-bounds portable on a multidimensional array?
  103. char * pass-by-value
  104. user defined function that converts string to float
  105. which is faster
  106. What would new (char([0])) give?
  107. TTS(Text to Speech) Convertor.
  108. Cast vector<foo*> to vector<const foo*>?
  109. invalid lvalue in unary '&' .... why LKM
  110. invalid lvalue in unary '&' .... why LKM
  111. Are MAGIC numbers always bad?
  112. C++ POSIX implementation?
  113. Passing by reference... is it safe in this case?
  114. Another STL ?
  115. STL iterator/reverse_iterator
  116. simple drag & drop
  117. what is typecasting a pointer to the type (void *)p mean?
  118. I fixed a problem...Now, what exactly did I just do?
  119. Abnormal C++ Compile Time - How to debug?
  120. multiple inheritence contructor
  121. Macros (I know, yuk!)
  122. Random Access Iterator
  123. Return an iterator
  124. Question about operator new
  125. Loop over enum values
  126. cppmake
  127. Gerbage collection as a library
  128. Can I put this in a .h file?
  129. mouse click generation
  130. c as a beginner language
  131. Advice required on my ascii to hex conversion C++
  132. auto_ptr's exception safe
  133. what are the rules for writing header files?
  134. visitor pattern and COM like objects ?
  135. Solaris : Difference in g++ and CC compiler for variable length array declaration
  136. Regading interview Question.
  137. How do I detect infinite floats?
  138. Passing Through Constructor - Simple Error
  139. STL ??
  140. Critique requested.....
  141. How to use std::copy?
  142. collecting data from text file
  143. recursive
  144. SDX Dynamic Systems Simulation Software
  145. Best practices books
  146. Ada to C++ translator
  147. Nesting try blocks inside catch
  148. Whats going on - Char to Int Q:
  149. Double Linked List Code
  150. Using STL how do I convert a variable to a binary string
  151. inclusion compilation model question
  152. problem with code
  153. bitset solution
  154. union arrangement
  155. Help with template object
  156. reading data from a file
  157. STL iterator
  158. Converting a macro to a string
  159. Can C do this for me?
  160. Can C++ do it for me?
  161. Deprecated API?
  162. C++ Builder 6 - Password
  163. Little problem to use a priority queue
  164. database connection to oracle
  165. dtors that fail
  166. UDP broadcast problem
  167. experiment with std::fill
  168. The use of goto in C
  169. Error "type specifier omitted for parameter" in preprocessor directives??
  170. Pure Virtual Functions
  171. release build assertions/verifications
  172. making a VERY simple menu
  173. memory dump/re-read?
  174. First program
  175. Printf problem with big numbers....
  176. Interpreting error messages (gcc)
  177. bstr string to New character string
  178. is there any site which can provide any help on advanced C topics
  179. STL: copy vector of class ?
  180. static initializer order
  181. Running MS-DOS within a c++ program (Code)
  182. Definite type sizes
  183. explain the following declaration
  184. graph layout algorithm
  185. Help with std string
  186. Static String Concatenation
  187. Virtual Template or Template Virtual
  188. Remove items from a stl vector
  189. finding element width in dynamically allocated arrays
  190. Help with initialization of graph (Boost Graph Library)
  191. hello, every one , test,
  192. Interface
  193. global scope variable in .cpp file?
  194. input
  195. difference between -fpic and -FPIC
  196. PROBLEM when editing DAT file!
  197. Average All-Pair Path on a Graph
  198. Average All-Pair Shortest Path on a Graph
  199. does multimap insert invalidate iterator?
  200. "named parameters mechanism"
  201. Is this code ANSI-compliant?
  202. size of a class having enumerated data types?
  203. string
  204. Unexpected Result while compiling this code
  205. Smart Pointer library in C++
  206. memcpy a int to a char buffer ?
  207. C/C++ code to parse XML file
  208. garbage collection questions
  209. garbage collection questions
  210. C Programming
  211. Whats wrong with my stream ?
  212. Two-way pipes?
  213. Double Linked List
  214. Does structure order matter?
  215. Endianness (again)
  216. Debugging a Segmentation Fault in C++ STL code
  217. How to open a file in $PATH?
  218. How to determine the way data is stored in memory?
  219. question about operator new
  220. How to delete an array?
  221. how to use this utf8 interators to read from a file
  222. PostMessage() in vc++ thread not talking to main program
  223. 1)preprocessor warning ,2) argv[0]..btw, my first mail to clc :-)
  224. utility to view the expanded preprocessor macros
  225. How to install c++ on Windows
  226. hi all
  227. Runtime Structure Creation
  228. friend operator<< in template classes
  229. c++ as beginner...
  230. Specific sizes of variable types
  231. Video Streaming in Windows
  232. Selling my computer
  233. where does open open the file?
  234. malloc questions in C
  235. Debugging C++ program in GDB on linux
  236. Magic Wand Implementation
  237. Overloaded type converter STRANGE behaviour
  238. Automatic lvalue in functions
  239. Better casts?
  240. Replace simple function with object of same signature
  241. scanf function and 2-d arrays
  242. display from video card visual c++
  243. Test message - PLEASE IGNORE
  244. hi guys
  245. initialisation of static
  246. throw in destructors
  247. About the EOF
  248. Beginner excersice #1
  249. STL for loop ?
  250. question on the assignment operator
  251. List Iterator Not Incrementable?
  252. passing argument in STL loop ?
  253. what is causing this error?
  254. C programme
  255. ECMA-372 is stepping in on C++
  256. What is the advantage of Boost scoped_ptr?
  257. suggestions on improving source
  258. My C++ library
  259. Assignment through base class reference
  260. const correctness
  261. vector of vector of vectors
  262. cast vs. suffixes
  263. Question about Data Types and Shifting?
  264. strtok ( ) help
  265. ask for help on algorithm to trace a network
  266. NULL returned by fopen - where is a list of what's causing the error?
  267. loop -> for_each advanced
  268. loop -> for_each
  269. function call by value and by reference
  270. 夜行
  271. c pointers
  272. how to init a derived struct?
  273. order of #include statements
  274. Pointer arithmetic question
  275. GNU libstdc++ crash 64 bits gcc 3.4.2
  276. Having a bit of a blonde moment with malloc...
  277. Accessing Lvalue from function
  278. Where can I get the source for g++ 2.95.?
  279. making sure that the deallocated dynamically memory returns to the heap?
  280. error C2664: 'strcpy' : cannot convert parameter 2 from 'char' to 'const char *'
  281. STL vector with iterators
  282. Asynchronous functions
  283. c++ support for unicode, utf-8, encode/decode, ifstream, wstream?
  284. Initialize const or static map
  285. printer streams?
  286. can a function name be an identifier?
  287. STL and aCC
  288. Handling ThumbTrack Notification for Multiline Edit Control
  289. STL ?
  290. get filename from string
  291. C database.....
  292. standard header files
  293. drag and drop onto exe
  294. extracting rest of an istream (istrstream)
  295. function pointers
  296. C++ Interview questions for large C++ projects
  297. string.format help
  298. Funny! More offers to select a search engine! (oo)
  299. Any good way to extend std::swap?
  300. What does SIMENTRY mean?
  301. policy base class using static member functions
  302. policy base class using static member functions
  303. instance scope ?
  304. Shared string inside DLL
  305. Create a list of class as a member attribute
  306. sending <STX><ETX > charaters to RS232 port
  307. Any help?
  308. circle
  309. Circle code
  310. Forward declarations to static variables
  311. C++ Builder 6 - Datamodule
  312. String manipulation
  313. memset on structs with non-PODs
  314. indication
  315. Please review the code for determining execution time.
  316. paradox when constructor of an pure abstract base class called?
  317. sscanf and scanf behave differently
  318. memory mapped file stream
  319. "Virtual constructor" abstract base class - feasibility?
  320. c program binary/image in memory
  321. Welcome,bugs fixed under FireFox/NS/Mozilla/Opera!
  322. Help with program crashing...
  323. using streams for communication between threads...?
  324. doubt in strcmp
  325. about return type of an overloaded operator
  326. debug mode
  327. language law - how to describe the state of uninitialized static storage
  328. checking bits
  329. Overload operator error ?
  330. Execute a function in each element of the list conditionally
  331. Efficient list swap
  332. copying a file
  333. C++0x and file I/O
  334. pointer reference problem
  335. Question about STL erase function
  336. how to write only one parameter in a file
  337. string to class type using typeinfo
  338. Visual Studio 2005 C++ Resouces
  339. Saving BLOB data using C++ In one insert statement into Oracle
  340. memset a member array of a packed structure
  341. Dual-Graph Library
  342. printf - Can't print "print\my\message"
  343. C++ Builder - how to read and write the registry
  344. stoopid begineer with a question
  345. iota
  346. C++ strings
  347. reading from a binary file
  348. How sizeof() works?
  349. function prototypes
  350. templates problem
  351. using "!!" in "c"
  352. reading TCP header
  353. ostringstream and memcpy
  354. Funny! More offers to select a search engine!
  355. Funny! More offers to select a search engine!
  356. where can I get FAQ?
  357. Concurrent Pascal vs. c++ ?
  358. Available C++ Libraries FAQ
  359. Return value of system
  360. #define and typedef
  361. implementation dilema
  362. Decent Reference Site
  363. return the file contents into an array or string
  364. A C Question.
  365. problem with array and classes
  366. problem with operator<<
  367. Relative prevalence of "good" C++
  368. Unwanted debug messages
  369. The floating point environment
  370. New to C: Getting Application error when running program
  371. size of a variable from a pointer
  372. trouble including "iostream" "fstream"
  373. No argument constructor and function prototype
  374. difference between a namespace and class with just default constructor
  375. parsing files
  376. Need 2 values from function
  377. Newsgarbage user-controlled tech news site goes into beta!
  378. Newsgarbage user-controlled tech news site goes into beta!
  379. error: 'std::ios_base& std::ios_base::operator=(const std::ios_base&)' is private
  380. Malloc and sizeof
  381. std::map with user defined data
  382. STL algorithm VS Java loop
  383. ))))
  384. classes pointers
  385. About The Switch
  386. Passing an evaluated variable to new in allocating a derived class
  387. c++/stl development top nyc financial firm
  388. unions & structs...
  389. pointers
  390. why return causes an Illegal syntax??
  391. porg question
  392. * Need help Implementing a script (or macro)
  393. confused
  394. Barton-Nackman and compilation under Solaris
  395. design guidance
  396. Directory Structure
  397. Recast a member variable in derived class?
  398. Function to search for Characters
  399. make a program using C,C++
  400. as small as possible
  401. C++
  402. map whose key_type is the pointer to an object
  403. slicing copy, what's wrong with abstract class?
  404. opening a sequence of files
  405. project in c
  406. Calling static function using uninitialized pointer??
  407. Turbo Pascal
  408. #define errors
  409. Is it possible to access this newsgroup using Thunderbird?
  410. std::list iterator usage
  411. pros and cons using reference-counter VS reference-link
  412. from vector of pairs to a map
  413. Overloading 'casting' operator
  414. DLL, XML, What the H-E-Double Bang
  415. auto_ptr and PIMPL
  416. Buffer overrun - exit or abort?
  417. Question about Effective STL item 7
  418. difference between generics and templates
  419. typedef in C++
  420. STL string - converting to low case
  421. Physical Location of #define Symbols
  422. c++ float and integer
  423. JOB OPENINGS
  424. Error in program. cannot convert from 'char []' to 'char [10]'
  425. COPYING (not extracting) data from an istream object
  426. Rounding floats/doubles
  427. multiple return paths question
  428. use of static
  429. Setting member variables before constructor call
  430. decimal constants
  431. invoking member functions without creating an object or pointer of the class?
  432. Accessing web through C/Perl in Unix
  433. ejo
  434. how to implement a "typoef" thingy.
  435. alignment
  436. borland c installation
  437. SOCI 2.0 - a database library
  438. Problem with member and non-member binary operator in template class
  439. Cube root computation
  440. CFP: LASER Summer School on Software Engineering
  441. CFP: LASER Summer School on Software Engineering
  442. Global variables.
  443. fgets
  444. pragma
  445. How C++ Exception handling works ?
  446. missing #endif problem
  447. Implementing library algorithms
  448. Passing different variable types to a function
  449. some problem of a.out
  450. Want to shift bits with addition of 1
  451. looking to use graphics, can't find any thing
  452. confusion over static variables
  453. virtual functions
  454. auto_ptr memory leak with arrays?
  455. Printing a char * to a file
  456. Variable declaration and initialisation
  457. NULL pointer and null references
  458. Tightening up Shootout code
  459. Clear Thinking Power for Comp Developers
  460. operator overloading true and false
  461. Clear Thinking Power for Comp Developers
  462. a little problem
  463. key-value pairs: key consists of 3 ints
  464. Checkpointing Routines
  465. How standard atoi works?
  466. memory leak in threaded getpwuid_r() usage
  467. Portability / compatibility issues
  468. Ken Thompson - Reflections on Trusting Trust
  469. macros with an example program to new learner
  470. a little advice
  471. Removing a vector element using std::swap and std::vector::resize.
  472. How can a string by accidently modified?
  473. Pass String from Visual Basic GUI to a C++ DLL?
  474. debugging -- behaviour to be explained.
  475. return "chars"
  476. New to C++ need help
  477. Function inlining
  478. Using time_put and time_get from <locale>.
  479. Compile error with virtual inheritance: const <anonymous>** - AGAIN
  480. save to file
  481. why i can not convert a char ** to a const char ** ?
  482. Template class - Compilation problem
  483. Templates and Inlining
  484. C++ Beginners question
  485. About retrieve an arbitrary byte among four bytes of an int.
  486. template in error
  487. debugging a memory violation problem
  488. constructor and initializer
  489. debugging runtime error
  490. detect necessary #includes
  491. Why (type*)pointer isn't equal to *(type**)pointer?
  492. Question about Boost.lambda example
  493. The bad coder joke =D
  494. The bad coder joke =D
  495. template problem in MSVC6 - getting wrong parameter type
  496. Unable to compile using boost::date_time library
  497. Calculating distances in O(1)
  498. Is my understanding of containers valid?
  499. What to do when base class is not specified as virtual?
  500. Peeking an entire line from an istream
  501. stl: what member function need to exist in class for list implementation
  502. Need a queue in C
  503. STL bind1st question
  504. Efficient division/remainder in C
  505. Problem: global variables and singleton
  506. Any memory leak for this Singleton Implementation
  507. diamond inheritance, constr. question
  508. Conversion of char * to bool
  509. Moving Project From VS 2003 to VS 2005
  510. STL vector VS list
  511. Problem with Accessors
  512. How does free() know how many elements should be freed in a dynamic array?
  513. How do free() know how many elements should be freed in a dynamic array?
  514. Temporary varriables and thread safety
  515. wait in c
  516. Find duplicate entries in STL algorithm
  517. Compile error with virtual inheritance: const <anonymous>**
  518. How/why does this work?
  519. The difference between C and C++
  520. assign value in const variable
  521. Error trapping
  522. valarray addition and overflow handling
  523. How to activate a running Windows application
  524. loop -> for_each
  525. When to use private inheritance
  526. getting current date in C in the VC environ
  527. File-splitting Function: Uses FILE * - better way with ifstream?
  528. Macro GCC????
  529. typedefs, qualified identifiers, class names and name lookup
  530. Making the best of it!!
  531. Declaring struct as static is causing problem.
  532. operator new override/overload?
  533. strange ifstream problem
  534. Link error in minGW (seems libstdc++.a is not in the search path)
  535. How do the compiler knows about the change that is made in the static variable?
  536. what is fun1()->fun2(params)
  537. (help) Runtime error in ifstream/ios class
  538. Need help reading UTF-16 files ...
  539. Help with template friend and ostream, I think I am close
  540. C++ Reading binary data written by other Language programs
  541. C++ / STL / G++ / Slackware
  542. how could i declare & define function in header file
  543. port Win app to Linux Questions: Memory management and OEM Char
  544. Need clarification about virtual methods & inheritance
  545. Bit-field Question
  546. ternary expression validity
  547. Debug a C DLL
  548. Template argument deduction cannot be performed
  549. Need recommendations for code modularization
  550. What does * new mean?