General C++ Programming - October 2009 (Page 7)

Compilation errors for Binary Heap
 
Hi all! I have been trying to debug these syntax errors for hours now and cannot find the problem. Hopefully a fresh set of eyes can see where I am going wrong....
[4 replies] Last: Well you can create the BinaryMinHeap::Job object directly (or typedef... (by TaikoDragon)
by Towely
Triangle of Digits
 
I'm attempting to create a computer program that prints a triangle of digits, as well as a "ruler" that measures the user specified width of the screen, showing...
[2 replies] Last: It works perfectly now! Thank you very much for the help. (by Towely)
by sporx
using a header template
 
hi, i need to input a certian amount of data, and then put it in order so that i can find the median. to do this, ive been given this header template that i nee...
[7 replies] Last: stupid mistake on my part. i figured it out. now i just have to take t... (by sporx)
by mar11
repeat an block code
 
Hi all, if i have the following code: if(condetion){ assignment 0; blockcode; } els if(condetion){ assignment 1; blockcode; } else if(condeti...
[4 replies] Last: I agree; functions and a switch statement are definitely the way to go... (by chrisname)
by cresus
Code crashing on vector.clear()
 
Hi all, I've built an executable that I've had working but someone at work went to use it and it crashed on them. I checked what they were using it for and it ...
[11 replies] Last: That time it looks like it was just a really stupid mistake. I think ... (by cresus)
by JRevor
Virtual methods seem not to work!
 
I have 5 classes. A father class, which would be Cell. It has a virtual method, called char symbol(void), which returns the char 'X'. It has four son classes : ...
[6 replies] Last: Yeah, it works. Thanks DavyB and player6 for testing it out!!, and B... (by JRevor)
by wewep
How to seperate frame for stop and wait C program?
 
I know how to write the code for the transmission of a file from Tx to Rx. But I don't know how to seperate the frame (information characters = 25 per frame) a...
[no replies]
The output seems to be confusing please clarify
 
I am new to this forum, Please refer to the c++ program and the output below. I understand the program but I have a small doubt regarding the output of the ...
[1 reply] : Well, you are accessing beyond the end of the arrays. while( i++... (by jsmith)
Segmentation fault
 
I am trying to create an artificially intelligent tic-tac-toe program. I am using the MENACE(Machine Educational Noughts And Crosses Engine) algorithm to create...
[2 replies] Last: If your intention is that we debug your code and find where the core d... (by DavyB)
C++ advanced literature pls?
 
Hi all, I'm currently doing my final year dissertation, being on wireless transmission in a client-server model. Can anyone suggest any dense literature about ...
[4 replies] Last: Thanks for the help turbozedd! (by lawsmlt)
opencv + counting frames
 
Here is the code I got from Internet #include "/usr/local/include/opencv/cv.h" #include "/usr/local/include/opencv/cvaux.h" #include "/usr/local/include/o...
[2 replies] Last: thanks for your reply and I did changes what you have suggested in ear... (by srinivas2828)
Issue with Templates and inheritance
 
I have an interface (i.e base class) like this: template <typename A, typename B> class IBase { public: struct MyStruct { uint32_t var1; B v...
[5 replies] Last: And don't forget to make ~IBase() virtual. (by kbw)
by Roro
How I can read picture from hard disk and Editing color by c++
 
I Have Question about c++ How I can read picture from hard disk and Editing color and save it in Hard disk By c++ ?? if u have any sites can it help me...
[no replies]
Looking for a X-Platform library for Systemcalls
 
Hi there. Easy said: I am looking for a library similar to wxWidgets but without the GUI-Stuff. In fact I need especially the system-stuff like getting hom...
[4 replies] Last: That works on Linux but not on Windows. Just tried it... and you don't... (by Scorcher24)
Generics in C -- Argh
 
Hey all. As usual, my question isn't a simple "malloc kilz prg w/segfault". I needed a generic list type in C, so I hacked up a simple library that does that...
[16 replies] Last: 1. "Duoas" is short, and easily readable and pronounceable, version of... (by Duthomhas)
by alias
Add 5 using count in for loop
 
I was wondering how I could count in increments of 5 in a for loop using the count++ code. Thanks.
[2 replies] Last: figured it out right after I posted the topic. thanks. (by alias)
Binary Problems
 
Hello people...I'm having problems getting this program to run...Can anybody help me please...Thank You #include "Distance.h" int main() { Distan...
[8 replies] Last: http://cplusplus.com/doc/tutorial/classes2/ Overload the = operator (by demosthenes2k8)
Why isn't delete needed for the c_str() member function of the string class?
 
The c_str() function returns a pointer to a c style string of the string object but how does it work such that delete isn't needed?
[6 replies] Last: ok thanks for clearing it all up :) (by unregistered)
Infix to Postfix calculator, having a little trouble...
 
Hi all, for a class assignment we are to create a class (infixToPostfix) that will handle functions to store the infix, show the infix, convert the infix to pos...
[4 replies] Last: You know what, I have no idea what I was thinking, but my function wor... (by ADizzle491)
by ward
what is the prblem in this code????
 
hi for every one this is my Q and after it you will see my code (i know that its simple but i want to know more so please help me my Q : rite a d...
[3 replies] Last: #include<iostream> class geomtry { private: int ... (by ward)
October 2009 Pages: 1... 56789... 17
  Archived months: [sep2009] [nov2009]

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