
please wait
by volTron
How to have classes working together
|
I'm getting error codes - Line 20 - error: 'text_output' was not declared in this scope Line 28 - error: 'class B' has no member named 'change_class' Line 26... |
Mar 27, 2017 at 1:40am
[8 replies] Last: I also don't know about static and why the second option works http:... (by gunnerfunner)
|
by jen23il
Returns not working - Telephone Assignment
|
Having problems here. I've been trying to work this out on my own for the last several days but it' just not working. I need this code to check my if statemen... |
Mar 27, 2017 at 1:39am
[1 reply] : Alright - I can get the if statements to check but I don't know how to... (by jen23il)
|
by bmakloski
Dynamic Arrays of Students
|
Hi! I'm a little stuck in this project I am trying to program that acts as a class roster. My plan was to create a class with the variables name, numClasses, an... |
Mar 27, 2017 at 12:09am
[6 replies] Last: A vector IS a dynamic array, a fixed-sized array and a vector both ord... (by closed account E0p9LyTq)
|
by rcwade93
Coin Class Issue. Unable to get correct read out.
|
I am having an issue with my program. The object is for two coins to be flipped simultaneously and to have the user guess beforehand whether the coins will be e... |
Mar 26, 2017 at 11:07pm
[6 replies] Last: Thank you very much I appreciate the assistance. (by rcwade93)
|
by TommyGun4
Errors in Code
|
There are errors in my code at lines 37 and 40 and i'm not sure how to fix them/ what I did wrong #include <fstream> #include <iostream> #include <math.... |
Mar 26, 2017 at 10:44pm
[2 replies] Last: I just updated the code but it still doesn't work #include <fstream... (by TommyGun4)
|
by val24
Doubly Linked List Node Deletion
|
Hello everyone, I'm having problems with deletion of a single node within a linked list. I have a populated list. When I delete my target node, my code deletes ... |
Mar 26, 2017 at 10:31pm
[8 replies] Last: HAH! A damn semicolon. Well that's something I didn't know would happe... (by val24)
|
by ccwtree11
Why am I only returning 1?
|
I've pasted my entire code (minus the header), but the focus is simply lines 130 onward in both files.. Basically I'm creating an Initial Value Problem solver, ... |
Mar 26, 2017 at 9:39pm
[1 reply] : Hello ccwtree11, I noticed that you started your question with a gree... (by Handy Andy)
|
by nicoleb
Help with a for loop?
|
I need help writing a for loop. For example, let's say the code has the user enter the number of times it needs something to loop, so how do I set up the code s... |
Mar 26, 2017 at 8:37pm
[3 replies] Last: No problem. Learning everything takes time (by bmakloski)
|
by bmakloski
Help with Overloading Operators for Polynomial Class?
|
Hi, I am trying to write a program that can add, subtract, and multiply polynomials with my class type polynomial . In order to do this, I need to overload the... |
Mar 26, 2017 at 8:08pm
[2 replies] Last: I didn't know this was a double post, this is where my program current... (by bmakloski)
|
by Angel1
least Common Denominator somewhat works
|
hi guys, i have a problem when i insert two numbers that are negative , the answer is zero. i know that no matter if its negative, it is always positve LCD. he... |
Mar 26, 2017 at 6:33pm
[6 replies] Last: Alright I understand, thank you guys. (by Angel1)
|
by patrick58d
Runtime Vector Error
|
Hello all, I am trying to create a vector of integers of random size, and random numbers. I have it working nicely when not nested within its own function. W... |
Mar 26, 2017 at 3:47pm
[2 replies] Last: Thanks so much for your help! I made a temporary vector within SystemD... (by patrick58d)
|
by Ponvo
How can I implement templates here?
|
Hello guys, I am currently working on an assignment that is due in 3 days. The program is supposed to make two matrices to perform arithmetic on them. I have ma... |
Mar 26, 2017 at 3:15pm
[5 replies] Last: Consider using std::valarray<> to implement numeric operation on mat... (by JLBorges)
|
by bird1234
how to edit particular data in file
|
i have this data in my file 1234 Alex 4th 3 1235 Sam 4th 3 1233 Salman 4th 3 i wanted to change the semester of sam what should i d... |
Mar 26, 2017 at 2:43pm
[1 reply] : you'll find some ideas below but the best way would be to read the inp... (by gunnerfunner)
|
by Angel1
Case doesnt work
|
hi guys , just wondering why doesnt case 4 run in the program. Can you please help me by pointing at the problem and what is the correct structure. case 3:co... |
Mar 26, 2017 at 2:42pm
[11 replies] Last: Im doing almost the exact same problem how did you do case 5? this is ... (by cantgetrignt)
|
by bird1234
cannot find data in the file
|
is anything wrong with my code void display() { bool check = true; ifstream file; file.open("file.txt", ios::in); string name, semester, id, ... |
Mar 26, 2017 at 2:08pm
[1 reply] : ouh i fix it i don't need to use cin.ignore() , file.ignore(); (by bird1234)
|
by tayloras96
Using structs and Reading from file
|
I am creating a simple address book that reads a file and allows user to search by name, phone, or address. My code is not outputting the correct results. The p... |
Mar 26, 2017 at 2:07pm
[5 replies] Last: Thanks for all of your help! (by tayloras96)
|
by Troix
Calculate time difference
|
Hello! I would like to calcualte the time difference: #include <iostream> #include <chrono> int main() { using std::chrono::system_clock; ... |
Mar 26, 2017 at 12:40pm
[1 reply] : http://en.cppreference.com/w/cpp/chrono/duration (by closed account 48T7M4Gy)
|
Matrix help! |
I keep getting a segmentation fault with this code. Help is appreciated. #include <iostream> #include <stdlib.h> using namespace std; void printMat... |
Mar 26, 2017 at 12:08pm
[2 replies] Last: Gearmaster I run your code in Visual Studio, and I can shows that you... (by xxvms)
|
by seutaclarice
Error with void
|
I am a beginner in C++ and I am attempting to write a code. However, after writing the code I was told that there is an error stating "error: variable or field ... |
Mar 26, 2017 at 7:27am
[2 replies] Last: omg thanks a lot >< that's such a silly mistake from me. >< Thanks! (by seutaclarice)
|
by nico144
What's wrong with my code
|
The question is. When Robin's new baby was born, she opened a savings account with $1,000.00 On each birthday, starting with the first, the bank added an addit... |
Mar 26, 2017 at 6:02am
[3 replies] Last: lvalue required as left operand of assignment We can't say without... (by mbozzi)
|