
please wait
by seungyeon
how do i populate a vector with a for loop
|
using only these declartions and 1 for loop #include <iostream> #include <vector> using namespace std; int main() { const int NUM_GUESSES = 3; ... |
Mar 5, 2017 at 3:03am
[1 reply] : What would you like to populate the vector with? User guesses I guess?... (by joe864864)
|
by NabeelUsmani
overloaded operator
|
I want to ask if it is pre-increment overloading or post-increment overloading. Help me. RationalNumber operator ++() const; |
Mar 5, 2017 at 2:58am
[2 replies] Last: Thanks. (by NabeelUsmani)
|
by ghostk91
Whitespace causes another iteration of loop?
|
So, I am trying to request the user to input a string to the console. Then, I am trying to loop continuously (for now, anyways, until I debug this). However, wh... |
Mar 5, 2017 at 2:15am
[13 replies] Last: If you want to limit to 1000 characters (in fact, bytes, considering u... (by lazpeng)
|
by nicoleb
Why is my loop / if statement not working?
|
When the user inputs the month January or February, it will ignore the maxMinutes I set for those month & say the minutes cannot exceed 43200 which should only ... |
Mar 5, 2017 at 2:12am
[4 replies] Last: oh DUH. Thank you so much for pointing that out! (by nicoleb)
|
by Kourosh23
classes and 'this' keyword question
|
I have few questions. 1. What is this called? what would it do for the code ? I found these information: "in C++, the "this" keyword is a pointer to the cu... |
Mar 5, 2017 at 2:06am
[4 replies] Last: The this pointer #include <iostream> struct A { void foo() co... (by JLBorges)
|
by CToy1008
deck of cards
|
So im having trouble adding cards to a deck. im stuck on how to add the face and suits to one vector. In the end i have to print out a shuffled deck, but i ne... |
Mar 5, 2017 at 1:08am
[8 replies] Last: Can't thank you enough for helping me out. This program really was mes... (by CToy1008)
|
by dmo
at voidGame (line 106) I'm having difficulty
|
My task is to apply the technique of stepwise refinement to design an algorithm for the playGame() function, and play the guessing game. The code already works ... |
Mar 5, 2017 at 12:30am
[no replies]
|
by jman2690
How to turn grade average into a Letter grade.
|
Hello I am new to C++, and I need some help with my assignment. We are learning about arrays in my class. We have an assignment where we have to create a Grade ... |
Mar 4, 2017 at 11:25pm
[1 reply] : The problem is that get_grades is void function, so it doesn't return ... (by bokisof)
|
by xxvms
puzzle
|
Hi There I have question, while I was going trough one of the exercises assigned by my tutor I came across problem and solution (thank you google). Majorit... |
Mar 4, 2017 at 10:37pm
[5 replies] Last: I like to think that by making mistakes we are creating opportunities ... (by xxvms)
|
by LibLife
Coin Tossing in Ruby
|
Hello everyone, I am a newbie to Ruby and I am trying to write a coin tossing program. It should ask how many times the coin should be flipped and output th... |
Mar 4, 2017 at 10:04pm
[2 replies] Last: Thanks you. Yeah, I was just hoping to see if someone here is good at ... (by LibLife)
|
by tit0n
postfix to infix help
|
2 10 4 * 5 / + 9 3 - - or (cannont accept spaces) 2104*5/+93-- Is giving me: ((1+((0*4)/5))-(9-3)) Where am I going wrong? string Express... |
Mar 4, 2017 at 10:02pm
[no replies]
|
Output shows nan |
I have been trying to find a solution for this for hours and I can't find any. The output always shows nan when I calculate the averages. Does anyone know why t... |
Mar 4, 2017 at 8:29pm
[5 replies] Last: It worked thanks man! (by PiNOYPANDEMiK)
|
HW Problem - Where exactly is my output file from Code::Blocks |
Write your question here. I'm learning File I/O at the moment but having an issue reading from/writing to a file. My program compiles but says that it can't ... |
Mar 4, 2017 at 7:30pm
[3 replies] Last: Sorry, I didn't answer your question: on my Ms W7 machine Code::Blocks... (by Enoizat)
|
by tit0n
How can I make it so I dont need spaces to evaluate my postfix?
|
I don't want to have to include spaces when I cin my expression. Id like to just write 23+ not 2 3 + double Expression::evaluate(string myExpression){ ... |
Mar 4, 2017 at 7:01pm
[4 replies] Last: Thanks for the tips. And yes I was messing with doubles/ints it wasnt ... (by tit0n)
|
by tdog5555
can someone explain this code
|
what does this do exactly for (int i=0; i<5;i++) cout << shoes << endl; |
Mar 4, 2017 at 3:48pm
[2 replies] Last: thanks im new (by tdog5555)
|
by jamesfarrow
operator overloading question
|
Is it better to do the following see 1st and second codes snippetts. They both 'do' the same thing. //oervload stream input operator std::istream &operat... |
Mar 4, 2017 at 3:02pm
[1 reply] : local does not really do anything for you. Better... either way.. you... (by jonnin)
|
by gothnerd
Run-Time Check Failure #2 - Stack around the variable was corrupted.
|
Hi Guys Is there anyone around who is good with C++? I keep getting an error when trying to copy a char array to a char pointer e.g strncpy_s(buffer, siz... |
Mar 4, 2017 at 2:57pm
[3 replies] Last: If I were in the bunch of the good C++ programmers, I would try to giv... (by Enoizat)
|
Makefile to CMakeLists conversion not working |
Hi everyone, I have a problem and I'm not sure if this is the right way to ask about it. I'm working on a project whose CMakeLists file is cmake_minimum_... |
Mar 4, 2017 at 2:30pm
[no replies]
|
by andrewllewop
Read from file
|
I have a file saved in the csv format and I want to write a program that reads from that file. I want the program to read each character but when a comma is enc... |
Mar 4, 2017 at 2:27pm
[2 replies] Last: http://www.cplusplus.com/reference/istream/istream/peek/ (by gunnerfunner)
|
by Mediumgrit
need a bit of help
|
please look at the code # include <iostream> # include <string> using namespace std; class PERSONNEL { public: PERSONNEL() { NAME; ... |
Mar 4, 2017 at 1:27pm
[3 replies] Last: Lines 12,44: These lines are unnecessary. Both NAME and MAJOR are st... (by AbstractionAnon)
|