Beginners - August 2014 (Page 28)

by mehak
destructor
 
why is the destructor not called in the following program? #include<iostream.h> class IndiaBix { int x; public: IndiaBix(short ss) ...
[2 replies] Last: Heap allocated pointers don't call the destructor when they go out of ... (by TheToaster)
Classes in Separate Files
 
A total beginner here, I need help with classes in separate files. I'll simplify my code here, so that you don't have to scour through the lines to find ...
[5 replies] Last: Ahh, whoops sorry. I will fix it :) EDIT: Also, you should look up B... (by TheToaster)
by Zach S
Polyval and polyder C++ equivalencies
 
I have only been using C++ for several weeks and I am trying to write a program that will use the polyval (evaluate a polynomial at a given value) and polyder (...
[6 replies] Last: You have: int n; cout << "Enter polynomial order: "; cin ... (by keskiverto)
Rock-­paper-­scissors C++
 
How I can change input from R,P,S to Rock, Paper, Scissors #include <iostream> using namespace std; int main() { int game; char player1, ...
[4 replies] Last: @Mineanthat If you would still like to use the switch statement, you ... (by whitenite1)
seekg not working in binary mode
 
hey all, below is a snippet of my code in which it loops through a file trying to find the matching record of a selection given by the user. I used seekg() to ...
[6 replies] Last: Maybe I'm missing something, but what you're trying to do doesn't quit... (by Chervil)
by Putler
Why is this expression undefined?
 
Hello, I've been reading C++ Primer for some time now. Every time I encounter a problem I manage to solve it myself. This time I don't. This book claims that...
[5 replies] Last: It isn't "some reasons". cout << i; cout << " "; cout << ++i; ... (by Duthomhas)
Infinity loop when variables are entered as non-numeric.
 
I am a beginner of C++. I am writing an area-calculating programme; I find that if the input of the float is non-numeric, the program will go on forever loop...
[3 replies] Last: Once you enter an alpha character for length, the badbit will be set o... (by dhayden)
climate temperature
 
how to display max min mean... together, cause i tried to find the solution this file my menu.c #include<stdio.h> #include<conio.h> extern int Jan13Max,...
[5 replies] Last: main.cpp line 18: main must return an int. data.cpp: You're tryin... (by AbstractionAnon)
Functions
 
What is the difference between a function and a variable? they both hold info. and how a function may be used differently than a variable?
[7 replies] Last: Functions don't contain anything, they just allow us to refer to a set... (by IWishIKnew)
strcmp problem (1,2)
 
i am trying to make a phonebook i was able to add a few contacts using an add function.i also included a search function to search for contacts here is the fu...
[30 replies] Last: thank you so much chervil...the program cant get any better than this ... (by SEBYJOSEPH)
by fluppe
looking for sort of timer object
 
Hello, i have quite a general question: I am looking for a "timer object" to use in a C++ application. Is there an OpenSource Version available ? That would be...
[4 replies] Last: Hello, ... i was out on a weekend and didn't read that 'til now well,... (by fluppe)
Need help getting data from my database
 
Hey all I was working on my first database project and I came across a problem when I wanted to get information from it here is the code #include <iostrea...
[3 replies] Last: Line 60: //while ( fname >> lname >> idnumber ){ while ( myfile >> ... (by JLBorges)
by jlken
Undefined reference in array
 
I'm getting undefined references error to my printArray function in my main function (printArray (a, MAX)). Any idea's what's wrong? I went over it a similar ex...
[2 replies] Last: D'oh. Thank missed me for some reason. Thanks! (by jlken)
by SVcpp
Help with code
 
Hello C++ community. I'm currently trying to complete an assignment that has me creating my own functions. I'M NOT ALLOWED TO USE ANY FUNCTIONS AT ALL AND T...
[1 reply] : if(lower >= 'a' && lower <= 'z') { upper = ('A' + lower - 'a'); } el... (by Avilius)
Super Simple Program
 
So I have some of the basics down now and I just am a little stuck. So right now I have it so it prompts the user for there score, then user then enters a rando...
[2 replies] Last: Thank you! Print isn't used in c++ I don't think so I just switched th... (by wahlysadventures)
Call different functions for different values of an integer
 
I want to call different functions depending on the value of an integer without having a huge if...then tree. I don't really have any code yet because I'm at a...
[4 replies] Last: You can have an array of function pointers which you can then use to c... (by AbstractionAnon)
by a1tn
Accessing member variables which are classes
 
Hello, world. I have a question about accessing member variables which are C++ structs that contain other C++ structs. In order to keep encapsulation, I need ...
[6 replies] Last: I guess that is where I misinterpreted, it said that if the variable i... (by a1tn)
by parri
newb questions
 
Hi everyone I am new to the forum and completely new to programming. i started to learn C++ today with no previous experience in coding at all (apart from...
[3 replies] Last: thank you for the quick replies! @wildblue the book is "Teach Yourse... (by parri)
Need help with classes
 
Hi, I don't know how to properly access different classes within the program. Can someone look at my program and tell me what I'm doing wrong? I'm getting a bu...
[1 reply] : double Hourly::getHours(){ return hours; } void Hourly::setHours(do... (by pals123)
help!!!
 
the program runs without errors but after entering string n choice dere is no output and do u want to cont ques is asked #include<iostream.h> #include<stdio...
[5 replies] Last: Oh, I saw the conio header and thought it was Windows, but I never use... (by BHX)
August 2014 Pages: 1... 2627282930... 40
  Archived months: [jul2014] [sep2014]

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