Beginners - April 2019 (Page 12)

PHP sending email failed
 
please help me check what problem why sending email failed thank you! (File sendmail.php) <?php $to = 'limchankhim89@gmail.com'; $subject = 'LOCALHOST...
[4 replies] Last: hi where can find website send PHP question? do you have website? (by limchankhim)
by Demii
Displaying correct answer from a text file
 
Hello, I just need help with a quiz grading program I am writing. I only need to display the correct answer from a text file upon an incorrect user input here: ...
[1 reply] : if (ans == questions .getCorrectNumber()) { cout << "Correct!" << ... (by ne555)
OOP vs non OOP
 
I apologize for all of the probably pointless questions I have been posting lately. I am sure I could just Google the answers but I feel like I get a more compl...
[18 replies] Last: nobody picked up on this part of the original question yet At least ... (by MikeStgt)
.
 
There was a video we had to follow, but the arrays didn't match cause I changed them, but didn't put two and two together
[6 replies] Last: [quote=Enoizat]Codes share a weird tendency to periodically come back ... (by TheIdeasMan)
by cash
linker error
 
I'm getting a linker error in my code and I don't know why? Header #undef WATCH_H #ifndef WATCH_H #define WATCH_H #include <time.h> class watch...
[1 reply] : You prototype the bubble sort function as void bubble_sort(vector<int... (by fiji885)
Help with if/else statements
 
Hey, I'm just getting started with learning c++ and put together a quick practice program to get myself used to input/output and if/else. I'm having an issue wi...
[2 replies] Last: Thanks, was able to figure it out because of that. I've gotten used to... (by Xirania)
perfect numbers in range of given numbers
 
Write your question here. So I have to write a program that asks the user to enter a range of 2 numbers and print out if there are perfect numbers in that rang...
[5 replies] Last: I figured it out, that helped a lot. thank you :D (by mercedx)
Negative to Positive
 
I have a series of if else if statements inside an overloaded << function that is to control how negative values are displayed with fractions. They all see to w...
[4 replies] Last: Thanks to all you guys for the insight. I got it working. I ended up u... (by stoneJax)
pointer
 
why firstvalue = 10 and second = 20 ? please help me with this code // more pointers #include <iostream> using namespace std; int main () { int ...
[4 replies] Last: p1 = p2; The thing that p2 is pointing at - now p1 points at the sa... (by Repeater)
Constructors problems
 
Hello there ! I am trying to make a constructor which initializes one of my objetcs with 4 parameters. The problem is when I try to compile, I have errors. ...
[3 replies] Last: Yes the constructor has a body and is public. Ganado, I tried your so... (by saxoalex)
by Bopaki
Need some help to write a loop to get this output below
 
6929 372 1734 1767 1732 Process returned 0 (0x0) execution time : 2.387 s Press any key to continue. //Header File linkedStack.h #ifndef ...
[8 replies] Last: re-use your code! this should read something like else while(curren... (by jonnin)
Finding left over
 
How do I find leftover for anything ? In my example I have 26 trashes. Each container can fill up to 5. So how do I find that there is 1 left ? I think that I s...
[1 reply] : Never mind found the way but not sure if it's logical to use this code... (by DdavidDLT)
Manipulating Data from CSV file
 
I have the following code below, and was wondering what was the next step I could take to calculate the percent change of the open and close data from the file?...
[1 reply] : Well you stored the information in a vector, do you know how to access... (by jlb)
Time class
 
Hi, one of our assignments in the class is to create a program that uses objects to display hours, minutes and seconds. With these numbers we now have to overlo...
[4 replies] Last: if (seconds == 0 || seconds == -1){ --minutes; se... (by dhayden)
by sturk
C++ Member Initialization List
 
Why does the code below give an error? Given the following code: class A { int x; const int y; int& z; public: A(int x = 0, int y = 0, int...
[1 reply] : A(int x = 0, int y = 0, int z = 0) This isn't an initialization list... (by helios)
by sturk
Compilable or not compilable
 
I took a test and the test said this following code is not compilable in either C or C++. Not sure which one. Why is this so? Seems perfectly compilable to me i...
[7 replies] Last: Don't really know what the career teacher is implying; but there is n... (by JLBorges)
Segmentation fault (Core dumped) error
 
Hi, I have been working on a profiler project for class for a few weeks now. A few days ago I ran into an error when running the program saying - Segmentation f...
[5 replies] Last: std::list<AST*>::iterator it = child.begin(); AST *newPtr = (*it)->ge... (by dhayden)
Insertion Operator (1,2)
 
I have an overloaded << operator and it works with my fraction class. Now, I am adding some more code to it so it can satisfy the instructions as follows: Pr...
[21 replies] Last: I think your simplify function still won't work if the numbers have mu... (by dhayden)
by Lalver
Best Book on C++ For Absolute Beginners?
 
Hey i m also very new to C++ and i have only done my "Hello World!!" program so far. I would like t know if there is anyone who is willing to donate their old...
[1 reply] : https://isocpp.org/wiki/faq/how-to-learn-cpp#best-book (by salem c)
by sturk
Help with a test qn
 
Why is the output 1,2,3,4,5 even after adding 10 to each of them? Revising for a test. #include <iostream> int main(void) { int a = { 1, 2, 3, 4, 5 ...
[2 replies] Last: If you want to modify the content of the array you need a reference. C... (by coder777)
April 2019 Pages: 1... 1011121314... 24
  Archived months: [mar2019] [may2019]

This is an archived page. To post a new message, go to the current page.