General C++ Programming - August 2008 (Page 5)

calculate paths in grid using recursion
 
I am trying to write a recursive function (in C++) to count the number of north-east paths from one point to another in a rectangular grid. The user enters co...
[4 replies] Last: Thank you so much programs working fine now =) (by jmcmast3)
How do you define a new operator?
 
I was going through the documents on how to define something, but it appears that it only takes arguments in the form of a function call. e.g. #define func(a...
[18 replies] Last: Some people implement special preprocessors. You could use the m4 pr... (by Duthomhas)
by nitins
how to create a object of child class in parent class
 
Hi , i am facing a problem , i want to create a object of child class in parent class , as java allows ...what is the way to implement the same is c++ ? Ja...
[5 replies] Last: thats just bad design, never should a base class depend on it´s depen... (by GerdHirsch)
by verone
ive been asked to write,read,and update&search records on datatype.
 
#include<iostream.h> #include<conio.h> #include<stdlib.h> #include<stdio.h> #include<string.h> //***Record structure declaration*** struct Details { cha...
[2 replies] Last: i had to initialize add_record,delete_record,modify_records.it is a di... (by verone)
Displaying videos
 
Hi Currently i am desiging a video editing suite. I have designed the GUI using wxWidgets and have successfully decoded the video using FFMPEG. I want the vide...
[2 replies] Last: I relize that playing HD is very hard and i know i will not be able to... (by closed account z605fSEw)
pipe()/fork()/execl() functions do not return output of external program
 
Hello, I am writing a program which calls an external program and obtains its output(standard output). I implemented this functionality as a method. When I ca...
[no replies]
changing values for one class and showing it ..!
 
hi all, this is a pure c++ class problem , i am not good with pointers and it seems somehow pointers should be used,...pls see the problem below.. i have ...
[2 replies] Last: hi.. thanks for the reply ,i am basically using qt ,if you want to lo... (by salmanmanekia)
Simple add, search, display functions
 
hi guys. im working on a project which includes adding , searching and display functions. i got all codes of these functions but the problem is i cant merge...
[3 replies] Last: Makoy, all you have to do is remove the unneeded calls for libraries a... (by Dudester)
link list
 
i am working on this program for a while and i am having trouble using multiple pieces of information in the linked list. i need to be able to input multiple d...
[10 replies] Last: Don't worry be happy!!, you have written most of the code but need som... (by anilpanicker)
by Nobun
Doubt about function overloading (C++)
 
I have a problem while creating a "string" module (I'm creating some personal string functions). In this moment I try to create an overloaded function called...
[12 replies] Last: string.h is a C header file that defines C's string manipulation funct... (by jsmith)
couple of questions regarding classes
 
I had a couple of different questions. First off.. when making a class, a class consists of member functions that provide the interface to the rest of the progr...
[13 replies] Last: hey.. I resent t hat.. my browser is not stupid.. it's Intellectually... (by Aakanaar)
insert string array elements in a tree
 
Hi Guys, I am creating one tree. i am having one string array char * arr = {"a", "a/b", "a/c", "a/d","a/b/e","a/b/f","a/b/g","a/c/h","a/c/i", "a/c/h/j",a...
[3 replies] Last: Probably not. The purpose of schooling is to learn to take a thought a... (by Duthomhas)
DLL Injector Authorization? (Reading SQL)
 
Hey, I have coded a DLL that is designed as a cheat system for an MMORPG. I am selling this cheat, and just realized that my work is being stolen and put on oth...
[no replies]
Same piece of C code behaving differently...
 
Hi, Here is two pieces of C code both behaves differently, could someone explain me the reason please. 1. Loops only once and exits. int x =0; int i...
[1 reply] : Neither printf() nor any other function will, as a side-effect, reset ... (by jsmith)
C++ STL vector of pointers
 
I have been set an assignment which is write a program for a savings scheme. I have quite alot of it so far but I am stuglling of a certian part of my program. ...
[5 replies] Last: Thanks for the code, but the format in which the data is stored for a ... (by davidleeis14)
Database question
 
I am rather new to programming but I understand enough C++ to do a lot. Unfortunately several of the programs I am currently writing need databases as a referen...
[5 replies] Last: I'll look again soon and see if I can find something. (by Dudester)
visual studio math.h inconsistencies?
 
Why is sin(pi) not exactly 0? I have written a text parsing calculator for Windows which interprets command lines similar to how a TI-85 can. When I print ans...
[2 replies] Last: Thanks. Yeah I just checked it out in GCC and got the same thing. I ... (by hisdudeness)
What to do if I want it to descending instead of ascending
 
This is my code for ascending order, but i want to change it to descending. Can anyone give me a hint to execute this problem. #include <iostream> using na...
[3 replies] Last: Thank you. (by horrormarko138)
Have problem with constructor.
 
Hi everybody. Please explain me why second constructor (Map(char * key, double val)) doesn't works. If you can please correct it. class Map { private:...
[2 replies] Last: Duplicate thread. Question answered here: http://www.cplusplus.com/fo... (by helios)
Clear() function in Binary Tree
 
Hi everybody, help me to finish my programm. It's all works, except one function. This function is clear(); This function must fully clear binary tree. And ...
[3 replies] Last: Call insert() from inside the constructor with the same parameters. Yo... (by helios)
August 2008 Pages: 1... 34567... 9
  Archived months: [jul2008] [sep2008]

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