General C++ Programming - August 2012 (Page 2)

Casting member function addresses
I'm trying to convert some code to OOP. I used to have this which worked fine: LRESULT CALL...
[7 replies] Last: > is it C++11? Does this just disable default copy & assignment constr... (by JLBorges)
Finding common words in a file using lexicographical matching [ help ]
I'm supposed to determine and list the 50 most common words in a file. #include <iostream> #inc...
[2 replies] Last: //Get the filename. cout << "Enter the file you wish to have ... (by ToniAz)
How to replace a string with another string while given the number of word and not position?
Hello , I am trying to do a program in which the output should be : Please enter a string : Hel...
[5 replies] Last: @srikanth chitturi Are you saying me? I have understood the task ve... (by vlad from moscow)
Tranfer to c++
Hello, I am having a huge problem trying to transfer this to c++. I guess your not supposed to use...
[3 replies] Last: It really helps if you tell us what the problem is. (by Disch)
by Zeikoh
Strange Project Idea?
Hello all, I thought about doing some strange project to help me gain more experience in C++ sinc...
[7 replies] Last: Thanks, but that's okay, I wanted to do this on my own as a learning ... (by jason9559)
Specify a file name to save
I'm creating a Sudoku game, and would like to save to board contents to a file. I have it to work wi...
[4 replies] Last: Check out dirent.h your API Will do. I found the dirent.h file and... (by whitenite1)
How to trace in dev-cpp
how do i trace the cpp programs in dev-cpp as we used to trace in the old blue screen turbo C using ...
[no replies]
by R0mai
Can the compiler made to output trace information
Hi guys, I recently got familiar with the -pg option for compilers, which makes your program gene...
[1 reply] : (by ne555)
QtSDK build errors
I've downloaded/installed the QtSDK for windows. I tried to run one of their sample projects but ...
[no replies]
Hi, I need a platform independent function for producing the exact hex for this format and so far th...
[12 replies] Last: I forgot to add this to bottom of last function i = 0; iEnd = 8; ... (by awsdert)
Doubt in virtual function
Hi all, I was browsing through a code and found one thing which sort of confused me. There is ...
[5 replies] Last: No, not unless you overload it or make it a variadic function. (by iHutch105)
by beakie
MACROS - what can u do with them?
Can I use them to customise the header file??? I only want to include SomeStruct if I have defined ...
[2 replies] Last: @BlackSheep : there is already a class for this in the standard : std... (by R0mai)
String get's recognized as boolean?
Can anyone tell me why this happens. I have a class with couple of member functions which are overlo...
[4 replies] Last: Nice, thank you very much for clearing that up :=) (by doddolfur)
confusing output
#include<iostream.h> class A{ public: char a; }; class B:public A{ public: int b; }; ...
[1 reply] : This should answer your question : (by R0mai)
Vector of Structures - Memory
Hi all, I would like to know what would happen in the following scenario struct my_struct{ ...
[6 replies] Last: The vector will take care of it automatically. Its destructor deletes ... (by BlackSheep)
by JackG
Mixed Languages Compile AND Link (Cobol calling C++)
Hello Experts, I am trying to call a C++ program from a Cobol program. I have searched all over ...
[5 replies] Last: I know virtually nothing about COBOL, let alone COBOL to C++ interoper... (by JLBorges)
error with getchar
the programe is not wOrking prOpertly with getchar() is wOrking with gt ch,getche and c...
[2 replies] Last: Add this statement before your getchar call: while (cin.readsome(&t... (by broser)
Need help with an Array in a class
the average.h (header file) #ifndef H_average #define H_average class average { public:...
[1 reply] : You mean here: int average::Sum () const { for (n = 0; n < 100; n +... (by BlackSheep)
main.cpp not finding functions in class
Solved it myself, never mind!
[no replies]
**Array of *arrays
I am trying to make a **array that holds a char*array and was wondering how I would do that. I wante...
[2 replies] Last: char **parent = new char* ; for(size_t i = 0; i < NUM_STRINGS; ++i)... (by BlackSheep)
August 2012 Pages: 1234... 31
  Archived months: [jul2012] [sep2012]

This is an archived page. To post a new message, go to the current page.