Beginners - March 2016 (Page 6)

by looky
() why {}
 
I wondered why int main () uses these parenthesis, but then {} to begin and execute programme is thi...
[2 replies] Last: All C++ functions begin like this: RETURN_TYPE function_name ( INPU... (by Moschops)
Issue with class calculation functions with OOP
 
For some reason I keep getting two errors on lines 67 and 73. For some reason my variable "bill_bef...
[2 replies] Last: line 67, 72: Let's remove the arithmetic from the lines. double b... (by AbstractionAnon)
Strange output with consecutive characters in cout
 
Hi. I'm experiencing a strange issue with cout. What it seems to boil down to is that if I have a ...
[5 replies] Last: For example, you could redirect the output to a file. (by helios)
is an algorithm the same as a pseudo-code ?
 
Write your question here. so the teacher wants us to show her an algorithm for our code. is it the s...
[1 reply] : Algorithm is an idea of what to do to. It can be expressed in many way... (by keskiverto)
mingw Compiler: Getting an error when trying to compile this calculator program.
 
So I'm getting an error when I try to compile the following program:
[1 reply] : My mistake. I fixed it. I apoligize. (by redempvfx)
by jam47
Can't find where errors are
 
Where are the errors? It says a function-definition is not allowed here before "{" token = line 41 ...
[5 replies] Last: The function header at line 43: encrypt2 (plaintext, key){ should lo... (by Chervil)
Calculating N amount of assignments
 
The problem is as follows: Write a program that calculates the total grade for N classroom exerci...
[2 replies] Last: Dynamic memory was made specifically for this. No dynamic memory is ... (by cire)
by Unicow
Using a vector as a counter for coin toss?
 
So this is my code so far and I took my array code and tried to incorporate a vector rather than an ...
[4 replies] Last: The possible values of dice1 + dice2 on line 16 range from 2 to 12. ... (by cire)
by specbk
can i replace a while loop with a return value?
 
Hi! I am pretty new to c++ and i have a question- Is it possible to replace this while loop with a r...
[1 reply] : A return statement returns a value and terminates the function. int ... (by Too Explosive)
Array Classes
 
Have to make a code where I input array size and set array value to each member of array then print ...
[2 replies] Last: Thank you. Figured it out! (by jgialis)
Confused about vectors.
 
If I created a vector with string values, how do I call one of those strings for when the user input...
[1 reply] : If the strings inside the vector correspond to the indices of the vect... (by Arslan7041)
class: user defined array
 
i created a class called poly and i thought that the way to create a user defined array with a class...
[1 reply] : > im getting an error saying bad array new length ¿a compilation erro... (by ne555)
Class and Vectors
 
So I have a weird problem with this code. I have two vectors of classes named winNames, and wines. w...
[1 reply] : > Let me know if more information is needed provide enough to reproduc... (by ne555)
unsure why my code prints out this
 
when i run my code and enter in x, it prints out 124.28. can someone tell me why? Im trying to assig...
[1 reply] : Hi, Please always use code tags. http://www.cplusplus.com/articles/z1... (by TheIdeasMan)
Help with string code
 
My error : Undefined first referenced symbol in f...
[10 replies] Last: Since I am having no problems, I think its a GCC error. Have you tried... (by Diedes)
Trying to Catch invalid symbols in a string
 
My question how I would check for invalid symbols in a string input from the user. The way I have m...
[1 reply] : Hello, try using this to remove unwanted characters: input.erase(std... (by McNo)
Calling by Reference and value
 
Write your question here. #include <iostream> using namespace std; bool figureGrade(int sc...
[2 replies] Last: Thank you very much. I see now why it wasn't working before. I need to... (by tdyoung)
Program inserting junk into list.
 
I'm guessing my insert function isn't working correctly. It seems to be just inserting junk into my ...
[3 replies] Last: Thank you for your input cire, after doing your test it seems the firs... (by Outlaw782)
Reading data from a file questions
 
Hello. I'm trying to read the data from C:\Random.txt I've included the fstream but the compiler g...
[2 replies] Last: Thank you koothkeeper. (by jjkrynock)
Finding largest and smallest element in array
 
hey guys, I’m trying to display the highest and lowest elements in this array. I can find the high...
[4 replies] Last: cool! thank you for the help! (by b29hockey)
March 2016 Pages: 1... 45678... 47
  Archived months: [feb2016] [apr2016]

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