Beginners (Page 6)

Arrow Membership Operator
 
The line pfish->kind = "guppy" produces an error statement: "invalid array assignment." Why does thi...
[3 replies] Last: char kind = "guppy"; is an initialization. char kind ; kind = "gupp... (by LB)
Infix to Postfix (can't figure out my errors)
 
Hello, I've searched through the Infix to Postfix threads and I wasn't able to find my mistake. Ho...
[no replies]
Can getline (cin) store more than one variable?
 
For example: #include <iostream> #include <string> using namespace std; int main() { ...
[6 replies] Last: You should never worry about efficiency. Always use the most elegant p... (by LB)
need a word to output in an outfile
 
In this one program that i need to write for class, i need to take either 1 or 0 and have it turn in...
[no replies]
A function that increments
 
How would I write a function that increments something like a total of cars and the adds 2.00 to a c...
[3 replies] Last: your payingCar function could do something like, amount+=2.00 and tota... (by pepstein)
by Subo93
files
 
when I enter itemcode and item and press enter it only outputs the "Enter itemcode,item and price"tw...
[1 reply] : That's not possible, your for loop can only run 2 times in total. (by LB)
Flags - flags and setf (1,2,3,4)
 
//Hello guys!!! //First, how should you translate flags into a understanble language? They could ca...
[60 replies] Last: https://www.youtube.com/watch?v=l8wmvP0vrVM (by zwiluwu)
wordcount using functions? please help!!
 
Hi. i am a beginner at C++ and i need help with this program. i am trying to count specific words in...
[13 replies] Last: oh ok, thanks for the help anyways. (by JulyZerg)
getline loop
 
hello, my code keeps generating a loop when it is not supposed to. i need to get a view strings i...
[12 replies] Last: On second thoughts I don't know if I diagnosed correctly. Keep in mind... (by CodeGoggles)
Segmentation fault
 
I am a little new to c++ and this is the first time I have encountered this error. I am a lost as to...
[1 reply] : 1. Put your code into code tags. 2. Properly indent your code to make... (by booradley60)
by mcpilf
Just revision required
 
Hello, so this is my assignment: A bank charges $10 per onth plus the following check fees for a c...
[4 replies] Last: Mcpilf, as a beginner, I go for the simplest maths my brain can handle... (by Donnie)
find non-key item in binary search tree
 
I am creating a menu-driven program which creates a small database using a binary search tree. I am ...
[no replies]
by IBCFQ
Program flow
 
Hey there! When coding programs and trying to separate them into functions I usually get stuck to m...
[5 replies] Last: @mutexe: I'm not trying to finish the code, nor trying to do something... (by IBCFQ)
Function help
 
So I am having trouble defining the functions getTestScore and calcAverage on this program. Commente...
[2 replies] Last: Thank you! You are the man. (by stevebrule)
How to Pass Struct in Function as Reference or Pointer?
 
Here's little code of mine! I'm trying to input values in array of time structure, after input if i ...
[5 replies] Last: Instead of input(x), try input(&x) to pass a reference to the struct.... (by AbstractionAnon)
Flip odd profiles
 
From this file I want to pullout sections of the stream reverse them and put the list back into the...
[4 replies] Last: std::list<float>profile_X; // set up a list pr... (by peter hurley)
do while statement
 
Exercise: Explain each of the following loops. Correct any problems you detect. (a) do ...
[4 replies] Last: No this is not my code, its from my book, and would cin even be a cond... (by YellowPyrmid)
by mv81
File trouble
 
having some trouble with my program reading the file im trying to have it read this is what I have s...
[4 replies] Last: Show the content of the "math.dat" file. Aceix. (by Aceix)
Polymorphism (shapes) object
 
Hi everyone! Im doing a classic example of polymorphism with shapes but im stuck with the first exam...
[4 replies] Last: Thank you everyone! I understood the concept and I can now code with n... (by luis123)
Does anyone know how to solve it?
 
done
[3 replies] Last: A WeekDays object should be able to store an array of strings so ... (by mutexe)
Pages: 1... 45678... 117
  Archived months: [feb2014]

Cannot post in this page. To post a new message, go to the first page.