
please wait
by looky
() why {}
|
I wondered why int main () uses these parenthesis, but then {} to begin and execute programme is this just code blocks or a c++ rule. |
Mar 28, 2016 at 2:54pm
[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_before" is not getting initialized and I'm slightly confused be... |
Mar 28, 2016 at 1:33pm
[2 replies] Last: line 67, 72: Let's remove the arithmetic from the lines. double b... (by AbstractionAnon)
|
by ClassyChap
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 bunch of consecutively numbered characters output next to ea... |
Mar 28, 2016 at 12:51pm
[5 replies] Last: For example, you could redirect the output to a file. (by helios)
|
by eliiofaddoul
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 same as writing a pseudo-code ? |
Mar 28, 2016 at 9:07am
[1 reply] : Algorithm is an idea of what to do to. It can be expressed in many way... (by keskiverto)
|
by redempvfx
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: |
Mar 28, 2016 at 8:20am
[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 expected '}' at end of input = line 130 #include ... |
Mar 28, 2016 at 6:46am
[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 exercises as a percentage. The user should input the value for N f... |
Mar 28, 2016 at 6:23am
[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 array. It's supposed to roll 36000 times and then tally up h... |
Mar 28, 2016 at 6:03am
[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 return value that can influence an "if" statement in "main()"... |
Mar 28, 2016 at 5:34am
[1 reply] : A return statement returns a value and terminates the function. int ... (by Too Explosive)
|
by jgialis
Array Classes
|
Have to make a code where I input array size and set array value to each member of array then print out the array. The code works but i'm not sure why its crash... |
Mar 28, 2016 at 5:11am
[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 inputs an integer. Ex) a vector contains zero, one ,two...etc. wh... |
Mar 28, 2016 at 4:43am
[1 reply] : If the strings inside the vector correspond to the indices of the vect... (by Arslan7041)
|
by StupidLag
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 was the same. im getting an error saying bad array new leng... |
Mar 28, 2016 at 4:26am
[1 reply] : > im getting an error saying bad array new length ¿a compilation erro... (by ne555)
|
by b29hockey
Class and Vectors
|
So I have a weird problem with this code. I have two vectors of classes named winNames, and wines. wines reads information from the vector winNames. Everything ... |
Mar 28, 2016 at 4:17am
[1 reply] : > Let me know if more information is needed provide enough to reproduc... (by ne555)
|
by sailink37
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 assign a letter a number and im not even sure if im doing it righ... |
Mar 28, 2016 at 4:05am
[1 reply] : Hi, Please always use code tags. http://www.cplusplus.com/articles/z1... (by TheIdeasMan)
|
by leashbomb69
Help with string code
|
My error : Undefined first referenced symbol in file main /usr/sfw/lib/gcc/spa... |
Mar 28, 2016 at 3:43am
[10 replies] Last: Since I am having no problems, I think its a GCC error. Have you tried... (by Diedes)
|
by tehHuzzlenut
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 my code set up, I receive an input that includes commas and s... |
Mar 28, 2016 at 2:59am
[1 reply] : Hello, try using this to remove unwanted characters: input.erase(std... (by McNo)
|
by tdyoung
Calling by Reference and value
|
Write your question here. #include <iostream> using namespace std; bool figureGrade(int score, char &); int main() { int score; char grade; ... |
Mar 28, 2016 at 1:00am
[2 replies] Last: Thank you very much. I see now why it wasn't working before. I need to... (by tdyoung)
|
by Outlaw782
Program inserting junk into list.
|
I'm guessing my insert function isn't working correctly. It seems to be just inserting junk into my list whenever I print it out. I'm not getting any errors/war... |
Mar 28, 2016 at 12:08am
[3 replies] Last: Thank you for your input cire, after doing your test it seems the firs... (by Outlaw782)
|
by jjkrynock
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 gets hung up at the inputFile.open line. I read in my book to... |
Mar 27, 2016 at 11:47pm
[2 replies] Last: Thank you koothkeeper. (by jjkrynock)
|
by b29hockey
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 highest element no problem, but the lowest isn’t working and I... |
Mar 27, 2016 at 10:54pm
[4 replies] Last: cool! thank you for the help! (by b29hockey)
|