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