Beginners - March 2016 (Page 37)

cant get stack program to run
 
Write your question here. template<typename T> class node { private: node<T>* next; T data; public: node(T newdata, node<T>* then...
[3 replies] Last: error: void value not ignored as it ought to be result= topnode->getd... (by ne555)
alsnfaskdfas
 
fffd
[13 replies] Last: [quote=jumpman530] but I need to pass the two PolVal and PolAngle arra... (by cire)
tutorials learned
 
Hello i have learned all tutorials to this forum in tutorial directory. Now i dont know what to learn. i know to use very well all of i learned in tutorials.
[3 replies] Last: I agree with Thomas1965. A good way to learn a language is to write a ... (by kind9)
Noob Help with project
 
I'm pretty new to c++ and need help getting started with a programming project. For this project I have to take input parameters as Cartesian coordinates and se...
[2 replies] Last: There are a couple of related problems posted by others: http://www.cp... (by Chervil)
Is here any memory leak?
 
I'm trying to make class to manipulate matrix. Can anyone tell me if here is any memory leak, or a better way to do this? class matrix { private: ...
[4 replies] Last: Okay, thanks... (by PSYCHAMERON)
How do I cout each function? I declared it in the scope, I don't know why it won't cout anything.
 
#include <iostream> using namespace std; int smaller (int a, int b) // return the smaller of a and b (if they are equal then just return that value) { i...
[2 replies] Last: Statements after a return won't be executed. if (a < b) // if a is ... (by Thomas1965)
Almost done. Just need to fix this one error.
 
//Ja-Mesz Walton //3/6/16 //Midterm project regarding calculating Body Mass Index // CIS1111 #include <iostream> #include <iomanip> #include <string> ...
[17 replies] Last: One more thing ... If you configure your editor to convert tabs to sp... (by TheIdeasMan)
converting texts on saved file to uppercase.
 
This program displays texts from a file but how do i convert all lower case words into upper case and display them on the screen. #include <iostream> #incl...
[1 reply] : int main () { int i=0; char str ="Test String.\n"; char c; w... (by Viiarge)
Problem with COUT
 
I'm done programming the first part for my Mad Lib program, but when I run testBed to check my program, I keep getting as if there was two COUTs together when I...
[5 replies] Last: thanks for the help. I was able to solve it writing cin.clear(); c... (by aerichsen)
Nested if/else statements (using !, &&, ||)
 
Hey everyone. I am having trouble fully understanding how nested if/else statements work, especially when they include the !, &&, and || operators. I was assign...
[2 replies] Last: And from what i've read, it seems they want you to do something like t... (by Viiarge)
Need help with errors
 
I have this project due by tonight. I need help figuring out where these errors are. #include <iostream> using namespace std; /**************************...
[3 replies] Last: Good luck on the rest ! Sorry for engrish :P (by Viiarge)
by Danky
Problems with arrays
 
I NEED HELP!!!! I have been trying to fix this code all day. I am new to coding. There are things that are broken are the max and min. They do not pick the cor...
[3 replies] Last: Ok I tried this: double flights ; double delays ; double percentDelay... (by Danky)
Is there any other way I can get void smallest to have one output without changing void smaller?
 
#include <iostream> using namespace std; void smaller (int a, int b) // return the smaller of a and b (if they are equal then just return that value) { ...
[4 replies] Last: Yes, thanks! That really helped a lot. Gave me a new way to think abou... (by Catungal)
Basic Inverse Pyramid Program!
 
Can anyone please explain how i would manipulate the following program to reflect an inverse pyramid and how to also get an upside down pyramid? #include ...
[no replies]
Need help ASAP. Project due at midnight.
 
//Ja-Mesz Walton //3/6/16 //Midterm project regarding calculating Body Mass Index // CIS1111 #include <iostream> #include <iomanip> #include <string> #includ...
[6 replies] Last: There's a related but different error here: else if (gendertype == 4)... (by Chervil)
by nj1995
problem with pointers
 
Hi, I am writing a program but every time i run it it crashes, I believe that it has to do with these two functions and the pointers, but i am unsure what exact...
[1 reply] : Why is line 42 deleting data? (by booradley60)
Computation Using A Stack [Update]
 
I changed up a bit of my code from the last post I made of this assignment. This time, the code actually runs now but when I put in an expression e.g., "3+4-6",...
[2 replies] Last: My apologies. I'll make sure to reply to an old thread next time. Fo... (by DoABarrelRoll94)
Search for arithmetic operator
 
Is there a way to search for 4 types of arithmetic operators from a string and print the first occurrence of an operator? For example, the user inputs a stri...
[2 replies] Last: Thank you so much Chervil. (by DoABarrelRoll94)
Trying to learn how to convert data type of numbers in a string to integers.
 
I need to write a program for class that requires me to convert numbers in a string to integers. So I wrote a sample program to try to figure out how to but whe...
[3 replies] Last: There's an example here: http://www.cplusplus.com/reference/sstream/i... (by Chervil)
March 2016 Pages: 1... 3536373839... 47
  Archived months: [feb2016] [apr2016]

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