
please wait
by Outlaw782
Should I use getters and setters, or just use a constructor?
|
In the code below, I have a (set of) getters and a (set of) setters. Above my getters and setters I have a constructor that does (from my understanding) the exa... |
Jul 13, 2015 at 11:59pm
[1 reply] : Constructors are used so that an object is (in most cases) in a usable... (by Ganado)
|
by nanor00
Doesn't read cin inside while loop
|
How can I make it so that the user enters the name for each sibling? right now it just displays: How many brothers and sisters do you have?4 A big family! W... |
Jul 13, 2015 at 11:57pm
[3 replies] Last: Changing it into a string worked, thanks!!! (by nanor00)
|
by cnj3
Print a string in reverse order using cout
|
I am stuck on one part of an assignment. Among other things, we have to get a character string of random length from a user and then reverse and output that str... |
Jul 13, 2015 at 11:53pm
[4 replies] Last: Yes! I got it! I was making it way too complicated. Thank you both so... (by cnj3)
|
by mchillington
C2. Functions with variable number of arguments
|
Write a function write with variable number of arguments that takes a string first argument followed by any number of arguments of type double and prints on th... |
Jul 13, 2015 at 11:00pm
[no replies]
|
by HellfireXP
Text Parsing Error
|
The code below is giving me problems. What am I doing wrong and how do I fix it? #include <iostream> #include <string> #include <vector> /* Parse a strin... |
Jul 13, 2015 at 10:44pm
[1 reply] : The second parameter to substr: http://www.cplusplus.com/reference/str... (by keskiverto)
|
by holy9ner
Animate issue
|
Do any of you know where to put system("cls") in my code so that the system doesn't keep printing another board, and I just keep the same board. Thanks. ... |
Jul 13, 2015 at 10:29pm
[no replies]
|
by keanedawg
Why can a char * be assigned to a string?
|
Sorry for the poor wording. This would make more sense. char * Greeting = "Hello World!"; // This works You normally cannot assign values to pointers.... |
Jul 13, 2015 at 9:32pm
[6 replies] Last: Okay, fixed. It'll still cause abnormal termination, and shouldn't be ... (by Duthomhas)
|
Char to ASCII value program |
Why does not the following program work? What am I doing wrong here. Can someone please help me out? // you can use includes, for example: #include <algorithm... |
Jul 13, 2015 at 8:47pm
[3 replies] Last: I think I figured it out. I should have done if(48<=letter && letter<... (by funprogrammer)
|
by Deanmar
input user his/her grade
|
Im a newbie to this .. im having a hard time to solve whats the problem, #include <iostream> #include <string> using namespace std; int main () { ... |
Jul 13, 2015 at 8:37pm
[1 reply] : What you probably want is to make display an array. Also, never tes... (by kbw)
|
by holy9ner
Animation and Warning not error for value return question
|
I know its long, but I wanted you to see where the functions are being called and how. I get a warning that says not all control paths return a value for check ... |
Jul 13, 2015 at 8:17pm
[5 replies] Last: What I mean by that is, I want all the moves to continue to be shown, ... (by holy9ner)
|
by Outlaw782
Does this program look effective?
|
I am trying to develop an Address Book program, and I am wanting to do it the correct way. I feel most things are correct. I am using getters and setters here, ... |
Jul 13, 2015 at 7:54pm
[5 replies] Last: Rep around here is gained and lost through arguments in the Lounge. Do... (by booradley60)
|
by kmimken
Searching for a string
|
If I want to read in a file and search each line for a certain string and then output every line that contains that string to a new file what is the best way to... |
Jul 13, 2015 at 7:19pm
[1 reply] : Open input file Open output file Read line from input file Compare to ... (by MiiNiPaa)
|
by brachburton1
Another Plinko program problem - error when input is not a number
|
I'm writing a Plinko game program and have pretty much finished everything, but there's one error that I can't fix. When option 2 or 3 (multiple chips in one sl... |
Jul 13, 2015 at 6:23pm
[1 reply] : Fixed it. I was just missing a cin.fail code in a necessary spot. (by brachburton1)
|
by Kew
How to convert data type int to char?
|
I would like to convert a data type int to char. For example, i would like to convert int a = 100 into char a = '1', a ='0' , a ='0'. i had tried itoa ... |
Jul 13, 2015 at 6:06pm
[4 replies] Last: Look like i have a long way to go.... there are a lot of function and ... (by Kew)
|
by Bogeyman
SFML - Statically Linking Libraries (1,2)
|
I've been struggling to get SFML set up using the statically linked libraries for the past couple of hours. I'm using Code::Blocks, and at the moment I have ... |
Jul 13, 2015 at 5:12pm
[22 replies] Last: I can't find any more information on deleting user made templates so i... (by Bogeyman)
|
Calculator program mode input problem. |
Why won't this variable work as a mode control in a calculator program. The result is the console asking for a mode input indefinitely. #include <iostre... |
Jul 13, 2015 at 5:12pm
[4 replies] Last: Ah, that would explain it, I tried using "m" but that threw up some er... (by A Space Ostrich)
|
by jgreenwo13
Trouble with searching for strings in code
|
Im working on a code that asks the user to enter a line of text and a word they would like the code to count the number of occurrences for. However, say if I in... |
Jul 13, 2015 at 5:07pm
[4 replies] Last: Thanks so much my program finally works. (by jgreenwo13)
|
by Enot02
An error
|
I've wrote a code which converts denary number in another scale of notation. Here is the code: //---------------------------------------------------------... |
Jul 13, 2015 at 3:45pm
[18 replies] Last: Oh no, I need hex symbols. How to attach them? (by Enot02)
|
by bestie86
Program compiles but crashes
|
solved |
Jul 13, 2015 at 2:24pm
[2 replies] Last: Actually, line 29 needs to be as it is -- while(last->link != NULL)... (by andywestken)
|
by phztfte1
Use of cin to enter value pairs into STL map
|
How do you write a function that reads value pairs from cin and places them in map msi? // C21Drill Map.cpp #include <iostream> #include <map> #include <str... |
Jul 13, 2015 at 1:42pm
[10 replies] Last: Thank you very much, JLBorges. (by phztfte1)
|