I get a different answer to the correct answer when I run my code, my logic seems correct. not sure why? |
|
[3 replies] Last: @joe864863 @jonnin That was a mistake by me in the question joe, I'm t... (by willmannix123)
|
by Kourosh23
Factorial of a number in C++
|
|
[5 replies] Last: @jonnin: Why inline your function? It's also a good idea to mark your... (by mbozzi)
|
by Brendy1982
C++ Code not running properly and need some advice for my project! :)
|
|
[1 reply] : use the same function in main, you don't need 4 copies of it, that is ... (by jonnin)
|
by Kourosh23
prefix and post-fix using decrement operator C++
|
|
[no replies]
|
by wolfv
How to capture cerr from another program?
|
|
[5 replies] Last: I went with the example from JLBorges because it's so simple. The foll... (by wolfv)
|
by forta2k
Divisors
|
|
[4 replies] Last: Just playing with it... alternative approach char dtxt ; char * has3... (by jonnin)
|
by redhood
Tips when tracing codes in an exam?
|
|
[1 reply] : I do not know of a site, but this is a critical skill to debugging. ... (by jonnin)
|
by steven77
using a class inside another class
|
|
[1 reply] : Looks like you have a name clash with the POSIX sleep function. http:... (by Peter87)
|
by redhood
Help with my homework
|
|
[5 replies] Last: hey thanks alot man, sorry i only got to replied now. i totally forgot... (by redhood)
|
by nfnicolas
Output list book
|
|
[2 replies] Last: Yes I know. I was trying to create, but do not know how to connect thi... (by nfnicolas)
|
by Nalrie
Guess my number
|
|
[1 reply] : I am not sure, but maybe you should be thinking about random numbers b... (by Kourosh23)
|
by spax1111111
initialising a pointer with a function address
|
|
[8 replies] Last: Thx guys this helped a lot i get it now :D (by spax1111111)
|
by sesslit805
transfering inputFile to vector c++
|
|
[2 replies] Last: Thanks it worked ! (by sesslit805)
|
by Zerdalias
Returning value with template function?
|
|
[6 replies] Last: Oh! Awesome, I get it now! Thank you! (by Zerdalias)
|
by rantiv
Single If statement
|
|
[7 replies] Last: Once you see it, it's dead simple: The first thing I would do is corr... (by mbozzi)
|
by sandoda
Hybrid Car
|
|
[1 reply] : @sandoda You're program worked fine for me. I used all the inputs you... (by whitenite1)
|
by Flaze07
stoi
|
|
[2 replies] Last: thanks :) (by Flaze07)
|
by tunalafish
Im not sure on how to pass an array through reference without using pointers.
|
|
[1 reply] : #include <iostream> const int arraySize = 5; int main() { int ... (by gunnerfunner)
|
by HRubss
y always equals 1?
|
|
[5 replies] Last: /*write a program that asks the user to enter an integer x. Based on... (by HRubss)
|
by Kourosh23
constant argument to a function
|
|
[5 replies] Last: Yes. Ideally, limit the const qualifier to the implementation; at bes... (by mbozzi)
|