View Full Version : c answers
- qsort of malloc'ed structs
- CAN WE TYPE CAST AN INTEGER AS (VOID *)X..(Like can I return a value (void *)x)
- Is there any command like Pause or Nope in C++?
- reading lines from file
- Global Array with size for input
- break outside a loop and a switch
- checking and verifying input line in a C program
- [MFC] CDataExchange::Fail() fails
- which clustering algorithm to use
- File I/o questions
- Implementing
- help with string reverse
- Operator < in map template
- C++ Network Solution -- Where should I begin?
- syntax question
- Problem with fopen
- UNIX command prompt
- custom allocator using templates
- Forward declare a templatized class
- question about function pointers
- Rot-13 encoding an std::string
- Masking a virtual function?
- Class inheritance question
- Passing a const object by reference.
- How can i get each coloumn of a 2D array as 1D arrays??
- Main loop helper functions
- NULL with representation other then all bits 0
- Online programming challeges?
- Please use wxWidgets
- More Solutions
- advantage of using typedefs
- Binary File Reader
- std::find / find_if versus for loop
- Casting return value to fit within constraints of error values (portability)
- How do you define key_compare and value_compare
- tightly coupled class design problem
- Random Colors For Use In Defining Different Regions
- writing binary data whose size exceeds unsinged it
- map inserts and efficiency
- How to pass this template template argument? (MSVC++ 8 error C3200)
- bitmap array
- ToString : convert types to string
- std::string, subscripting, and npos
- DOS interrupt
- Template Instantiation and member templates.
- Linux c app, called remotely by web.
- #include in header file for size_t
- how do increment operations work
- Forward iterators and past-the-end iterator
- About const references
- Help! Need to make my own color...
- source files vs. resource files
- Problems using recursion while browsing directories
- templated pointer function for simple array
- Subscript operator overloading with vectors
- second largest element in an array
- Permutation problem
- How to use wide char
- knight's tour helpppppp
- Bit-fields and integral promotion/UACs
- Comment on style
- Bitwise questions with the following code
- Binding
- Simple output problem
- vector erase
- Dataset always null
- How to find the dependencies among C files
- reda4win released
- Overwriting a portion of a binary file
- How to find the depencies among files in a project
- MS ACCESS and C++
- member initialization - no matching function - candidates are
- Socket class done the C++ way
- class design question
- s there something better than EnumPrinters?
- Main loop
- Multiple Double Linked Lists
- how to declare this template operator?
- extract data from file
- Veteran Programmers!
- Which members are created automatically, which members are not inherited?
- What is the advantage of inherit from unary_function template
- Enum to type (for static dispatching)
- Question about the clc string lib
- Which members are created automatically, which members are not inherited?
- What is the proper behavior of gmtime()?
- Removing elements in a list that are also in another list
- Removing elements from a list that are elements in another list
- const map templated 'find'
- Work it out
- Double getters
- Does c++ standart support thread? Is _beginthreadex the standard function?
- Segmentation fault in Matrix Multiplication
- Professional C software
- Importing Borland DLL to MSVC++
- can u tell me the reason that y we get this types of outputs
- std::string performance (Sun implementation)
- Help with FMOD
- code for two half diamond shapes
- %#08x formatting of printf
- 16x16Matrix
- Is out-of-bounds portable on a multidimensional array?
- char * pass-by-value
- user defined function that converts string to float
- which is faster
- What would new (char([0])) give?
- TTS(Text to Speech) Convertor.
- Cast vector<foo*> to vector<const foo*>?
- invalid lvalue in unary '&' .... why LKM
- invalid lvalue in unary '&' .... why LKM
- Are MAGIC numbers always bad?
- C++ POSIX implementation?
- Passing by reference... is it safe in this case?
- Another STL ?
- STL iterator/reverse_iterator
- simple drag & drop
- what is typecasting a pointer to the type (void *)p mean?
- I fixed a problem...Now, what exactly did I just do?
- Abnormal C++ Compile Time - How to debug?
- multiple inheritence contructor
- Macros (I know, yuk!)
- Random Access Iterator
- Return an iterator
- Question about operator new
- Loop over enum values
- cppmake
- Gerbage collection as a library
- Can I put this in a .h file?
- mouse click generation
- c as a beginner language
- Advice required on my ascii to hex conversion C++
- auto_ptr's exception safe
- what are the rules for writing header files?
- visitor pattern and COM like objects ?
- Solaris : Difference in g++ and CC compiler for variable length array declaration
- Regading interview Question.
- How do I detect infinite floats?
- Passing Through Constructor - Simple Error
- STL ??
- Critique requested.....
- How to use std::copy?
- collecting data from text file
- recursive
- SDX Dynamic Systems Simulation Software
- Best practices books
- Ada to C++ translator
- Nesting try blocks inside catch
- Whats going on - Char to Int Q:
- Double Linked List Code
- Using STL how do I convert a variable to a binary string
- inclusion compilation model question
- problem with code
- bitset solution
- union arrangement
- Help with template object
- reading data from a file
- STL iterator
- Converting a macro to a string
- Can C do this for me?
- Can C++ do it for me?
- Deprecated API?
- C++ Builder 6 - Password
- Little problem to use a priority queue
- database connection to oracle
- dtors that fail
- UDP broadcast problem
- experiment with std::fill
- The use of goto in C
- Error "type specifier omitted for parameter" in preprocessor directives??
- Pure Virtual Functions
- release build assertions/verifications
- making a VERY simple menu
- memory dump/re-read?
- First program
- Printf problem with big numbers....
- Interpreting error messages (gcc)
- bstr string to New character string
- is there any site which can provide any help on advanced C topics
- STL: copy vector of class ?
- static initializer order
- Running MS-DOS within a c++ program (Code)
- Definite type sizes
- explain the following declaration
- graph layout algorithm
- Help with std string
- Static String Concatenation
- Virtual Template or Template Virtual
- Remove items from a stl vector
- finding element width in dynamically allocated arrays
- Help with initialization of graph (Boost Graph Library)
- hello, every one , test,
- Interface
- global scope variable in .cpp file?
- input
- difference between -fpic and -FPIC
- PROBLEM when editing DAT file!
- Average All-Pair Path on a Graph
- Average All-Pair Shortest Path on a Graph
- does multimap insert invalidate iterator?
- "named parameters mechanism"
- Is this code ANSI-compliant?
- size of a class having enumerated data types?
- string
- Unexpected Result while compiling this code
- Smart Pointer library in C++
- memcpy a int to a char buffer ?
- C/C++ code to parse XML file
- garbage collection questions
- garbage collection questions
- C Programming
- Whats wrong with my stream ?
- Two-way pipes?
- Double Linked List
- Does structure order matter?
- Endianness (again)
- Debugging a Segmentation Fault in C++ STL code
- How to open a file in $PATH?
- How to determine the way data is stored in memory?
- question about operator new
- How to delete an array?
- how to use this utf8 interators to read from a file
- PostMessage() in vc++ thread not talking to main program
- 1)preprocessor warning ,2) argv[0]..btw, my first mail to clc :-)
- utility to view the expanded preprocessor macros
- How to install c++ on Windows
- hi all
- Runtime Structure Creation
- friend operator<< in template classes
- c++ as beginner...
- Specific sizes of variable types
- Video Streaming in Windows
- Selling my computer
- where does open open the file?
- malloc questions in C
- Debugging C++ program in GDB on linux
- Magic Wand Implementation
- Overloaded type converter STRANGE behaviour
- Automatic lvalue in functions
- Better casts?
- Replace simple function with object of same signature
- scanf function and 2-d arrays
- display from video card visual c++
- Test message - PLEASE IGNORE
- hi guys
- initialisation of static
- throw in destructors
- About the EOF
- Beginner excersice #1
- STL for loop ?
- question on the assignment operator
- List Iterator Not Incrementable?
- passing argument in STL loop ?
- what is causing this error?
- C programme
- ECMA-372 is stepping in on C++
- What is the advantage of Boost scoped_ptr?
- suggestions on improving source
- My C++ library
- Assignment through base class reference
- const correctness
- vector of vector of vectors
- cast vs. suffixes
- Question about Data Types and Shifting?
- strtok ( ) help
- ask for help on algorithm to trace a network
- NULL returned by fopen - where is a list of what's causing the error?
- loop -> for_each advanced
- loop -> for_each
- function call by value and by reference
- 夜行
- c pointers
- how to init a derived struct?
- order of #include statements
- Pointer arithmetic question
- GNU libstdc++ crash 64 bits gcc 3.4.2
- Having a bit of a blonde moment with malloc...
- Accessing Lvalue from function
- Where can I get the source for g++ 2.95.?
- making sure that the deallocated dynamically memory returns to the heap?
- error C2664: 'strcpy' : cannot convert parameter 2 from 'char' to 'const char *'
- STL vector with iterators
- Asynchronous functions
- c++ support for unicode, utf-8, encode/decode, ifstream, wstream?
- Initialize const or static map
- printer streams?
- can a function name be an identifier?
- STL and aCC
- Handling ThumbTrack Notification for Multiline Edit Control
- STL ?
- get filename from string
- C database.....
- standard header files
- drag and drop onto exe
- extracting rest of an istream (istrstream)
- function pointers
- C++ Interview questions for large C++ projects
- string.format help
- Funny! More offers to select a search engine! (oo)
- Any good way to extend std::swap?
- What does SIMENTRY mean?
- policy base class using static member functions
- policy base class using static member functions
- instance scope ?
- Shared string inside DLL
- Create a list of class as a member attribute
- sending <STX><ETX > charaters to RS232 port
- Any help?
- circle
- Circle code
- Forward declarations to static variables
- C++ Builder 6 - Datamodule
- String manipulation
- memset on structs with non-PODs
- indication
- Please review the code for determining execution time.
- paradox when constructor of an pure abstract base class called?
- sscanf and scanf behave differently
- memory mapped file stream
- "Virtual constructor" abstract base class - feasibility?
- c program binary/image in memory
- Welcome,bugs fixed under FireFox/NS/Mozilla/Opera!
- Help with program crashing...
- using streams for communication between threads...?
- doubt in strcmp
- about return type of an overloaded operator
- debug mode
- language law - how to describe the state of uninitialized static storage
- checking bits
- Overload operator error ?
- Execute a function in each element of the list conditionally
- Efficient list swap
- copying a file
- C++0x and file I/O
- pointer reference problem
- Question about STL erase function
- how to write only one parameter in a file
- string to class type using typeinfo
- Visual Studio 2005 C++ Resouces
- Saving BLOB data using C++ In one insert statement into Oracle
- memset a member array of a packed structure
- Dual-Graph Library
- printf - Can't print "print\my\message"
- C++ Builder - how to read and write the registry
- stoopid begineer with a question
- iota
- C++ strings
- reading from a binary file
- How sizeof() works?
- function prototypes
- templates problem
- using "!!" in "c"
- reading TCP header
- ostringstream and memcpy
- Funny! More offers to select a search engine!
- Funny! More offers to select a search engine!
- where can I get FAQ?
- Concurrent Pascal vs. c++ ?
- Available C++ Libraries FAQ
- Return value of system
- #define and typedef
- implementation dilema
- Decent Reference Site
- return the file contents into an array or string
- A C Question.
- problem with array and classes
- problem with operator<<
- Relative prevalence of "good" C++
- Unwanted debug messages
- The floating point environment
- New to C: Getting Application error when running program
- size of a variable from a pointer
- trouble including "iostream" "fstream"
- No argument constructor and function prototype
- difference between a namespace and class with just default constructor
- parsing files
- Need 2 values from function
- Newsgarbage user-controlled tech news site goes into beta!
- Newsgarbage user-controlled tech news site goes into beta!
- error: 'std::ios_base& std::ios_base::operator=(const std::ios_base&)' is private
- Malloc and sizeof
- std::map with user defined data
- STL algorithm VS Java loop
- ))))
- classes pointers
- About The Switch
- Passing an evaluated variable to new in allocating a derived class
- c++/stl development top nyc financial firm
- unions & structs...
- pointers
- why return causes an Illegal syntax??
- porg question
- * Need help Implementing a script (or macro)
- confused
- Barton-Nackman and compilation under Solaris
- design guidance
- Directory Structure
- Recast a member variable in derived class?
- Function to search for Characters
- make a program using C,C++
- as small as possible
- C++
- map whose key_type is the pointer to an object
- slicing copy, what's wrong with abstract class?
- opening a sequence of files
- project in c
- Calling static function using uninitialized pointer??
- Turbo Pascal
- #define errors
- Is it possible to access this newsgroup using Thunderbird?
- std::list iterator usage
- pros and cons using reference-counter VS reference-link
- from vector of pairs to a map
- Overloading 'casting' operator
- DLL, XML, What the H-E-Double Bang
- auto_ptr and PIMPL
- Buffer overrun - exit or abort?
- Question about Effective STL item 7
- difference between generics and templates
- typedef in C++
- STL string - converting to low case
- Physical Location of #define Symbols
- c++ float and integer
- JOB OPENINGS
- Error in program. cannot convert from 'char []' to 'char [10]'
- COPYING (not extracting) data from an istream object
- Rounding floats/doubles
- multiple return paths question
- use of static
- Setting member variables before constructor call
- decimal constants
- invoking member functions without creating an object or pointer of the class?
- Accessing web through C/Perl in Unix
- ejo
- how to implement a "typoef" thingy.
- alignment
- borland c installation
- SOCI 2.0 - a database library
- Problem with member and non-member binary operator in template class
- Cube root computation
- CFP: LASER Summer School on Software Engineering
- CFP: LASER Summer School on Software Engineering
- Global variables.
- fgets
- pragma
- How C++ Exception handling works ?
- missing #endif problem
- Implementing library algorithms
- Passing different variable types to a function
- some problem of a.out
- Want to shift bits with addition of 1
- looking to use graphics, can't find any thing
- confusion over static variables
- virtual functions
- auto_ptr memory leak with arrays?
- Printing a char * to a file
- Variable declaration and initialisation
- NULL pointer and null references
- Tightening up Shootout code
- Clear Thinking Power for Comp Developers
- operator overloading true and false
- Clear Thinking Power for Comp Developers
- a little problem
- key-value pairs: key consists of 3 ints
- Checkpointing Routines
- How standard atoi works?
- memory leak in threaded getpwuid_r() usage
- Portability / compatibility issues
- Ken Thompson - Reflections on Trusting Trust
- macros with an example program to new learner
- a little advice
- Removing a vector element using std::swap and std::vector::resize.
- How can a string by accidently modified?
- Pass String from Visual Basic GUI to a C++ DLL?
- debugging -- behaviour to be explained.
- return "chars"
- New to C++ need help
- Function inlining
- Using time_put and time_get from <locale>.
- Compile error with virtual inheritance: const <anonymous>** - AGAIN
- save to file
- why i can not convert a char ** to a const char ** ?
- Template class - Compilation problem
- Templates and Inlining
- C++ Beginners question
- About retrieve an arbitrary byte among four bytes of an int.
- template in error
- debugging a memory violation problem
- constructor and initializer
- debugging runtime error
- detect necessary #includes
- Why (type*)pointer isn't equal to *(type**)pointer?
- Question about Boost.lambda example
- The bad coder joke =D
- The bad coder joke =D
- template problem in MSVC6 - getting wrong parameter type
- Unable to compile using boost::date_time library
- Calculating distances in O(1)
- Is my understanding of containers valid?
- What to do when base class is not specified as virtual?
- Peeking an entire line from an istream
- stl: what member function need to exist in class for list implementation
- Need a queue in C
- STL bind1st question
- Efficient division/remainder in C
- Problem: global variables and singleton
- Any memory leak for this Singleton Implementation
- diamond inheritance, constr. question
- Conversion of char * to bool
- Moving Project From VS 2003 to VS 2005
- STL vector VS list
- Problem with Accessors
- How does free() know how many elements should be freed in a dynamic array?
- How do free() know how many elements should be freed in a dynamic array?
- Temporary varriables and thread safety
- wait in c
- Find duplicate entries in STL algorithm
- Compile error with virtual inheritance: const <anonymous>**
- How/why does this work?
- The difference between C and C++
- assign value in const variable
- Error trapping
- valarray addition and overflow handling
- How to activate a running Windows application
- loop -> for_each
- When to use private inheritance
- getting current date in C in the VC environ
- File-splitting Function: Uses FILE * - better way with ifstream?
- Macro GCC????
- typedefs, qualified identifiers, class names and name lookup
- Making the best of it!!
- Declaring struct as static is causing problem.
- operator new override/overload?
- strange ifstream problem
- Link error in minGW (seems libstdc++.a is not in the search path)
- How do the compiler knows about the change that is made in the static variable?
- what is fun1()->fun2(params)
- (help) Runtime error in ifstream/ios class
- Need help reading UTF-16 files ...
- Help with template friend and ostream, I think I am close
- C++ Reading binary data written by other Language programs
- C++ / STL / G++ / Slackware
- how could i declare & define function in header file
- port Win app to Linux Questions: Memory management and OEM Char
- Need clarification about virtual methods & inheritance
- Bit-field Question
- ternary expression validity
- Debug a C DLL
- Template argument deduction cannot be performed
- Need recommendations for code modularization
- What does * new mean?