General C++ Programming - October 2011 (Page 23)

questions
 
consider the following equations sum=x+(x^2/2!)+(x^3/3!)+.......+(x^n/n!) write a program in object oriented programming to find the sum of the nth term and t...
[3 replies] Last: Thanks for assistance i will write the code the paste then see if you ... (by willyrop18)
what is meant by return and void??
 
what is the function of return? can change the return 0 into return 1 /2/3 or other integer? for void, what is the function? if i use void ,then needed to u...
[3 replies] Last: I believe he means, what's the different between int main() and voi... (by Kyon)
by MICK
H. file
 
How to get the header files of libavformat and libavcodec.. Are they in dll format
[2 replies] Last: I found the site but don't know how to get it from there..Many URLs..M... (by MICK)
Computing whether is a perfect number
 
Hi, I need to create a program that will display if a number is a perfect number or not. We need to use a boolean to determine if its perfect or not. Heere is w...
[2 replies] Last: Use [co de] tags!!! if (result = true) should be if (result == t... (by Nisheeth)
by kalimm
Replacing characters in an existing file.
 
My problem states this: Read the given file (HW3P2.txt), and output the contents to another file output.txt with the following modifications. Remove any 'a'...
[1 reply] : The problem is the processing of the end of line character. It's sort... (by kbw)
by hydroJ
Loops and conditions, need some direction please
 
working on some error correction scheme. my code works when I try to find repeating 3's (2) times. But I need to be able to find the patterns for any numbe...
[no replies]
what is #ifndef?
 
What does the #ifndef mean and the # define ? not sure really what that is #ifndef DATA_H #define DATA_H #include <iostream> using namespace std; class ...
[4 replies] Last: #pragma once is compiler specific (by Nisheeth)
Comparison of two waveforms of audio files
 
Hi, I am a VC++ developer and currently need help in comparing two audio files. Lets say I have two wave files and one of it is created using the other with so...
[no replies]
counting unique elements of a sentence
 
I need to use a template function to count the unique elements in an array. I just cannot figure it out. I was able to get the first two output right but not th...
[2 replies] Last: 1) make a copy of the array 2)compare each element of the original arr... (by buffbill)
by bob991
program for unit conversion! need help immediately
 
hey everyone, please help me with this. thank you Write a unit conversion program using the conversion factors of the table shown below. Ask the users fr...
[1 reply] : We're not going to do the assignment for you. If a part is giving you... (by Disch)
Equation...
 
I'm working on a problem that needs me to write a program that will compute this: 1.0/n + 2.0/(n-1) + 3.0/(n-2) + .... + (n-1)/2 + n/1 n is a positive integ...
[1 reply] : For example: (n={user input} ; r={what you need to calculate}) n=1 ; ... (by helios)
can you guys walk me through what this code is doing
 
I know this is a class that is defining a list data type. the part that confuses me alot is this part const list& operator=(const list& aList); and ...
[1 reply] : The class overloads operator=. See operator overloading. and also th... (by Athar)
Pointer question...
 
This is a ridiculously simple function that I just can not seem to get to work. I am getting a segmentation fault error for this every time I run it. // L...
[3 replies] Last: Initializing it has no affect on the outcome. Just doing int *larg... (by shacktar)
Can't delete nodes from a BST?
 
Hello all, I'm implementing a binary search tree from scratch to get a good feel for everything, and all of the functions work except for merge by copying...
[no replies]
by tmdm7
Simple while loop problem
 
Can someone please tell me what is wrong with this? It never breaks out of the while loop. Thanks cout<<sum<<" is the point!"<<endl; point = sum; ...
[2 replies] Last: I figured it out. I had to change || to &&. Stupid mistake. Thanks ... (by tmdm7)
Access Violation
 
This code gets an access violation when i compile it. When i debug it i get 0 errors but two warnings 1- 's' is assigned a value that is never used. 2- actu...
[10 replies] Last: That sounds like compiling, not debugging, to me. (by helios)
accessing folders and copying files .
 
So i have to write a program ... Specification: I have a folder names abc and inside that folder i have thousands of other folders inside each of those fo...
[3 replies] Last: well , i went the boost way , It still has a lot of errors #includ... (by megha s)
Int to binary conversion
 
Hi, I'm trying to write a function which takes a positive int and converts it into binary via repeatedly dividing by 2, storing the remainders in an array and ...
[3 replies] Last: It seems the problem was indeed with my code between 13 and 19. Thanks... (by tea addict)
Poll DB from script
 
Hi! Im trying to make a program that polls a mysqlDB every 5 minutes. the poll checks a scheduletable in the dB and exicutes a function if there was a "go...
[1 reply] : would sleep(300) do it? (by mik2718)
Need help ASAP on outputting a string from a function and accessing it in main!
 
In the code below, when I try to output out_phrase_char, I get a message that says "The Debugger has exited due to signal 10 (SIGBUS).The Debugger has exited du...
[3 replies] Last: Basically, I am trying to create a function that takes in a const char... (by davidrgarber)
October 2011 Pages: 1... 2122232425... 36
  Archived months: [sep2011] [nov2011]

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