General C++ Programming - April 2013 (Page 2)

C VS C++
 
Hello, Guys, Please anyone tell me, What is the difference between C and C++ ?? ...................................................... g...
[7 replies] Last: Also virtual functions + inheritance behavior is pain to simulate in C... (by MiiNiPaa)
Reading and writing to the same file?
 
Is there a way to read and write to the same file? I'm writing a game program and I want to save the score at the end of the game to a txt file. The txt file...
[2 replies] Last: You don't have to go to the physical file every time. Read the file in... (by writetonsharma)
Searching a list of vectors
 
How would you search through the a list of vectors? I have a upper case letter at the start of the lists and corresponding lower case letters in vectors how wou...
[1 reply] : Your question is a bit vague. Do you want to count the number of times... (by The Palm Tree Magician)
by ss91
C++ record
 
I want to record voice from pc 's microphone and save it to a wave file.I use linux for C programming.There are so many API's but how can I do this without API ...
[1 reply] : Interact with device driver, access raw data, process it, encode, save... (by MiiNiPaa)
Getting into GUI development?
 
I've coded long enough in c++ now that I feel comfortable with trying to implement GUI's now. I have looked at the Qt API, and I'm not a big fan of it. It would...
[3 replies] Last: Try WPF : xaml based. (by chinchu)
#define phrases and words
 
Is there anyway to #define phrases to mean words? Example: #define A Very Long Integer __int64 The preprocessor thinks that I am defining "A" to mean "...
[6 replies] Last: Thanks so much! Here is my code if anyone else wants to see. #includ... (by closed account 18hRX9L8)
hybrid imaging
 
I've put together this program to make a hybrid image from two given images. It scales them corectly and puts them together but they dont quite line up properl...
[no replies]
Math library
 
Hey guys, I'm new to c++ and need to create a math library that is capable of doing the following tasks: Create an Identity Matric Create a Translation Matr...
[1 reply] : First when posting code use code tags: http://www.cplusplus.com/articl... (by Lachlan Easton)
PDCurses getch() buffers
 
I'm attempting to make a game under PDCurses (almost identical to NCurses, for those of you who don't know), and the movement is causing me a problem. If I hold...
[6 replies] Last: That's a lot to do every time a key is pressed, especially once key re... (by Duthomhas)
Beeping sound when file changes (1,2)
 
I want to make my computer beep, when a specific file I have already created changes. The idea is this: I have a personalized e-mail for my website. When peop...
[20 replies] Last: @samuel Thank you very much for your efforts! Sorry for late reply, I ... (by Donanza)
Displaying error message between array inputs
 
Hi I've written out the following code, its part of on an OOP program. int main() { Household Array ; string id; int members; f...
[4 replies] Last: Ahh I guess that could be so. Thanks again (by Progressive)
Boost preprocessor library
 
I'm having some trouble expanding to the base value # include <boost/preprocessor/cat.hpp> #define REL_ITERATION_1 1 #define REL_FRAME_ITERATION(i) B...
[1 reply] : Never mind. I missed the part in the documentation where it says if it... (by AdrianH)
Reading file into a Linked List.
 
I'm having some trouble with reading a file into a linked list. It reads in properly, but I am trying to sort it by first name... int main() { // C...
[no replies]
File recursion limitation
 
It seems that boost's file recursion requires that the file using the recursion must be in the include path. This makes using file recursion in a library heade...
[9 replies] Last: > Do you know why? No. I haven't used this library at all (except ind... (by JLBorges)
by jorgen
Floating pt. subtraction error depends on abs. values
 
I thought I understood subtraction errors (subtracting two almost equal numbers effectively removes one digit of precision per equal digit) but apparently not; ...
[2 replies] Last: 1 , 100000000000000.0 and 9999999999999.0 are valid values for th... (by Cubbi)
need help with program!
 
My problem is i get some errors, let me further myself. 1st problem is I cannot figure out why the for loop will not work in the function, i attempted to take ...
[1 reply] : Use tags, it makes the code more readable. What are you trying to ac... (by closed account 9wqjE3v7)
Creating a Linked List of common elements from two other linked lists..
 
Hello all, I'm trying to write a function that takes two linked lists and creates a third one with only the common elements. It assumes the first list (th...
[10 replies] Last: However, still cant get my original question to work.. (by jjroyale)
Help with Destructors
 
Hi all. I am working on an assignment for my C++ class. I have the code written but am unsure why the destructor is not outputting when an item has been destr...
[5 replies] Last: "How run prog" "How start app" ... there are several ways to do it. O... (by keskiverto)
Duplicating an moving image?
 
Oh dear... sorry for the horrible grammatical mistake in the title. How dare I make such a mistake :/ void playReaper(){ int olddirection = 0, newdirection =...
[15 replies] Last: I think you should just use a newer graphics API. This is shameful. (by closed account N36fSL3A)
by Aceix
C++ keywords
 
Hi, I just want to know what these kewords mean and many ways to use them. auto, ref, const(used for methods--functions i classes) Thanks in advance, Ac...
[14 replies] Last: Oh okay. I get what you mean. (by Disch)
April 2013 Pages: 1234... 53
  Archived months: [mar2013] [may2013]

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