Beginners - November 2015 (Page 50)

by hdyh
stack problem. help!!
 
I want to display input,delete and show in stack, but there a problem in switch case loop, expected before int please help me. #include <iostream> us...
[1 reply] : You need another cin where the user enters the value to push: sw... (by coder777)
by shome
arguments to program while running backtrace(gdb)
 
my program takes a few argumnents. while running it(with the required arguments)i got a seg fault. i generated core file. then i want to run backtrace as: ...
[no replies]
Overloading an operator question
 
Solved
[6 replies] Last: Yes, you may write this: Test& Test::operator += (const TestX& t){ ... (by coder777)
New instead of Malloc
 
I've been working with a tutor on one of my assignments and within they had use me malloc. I am being told by my instructor that I should use new instead. In or...
[5 replies] Last: Awesome! Thank you for your help on this one! (by EdWar82)
Working with functions (void), where am i messing up?
 
#include <iostream> using namespace std; void multiplicationFunction(); //multiplying input and num in the main function { cout << num << " times " << inpu...
[3 replies] Last: Your addition/multiplication functions don't know what "num" and "inpu... (by magnum pi)
Expected Primary-expression
 
I keep getting the error "error: expected primary-expression before ',' token" when there is clearly a comma there. What am I missing? #include <iostream>...
[2 replies] Last: Gotcha. Thanks:) (by sirconfusedalot)
Annual Mean Temperature Problem
 
Hi, I'm currently dealing with an issue trying to write a program for homework. I need to take the input of multiple temperatures (up to 50), then find the aver...
[5 replies] Last: I second what ShiftLeft said! :D But if your project requires you to u... (by magnum pi)
Functions are kicking my butt....
 
Can someone give me a better explanation on functions??? the empty one for the menu I kind of understand because you don't have to reference anything... anyway ...
[no replies]
Bank C++ class program and arrays
 
thats the main.cpp but when i read in the values in the array and enter the desired number for withdraw or deposit i cant get it to read that the acoout is savi...
[2 replies] Last: need help not understanding i also have a class file (by tripplex95)
Using loops to print contents of an array
 
There are 4 parts to this assignment. I have to first 3 completed but am having trouble with the fourth part. • Write the code that will display only the ...
[7 replies] Last: Is such an optimization possible? After all: strlen(myCharArray) may n... (by magnum pi)
warning: variable set but unused
 
warning: variable 'ret' set but not used [-Wunused-but-set-variable] warning: variable 'turn' set but not used [-Wunused-but-set-variable] receiving these erro...
[2 replies] Last: The warnings are advisory, they are not fatal to your program being co... (by closed account E0p9LyTq)
Passing functions via pointers
 
Hello. I was wondering: how should I call a function stored in a separate file that of whom I know nothing but the header? If I had a function for a queue t...
[2 replies] Last: Use std::queue<> http://en.cppreference.com/w/cpp/container/queue ... (by JLBorges)
Debug error I can't seem to solve + any advice on this program
 
Hi guys, I'm writing a program to score a performers score, based on 5 judges. The score will be calculated by dropping the highest score and the lowest score, ...
[12 replies] Last: http://www.cplusplus.com/doc/tutorial/functions/ (by Zaita)
Anybody?
 
Hey, everybody I was just wondering how long did it take you to master c++. Im asking to see if im just taking far to long or if it takes everybody a while.
[2 replies] Last: C++ is always evolving so you can never truly master it. C++11, C++14 ... (by Zaita)
by hdyh
Stack to state input, show and delete
 
I try to make a coding to show a stack that state input, show and delete. But there is a mistake in the coding that i cant find by myself. Help me to solve this...
[3 replies] Last: Use a reasonably current compiler (and for g++: enable C++11 with -std... (by JLBorges)
i need help with this code using the while loop.
 
Write a program that will ask the user to enter a finite amount of numbers between 1 and 10 and display the product of the entered numbers. The amount of num...
[2 replies] Last: Thanks man (by kamilhassaan)
Please help me figure this out!!
 
Hey guys, I'm trying to modify my old program to now incorporate a sort function to sort the data into descending order. I think I've got the sort properly pro...
[6 replies] Last: Your loop starting line 67 doesn't do anything either. I'm not sure wh... (by magnum pi)
How do I compare integer array elements with each other in the same array?
 
Hey all! I'm trying to write a program that generates random numbers from 1-365 and then stores each random number in the array. I've managed to do that thus ...
[2 replies] Last: Right now, you are generating 365 random numbers and storing them. The... (by tallyman)
Doubt with Classes
 
Could anybody tell me why at the end of the code, x and y are valued 12 and 32, since the member function "Lee" is void type and besides is executed in the scop...
[2 replies] Last: Thanks Shadowmouse, I still have to check the basics. Goodbye. (by qwaserdf)
C++, error: incompatible types in assignment
 
Can anybody help me, what's wrong with my code ? ... struct Duomenys { ... int Balart ... }; ... void Suma(int suma , int B , int...
[3 replies] Last: Suma has return type void, which means it doesn't return anything. (by Peter87)
November 2015 Pages: 1... 484950515253
  Archived months: [oct2015] [dec2015]

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