
please wait
issues with getline and EOF |
ok my program gives you the option to enter data manually or by file. my problem is I cannot figure out how to read from a file and take the data it gets from ... |
Apr 25, 2013 at 1:00pm
[1 reply] : fin >> playerFirstName >> playerLastName >> myPlayers.home_runs >> ... (by SamuelAdams)
|
by cyberdude
cerr
|
HI GUYS I has been reading a c++ program reference Manuel.It told something about cerr something related to cout and cin (I think).Is there really someth... |
Apr 25, 2013 at 11:08am
[2 replies] Last: ... (by MiiNiPaa)
|
by mekkatorqu
[win32api] Save BITMAP to file
|
I have this code to capture whole screen as bitmap, how do I save it to file? I've been trying to find solution for over a hour, can't find anything working v... |
Apr 25, 2013 at 11:02am
[4 replies] Last: mfc is not far from plain api. In the OnSave() the mfc stuff is not... (by coder777)
|
by Cherrykhan
progam to find the dividend
|
program is not working i'm newbie in this language please help me #include <cstdlib> #include <iostream> using namespace std; void compute_dividend() { ... |
Apr 25, 2013 at 10:06am
[2 replies] Last: it helps thnx (by Cherrykhan)
|
by ccwhat
explicit specialization
|
error C2912: explicit specialization; 'void bdi<box>(box &,box &)' is not a specialization of a function template. template <typename T> T bdi(T a, T ... |
Apr 25, 2013 at 8:49am
[6 replies] Last: ok, i'll check it later, dinner time :) (by ccwhat)
|
by Groups
Taking input from a file and storing it in a vector
|
Hi all! I'm working on a project for my C++ class that is essentially a calendar. One of the features of this calendar is to read user "appointment" files from ... |
Apr 25, 2013 at 8:37am
[1 reply] : a) Your overloaded operator is wrong b) Your overloaded operator isn't... (by MiiNiPaa)
|
by TECKSPEED
How to get code to loop back to the beginning?
|
I have my code completely working but cant get it to loop back to the very begining. I need it to say "Enter the number of books in the sale" instead it says "... |
Apr 25, 2013 at 7:50am
[8 replies] Last: I expect responsibility from the people who ask for help, i suppose th... (by eyenrique)
|
Difference between short age; and short int age;? age is variable. |
What's the difference beteween these three statements? int age; short int age; short age; |
Apr 25, 2013 at 7:16am
[7 replies] Last: Thanks backslashx00 and Zaita. (by Rehan FASTian)
|
by cmiller9732
quadratic formula via the non-void function
|
Your main function should acquire the values for a, b, and c and report the results of the function call ....where have I went wrong please help! thanks |
Apr 25, 2013 at 6:53am
[11 replies] Last: if( b*b-4*a*c > 0) { valid = false; } else { r1=(-b + sqrt ... (by Daleth)
|
by haykography
A few problems with a simple program.
|
... |
Apr 25, 2013 at 6:45am
[2 replies] Last: ... (by haykography)
|
by giblit
Template problem
|
Okay so what exactly am I doing wrong here? //inside class template<class T> const double power(double, T); //outside class template<> const double math::p... |
Apr 25, 2013 at 6:23am
[2 replies] Last: still new to c++ I had no idea you could overload functions like that ... (by giblit)
|
by ryanz
Function Overloading & Array Problem
|
Hi guys, I'm fairly new to C++ (Just started a couple weeks ago) and I've run into much trouble with this question involving function overloading and arrays. I'... |
Apr 25, 2013 at 6:01am
[10 replies] Last: Got it!!! Thank you sir you have been great help to me tonight! I appr... (by ryanz)
|
by Cluterbug
help with using datafiles in arrays (1,2)
|
I am so confused on how I am supposed to write this program. The datafile "scores.dat" contains 1000 individual student scores (integers in the range of 0 to 10... |
Apr 25, 2013 at 5:48am
[33 replies] Last: Congratulation. You did what everyone expect of you: stop asking to do... (by MiiNiPaa)
|
by Cluterbug
Array() function help
|
The program I am trying to write but am very confused on how to do needs to generate 10000 random numbers between 1 and 5000 and produce some statistics on them... |
Apr 25, 2013 at 5:34am
[7 replies] Last: using namespace std; is a bad practice in C++ If you want to continu... (by MiiNiPaa)
|
by DanStirletz
Opening a file... yes i know..
|
Worn topic but still. My program complies without error, but when I run it, my check statement returns the message that the file cannot be opened. This file ... |
Apr 25, 2013 at 5:29am
[6 replies] Last: From Zhuge: Especially in cases where you are using an IDE, it can be... (by Alrededor)
|
why is my output data wrong? |
my program should output the following data: Tom Jones has 3 home runs and 5 hits. Tommy Lee has 4 home runs and 9 hits. instead I am getting has ... |
Apr 25, 2013 at 5:09am
[1 reply] : This code is incorrect, you declare a playerStates object named tempSt... (by Yanson)
|
by caliguy010
Arrays
|
Ok I'm stuck. I'm suppose to make a program using arrays. I've finished half the program, however, at the end I'm suppose to calculate the average, variance, an... |
Apr 25, 2013 at 4:47am
[1 reply] : cld u give the full code (by cyberdude)
|
by cmiller9732
help!!
|
need some help this is my program so far and below is the what it is suppost to do. thanks for any help!! Write a program that declares, defines, and call... |
Apr 25, 2013 at 4:14am
[10 replies] Last: Thanks! (by cmiller9732)
|
by Cluterbug
Void Functions
|
I need help writing a program that asks the user for an integer, then should call a void function, passing that integer to it, and producing a box using the int... |
Apr 25, 2013 at 3:48am
[7 replies] Last: Very nice! looks good another way to do it would be to just print it r... (by closed account 3qX21hU5)
|
by Cluterbug
Vector help
|
This program that I am confused on is supposed to use a vector of integers to keep up with rolls of a five dice. It should roll the five dice and store the sum ... |
Apr 25, 2013 at 3:33am
[2 replies] Last: I got it. #include <iostream> #include <vector> #include <stdlib.... (by Cluterbug)
|