Okay, no reply from the website but I found the solution to sum of odd numbers + sum of naturals + others. It was very idiotic.
Remove the last line of code that they give you so that you only...
Type: Posts; User: garth
Okay, no reply from the website but I found the solution to sum of odd numbers + sum of naturals + others. It was very idiotic.
Remove the last line of code that they give you so that you only...
okay I think I understand that. For example if using c style char* I should stay with c libraries to manipulate it?
The serialize a vector worked great. But my strings contained multiple words...
Hmm, shame that seems a bit discouraging I was enjoying the site. I sent some feedback to them and will advise if I hear anything. Thanks for the help, at least their wasn't any obvious issues with...
nope that didn't work either.
no solution here your code didn't work either. although much better. I seem to start with some sort of structure but I end up hacking it to make it fit, making it less user friendly.
yeah I had the same problem. you need to wait for the page to fully load. then change to cpp. then wait for it to fully load. refresh latency issue on the site.
that is the site and the question but you can navigate to the cpp side of things. code challenges -> cpp -> easy
I'm hoping its something like that. Although this is the code they provide you with. I've tried returning sum, or omitting any output. no joy :(
#include <iostream>
#include <string>
...
I don't think so. At least not in that respect. I have probably put you wrong by using the terminology "duplicate". It only wants the natural numbers. so you don't want to repeat a natural number. At...
Write a program which calculates the sum of natural numbers which are divisible by 3 and 5 less than the number given as input.
for ex.
1) If user input 10 then output will be 23.
2) If user...
Thanks guys, obviously bit off more than I could chew. My tutorials had explained how to save a simple object to binary file using write/read. My class contains linked lists of objects and vectors of...
Hi,
I was hoping to get some help to understand why I have coded this so poorly. I have re written the code below to demonstrate the problem I face. A really good indicator that something is wrong...