
please wait
by pearlyman
Compare two values from two classes
|
Hi guys, First and most important, I thank you for your time and knowledge. I don't want any code, just need an explanation, or to know what I should read and ... |
Mar 18, 2015 at 6:13am
[1 reply] : Your variables obj and val are declared in main() . You try to a... (by fg109)
|
by macboy49
Pointer Help Please
|
What exactly is the difference between these two? If I try to cout each one I get 0 and 5 respectably. So does the first one initialize an array of 5 elements a... |
Mar 18, 2015 at 5:11am
[1 reply] : I'm new to C++ and VERY new to pointers... but I'll take a stab at it.... (by pearlyman)
|
by LaimisG
two-dimensional array
|
Hello, someone can write this program for me? Given two-dimensional array T(m,n), that element values are different, primary data is stored in a text file. Fo... |
Mar 18, 2015 at 4:59am
[3 replies] Last: primary data is stored in a text file. If it's stored in a text file... (by pearlyman)
|
by rhenzo2015
PLEASE I NEED HELP! SOME CODES WOULD DO!
|
It should have a password authentication before it display the main program (use IF ELSE) 1. Password must not be showing upon typing. It should show asterisk ... |
Mar 18, 2015 at 4:34am
[2 replies] Last: You mean like... function name(){ for (int x=0;x<4;x++){ cout - ent... (by pearlyman)
|
std::vector erase seg fault |
I tried a few times to create an example program to show the problem I'm having, but they all worked completely fine. I only seem to get a seg fault when I'm do... |
Mar 18, 2015 at 2:44am
[1 reply] : you are missing a proper assignment operator for the `component' class (by ne555)
|
by catpokemon
Code won't edit/overwrite the text file, even though everything appears to be working correctly.
|
edit: ignore this initial post. Check my latest comment - the issue below is resolved. Hello all. The file is opening and is outputting numbers, but it isn't... |
Mar 18, 2015 at 1:43am
[7 replies] Last: I hate to bump, but I'm going to bump. This is due tonight and my teac... (by catpokemon)
|
by Orval
toupper help
|
#include <iostream> #include <string> #include <ctime> #include <cstdlib> #include <vector> using namespace std; int main() { vector<string> Word... |
Mar 18, 2015 at 12:55am
[2 replies] Last: That makes sense, but still confused on how to use toupper's statement... (by Orval)
|
Problems with overloading operator |
I am getting an error on line 104. This line is suppose to add the coefficients of two polynomials. p .coefficient = a1.p .coefficient + a2.p coeffici... |
Mar 17, 2015 at 11:50pm
[3 replies] Last: the file name was "ADT". I'm guessing when I include the header file, ... (by welcometomyworld)
|
Input into a String |
Hello, I'm curious as to the internal workings of strings as it relates to input. When a user types into a program and the input goes directly into a string ... |
Mar 17, 2015 at 10:06pm
[3 replies] Last: how do strings allocate just enough space for the internal character ... (by Yanson)
|
by abc456
Please help me fix this program?
|
I'm extremely confused on this assignment I've been working on. I'm completely stuck on how to get print() and printRoots() to accept two different sets of vari... |
Mar 17, 2015 at 8:33pm
[no replies]
|
by abc456
How can I fix this code so the function countChars accepts a character as parameter?
|
I'm not really sure what my professor wants this character to do? This is the instructions: Write a function (countChars) that accepts a string and a character ... |
Mar 17, 2015 at 8:13pm
[3 replies] Last: Smac89 I understand most of what you said. only I'm unsure what to mak... (by abc456)
|
by KickAz
CLASSES - ISO C++ forbids in-class initialization of non-const static member 'pi'
|
Hello I have a little problem I don't undestand what the problem is can someone explain to me? error: ISO C++ forbids initialization of member `pi' error: ma... |
Mar 17, 2015 at 8:04pm
[2 replies] Last: Prior to C++ 11, in order to initialize a variable in your class, you ... (by Aaron Vienneau)
|
help with backtracking |
read n numbers and a number a .generate all possible numbers from numbers n lesser than a example: for 0,2,3 and a=300; 20,200,220,202,300,302,322 etc |
Mar 17, 2015 at 7:11pm
[4 replies] Last: ty for help i did it :D #include<iostream> using namespace std; int ... (by closed account E3h7X9L8)
|
tokenizing strings |
i need a hand here, a got this function that is supposed to tokenize pipe "|" dilimited words from a larger string, it should be working fine according to my l... |
Mar 17, 2015 at 6:15pm
[2 replies] Last: Straight from heaven , that's what i needed thank you very much @fg109... (by closed account SECMoG1T)
|
by mighty asker
Algorithms for 2D arrays
|
Hello. Would you recommend me some good sources of algorithms for 2D arrays (merging, rotating, deleting rows, etc)? P.S. What's the right way to declare an 2D ... |
Mar 17, 2015 at 6:09pm
[4 replies] Last: And same for vectors? (by mighty asker)
|
by Vandalism
Linked Lists(Nodes)
|
I want to add a node in the beginning. Sample Program: 1. Create Lists 2. Add at the beginning 9. Display Enter choice: 1 How many nodes you want to in... |
Mar 17, 2015 at 2:44pm
[2 replies] Last: hey your data is not going to linked list. it is being stored in array... (by amarjit86255)
|
by Vandalism
Create Lists(Nodes)
|
I want to input nodes and it's on void create() but it won't output on void display() It gives a message like this: Unhandled exception at 0x00EC966B in Proj... |
Mar 17, 2015 at 1:11pm
[3 replies] Last: here ... struct Node { Node(int i) : info(i), next(nullptr)... (by closed account SECMoG1T)
|
How exactly does const* char work? |
Why, exactly, does code like the following work? #include <iostream> struct Candybar { const char* name; double weight; int calories; }; ... |
Mar 17, 2015 at 1:05pm
[3 replies] Last: This always trips me up, so I thought I'd ask so I had a reference at ... (by Aaron Vienneau)
|
by sirrunrun
trouble when changing from c++ to c
|
this is the code from the question of poj1760~but i dont know how to changing to C program http://poj.org/problem?id=1760 #include <string> #include <cstri... |
Mar 17, 2015 at 12:08pm
[5 replies] Last: The algorithm is using std::map because it's convenient in C++. Creati... (by dhayden)
|
by hmlwin
Wrote program to sum terms, but can't get it to give me the correct summation...
|
I wrote this program to sum a user-defined number of terms for the series 1-1/2+1/3-1/4+1/5-... But for some reason it's not working. I have went line by line ... |
Mar 17, 2015 at 11:49am
[3 replies] Last: To solve a problem like this, it's often helpful to look at easy input... (by dhayden)
|