General C++ Programming - May 2012 (Page 14)

c2144 c2162 errors, please help
 
#pragma once #ifndef CHECKING_H #define CHECKING_H #include "account.h" #include "customer.h" class Checking : public Account { public: bool overdr...
[2 replies] Last: While it's fairly obvious why you're getting an error there, you shoul... (by cire)
Overloading. PLEASE HELP!!!!
 
Why do I get this error? Line 12: 'Contact::Contact(std::string)' and 'Contact::Contact(std::string)' cannot be overloaded. #include <string> #include <ve...
[9 replies] Last: So, how could I now create a Contact with these tokens? (by Stephanie)
Beginner looking to advance!
 
Here is a little bit of my convoluted history with programming. I started C++ programming some years ago at a local community college. Since then, I moved o...
[11 replies] Last: Thanks a lot, and sorry for my rude ways. I guess Im under a lot of p... (by genta)
Inheritance + Polymorphism
 
To start off, I thank everyone in advance who tries to help me. I have not been understanding the whole concept of polymorphism and inheritance well. Or ra...
[4 replies] Last: Customer isn't derived from account. However, a customer holding an ac... (by hanst99)
by kbiyer
problem in Insertion_Sort
 
I copied this progrm from "Jumpin into C++" by Alex Allain.However when icopied the whole and ran the progrm an error is coming- undefined refrence to -findSmal...
[4 replies] Last: Nice illustration of a book that teaches C while pretending it has som... (by Cubbi)
Problems with default constuctor
 
I wrote this code for my class, but I cannot get the second class to call the default constructor. Please help and any assistance would greatly be appreciated....
[2 replies] Last: You are so helpful. Thank you so much. It was so simple but I could ... (by garyfri)
I have a problem to solve a problem
 
The main idea: I have to creat an abstract class named Triangle using virtual functions for calculating the area and the perimeter of the triangle.Also the mai...
[9 replies] Last: write it for me please (by Basota1992)
error on non existing line
 
Hi, This post is in addition to my other one about a bug. I am getting an error that is supposedly on line 30 of ui.h. However I only have 18 lines in that ...
[6 replies] Last: This doesn't sound right? Are you sure you are compiling the correct f... (by Peter87)
Function behaving very strangely
 
I have tried to build a function to determine which directions the player may travel in (in a console-based game, using an integer array as a map with the map r...
[1 reply] : Your program doesn't assign a default value to a new variable unless i... (by BlackSheep)
OpenSSL linking?
 
Hello people, I decited to open a topic since I coudn't get help from Google. Well, I'm really new to OpenSSL and don't know much about it. I try to down...
[15 replies] Last: And what about the Windows-functions? I think I should use them. (by Kmitska)
Strange OpenGL problem
 
Hello, I've recently started learning OpenGL in a bid to start working on 3D games, but I'm having a slight problem with loading in a .obj mesh. I am loading...
[3 replies] Last: At first I thought it was to do with the viewing volume, but it seems ... (by ribenaman)
need help with nested switch
 
i have a problem with a nested switch. Copy and paste into c++ and see what i mean, questions need to be over 20 though so you can see when things go wrong. ...
[13 replies] Last: Nice! I have a Java book around here, however I haven't found the time... (by closed account 3TXyhbRD)
How to check if file exisits
 
How do I check if a file already exists using C++??? Plz send me the codez.
[4 replies] Last: The boost library has a function for that, boost::filesystem::exists()... (by Cubbi)
Class has no member named function
 
Hi guys, This error is really annoying me but its late and i've been programming all day so I might be missing something stupid. I keep getting an error sayin...
[11 replies] Last: btree.h line 13. I don't think that's the issue, however there is a ; ... (by closed account 3TXyhbRD)
assignment help
 
Poly-T sequences: Appropriate for looping and logical operators. Count the number of occurrences of sequences of N (acquired through user inpu...
[1 reply] : Hey, Firstly, use code tags and don't forget to indent (if it doesn't... (by closed account 3TXyhbRD)
Remove node from singly linked list
 
Hi, for my remove node, I return boolean. I assume I need to use pointers to pointers since there is potential to update original pointer in the form of prev, b...
[15 replies] Last: Typo, the argument front should be a pointer to a pointer. Thanks for ... (by closed account 4ET0pfjN)
Ordered singly linked list insert
 
My ordered_insert function crashes when I try to run it, I need help with the pointers but I'm pretty sure the logic is right. It compiles, but crashes when I r...
[6 replies] Last: I've fixed up my code and it works like a charm. I'll take a look at y... (by closed account 4ET0pfjN)
Error complaining about redeclaration of parameter
 
Hello, I am receiving a strange error, declaration of 'class_friendOverload setClass' shadows a pararmeter in this member function definition: cl...
[6 replies] Last: Yes. class_friendOverload(setClass); an temporary unnamed object is... (by vlad from moscow)
formatting Calendar correctly
 
Hello, I'm a beginner so im having some difficulty formatting my calendar. My problem is that I can't make the day that the user enters for the first day Januar...
[2 replies] Last: Thank you so much JFBorges!! it works Perfectly!! I appreciate your he... (by roxychick8)
Asterisk design
 
I want to create an asterisk form like this * ** *** **** ***** and so on .. I have done a code that looks like this #include <iostream> using nam...
[2 replies] Last: Oh , thanks :D Now i have done it succesfully.. #include <iostream>... (by floryn97)
May 2012 Pages: 1... 1213141516... 41
  Archived months: [apr2012] [jun2012]

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