Beginners - July 2011

Array/Function cout issue
 
Hello there. My issue seems to be that my cout command is displaying all the work instead of just the final answer. At the end of the Code the cout (the last fo...
[2 replies] Last: Thanks for a quick response. I really appreciate the help. (by krakkens)
output problem !
 
so i have this program that reads in 6 scores from a text file, and prints out the average of the 6 scores and the squared average of it, using a function void ...
[1 reply] : This function prototype void stat ( float , float& , float& ); does ... (by shacktar)
Abstract Base Class - Can't use derived functions cause compiler can't find member function in base class
 
Hi folks, I'm learning about Abstract base classes. I have a base, Shape, and derived, Triangle, Rectangle and Circle. I'm trying to set the float base in Tr...
[9 replies] Last: Just had a look at your pastebin page... You need to move your memb... (by andywestken)
Altering Console Display
 
Where can I get literature on changing the way the windows console displays its information? What if I want to clear the screen at certain inputs. Also, my ...
[8 replies] Last: Linux console works separately from the gui part of it (kde, gnome, et... (by eidge)
read digits from file and store them as separate integers
 
Hi, i have been trying to figure out how do i read some digits from a file and store them as separate numbers in an array, so far i can read it as one integer a...
[11 replies] Last: ou yess :) somehow didn't really consider that :) const int n_max =... (by KrixisLV)
RPN calculator
 
I'm making this RPN calculator in c++, but I'm having some trouble on the input section. I need the user to be able to input a double OR an operator, and the pr...
[3 replies] Last: Well theres an easy fix for that, try something out, bang your head ag... (by eidge)
Chars and if-else
 
Hi all! I just began programming in C and C++ and ran into a problem while making a program. #include <iostream> #include <string> using namespace std; ...
[5 replies] Last: I suppose you're using goto for the sake of experimenting. goto is not... (by eidge)
A structure question.
 
I am new to C++ and am having a hard time understanding How to pass information from a structure into a function. //Inside Sorted.h file struct Sorted { i...
[3 replies] Last: your algorithm is not correct void ins-sort() { int i,j, x; for (... (by ahura24)
by kassik
binary shift
 
Hi there I am going to write a binary code. I don't know how to use binary shift. my code looks like this : #include<iostream> using namespace std; int main...
[7 replies] Last: Dear Athar <...> What Athar meant was that you don't say what you wan... (by hamsterman)
by barda4
Getting garbage from vector output
 
Hi, So I'm having a problem getting information from a vector I've created. The vector is composed of a class I've called "person". When I try to get the ...
[2 replies] Last: Thank you soo much! It works perfectly now! (by barda4)
Function calling issue
 
Hello I'm new to C++ and was hoping to find some advice/tutoring with an issue I'm having. This is a homework code however I'm really just looking for help to u...
[6 replies] Last: great thanks for all the help! (by krakkens)
by Konig
Hangman game, almost there!
 
For some reason I am having issues printing off the letters correctly when guessed. Anyone help please? #include<iostream> #include<fstream> #include<st...
[3 replies] Last: I suggest you... 1. modify your load loop so it counts the actual n... (by andywestken)
says string does not name type
 
#include <iostream> #include <string> #include <fstream> using namespace std; int main() { system ("color 2"); ofstream theFile("Orde...
[2 replies] Last: wow....i am really stupid. i forgot all about the semicolons. but i ad... (by lupicantor)
by heenan
Need Help with programming getting an error dont know what to do
 
I am trying to get this program to work what it is supposed to do is PRINTING CONTENTS OF ARRAY and adding x to every other element A x C x E x G x I x K x M...
[2 replies] Last: You're attempting to assign a character to an array of characters, the... (by Warnis)
Pushing onto a Queue
 
Having a little trouble pushing a new entry onto a queue. (note this is a double-ended queue, so I can push/pop from either end). int main() { //ins...
[7 replies] Last: yes , you are right . i just look at template <class Item> void Dequ... (by ahura24)
by ploglo
Unknown Integer Problem
 
I very recently started coding with c++(earlier today). I have coded a good bit with Python, but felt that c++ would open more doors for me. I spent a few hours...
[10 replies] Last: Happykiller, it would be more efficient to write if else statements in... (by Maese909)
Hi i am a beginner in c++ and just start learning array, i am not able to output the average any idea why ???
 
Hi i am a beginner in c++ and just start learning array, i am not able to output the average any idea why ??? #include<iostream> using namespace std; int m...
[3 replies] Last: Sorry, but is that a serious question? Ans: you count them! Sort... (by andywestken)
Program Won't Print To Output File?
 
Basically, I can't get the average GPAs for either male or female to output to a txt file. I've been tinkering with this thing for hours but to no avail. I know...
[6 replies] Last: Other than that (a few small changes) your program runs: Total Sum ... (by andywestken)
Inheritance
 
I have my code almost all done, and I get no errors, but I can't get my Timezone to print when I call it. Can anyone point me in the right direction, what am I...
[10 replies] Last: Thank you for all of the information- it really helps. (by shiyongseng)
by eidge
VB 2010 PRO Dbg doen't tell which line produces the error.
 
I've changed this week from C::B to VS2010 Pro. When an exception that wasn't handled is thrown the debugger spitts out an error, like "Debug Assertion Faile...
[4 replies] Last: A new bar popped up with Process, Thread and Stack Frame. Problem sol... (by eidge)
July 2011 Pages: 123... 54
  Archived months: [jun2011] [aug2011]

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