… is: 7 22 11 34 17 52 26 13 40 20… length of the sequence is 17. The longest hailstone sequence starting… up to 7 has length 17 The longest hailstone sequence starting… Discussion Thread by Sherwin_4 in Programming
c++
4 Weeks Ago
… is: 7 22 11 34 17 52 26 13 40 20… length of the sequence is 17. The longest hailstone sequence starting… up to 7 has length 17 The longest hailstone sequence starting… Discussion Thread by Sherwin_4 in Programming
c++
… is: 7 22 11 34 17 52 26 13 40 20… lenght of the sequence is 17. The largest number in the… Reply by Sherwin_4
4 Weeks Ago
Hello i am getting an error TypeError: data is null i can't find the error. js <script> $(document).ready(function() { username='<?php echo $_GET['public_username']; ?>'; apiBaseUrl='<?php echo $base_url; ?&… Discussion Thread by SimonIoa in Programming
… guess would be "Line 17" of the above Javascript… thrown: most likely in line 17 of the Javascript. Root cause… Reply by maba001
3 Weeks Ago
… is: 7 22 11 34 17 52 26 13 40 20… length of the sequence is 17. The longest hailstone sequence starting… up to 7 has length 17 The longest hailstone sequence starting… Discussion Thread by Sherwin_4 in Programming
c++
… up to 8 has length 17. The longest hailstone sequence starting… Reply by Sherwin_4
3 Weeks Ago
… is: 7 22 11 34 17 52 26 13 40 20… length of the sequence is 17. The longest hailstone sequence starting… up to 7 has length 17 The longest hailstone sequence starting… Discussion Thread by Sherwin_4 in Programming
c++
…: > 7 22 11 34 17 52 26 13 40 20… length of the sequence is 17. > The largest number in… up to 7 has length 17. > The longest hailstone sequence… Reply by AssertNull
3 Weeks Ago
Hello i am getting an error TypeError: data is null i can't find the error. js <script> $(document).ready(function() { username='<?php echo $_GET['public_username']; ?>'; apiBaseUrl='<?php echo $base_url; ?&… Discussion Thread by SimonIoa in Programming
Why not put a console.log right before if (data.length ... between existing line 16 and line 17 which echoes the details of data? Reply by maba001
3 Weeks Ago
… is: 7 22 11 34 17 52 26 13 40 20… length of the sequence is 17. The longest hailstone sequence starting… up to 7 has length 17 The longest hailstone sequence starting… Discussion Thread by Sherwin_4 in Programming
c++
Although it's true that you can omit the guard, I would argue for leaving it in. When you're reading a recursive method the first question is (how) does it Terminate? I would be very happy to see that right up front. For me readability trumps efficiency … Reply by JamesCherrill
3 Weeks Ago
… is: 7 22 11 34 17 52 26 13 40 20… length of the sequence is 17. The longest hailstone sequence starting… up to 7 has length 17 The longest hailstone sequence starting… Discussion Thread by Sherwin_4 in Programming
c++
The professor doesn't like to see the starting parameters change value in the function (same with the noncomment lines requirement). I'm not sure if this is a real world thing, but thats what he wants. I'm still trying to wrap my head around it. I was … Reply by Sherwin_4
3 Weeks Ago
… is: 7 22 11 34 17 52 26 13 40 20… length of the sequence is 17. The longest hailstone sequence starting… up to 7 has length 17 The longest hailstone sequence starting… Discussion Thread by Sherwin_4 in Programming
c++
Yes, in the past I have seen style guides and standards that deprecate re-using parameter variables,even if the language allows it. I don't know the reason, but maybe its to avoid confusing less-skilled programmers who may think that void fn(int a)… Reply by JamesCherrill
3 Weeks Ago
… is: 7 22 11 34 17 52 26 13 40 20… length of the sequence is 17. The longest hailstone sequence starting… up to 7 has length 17 The longest hailstone sequence starting… Discussion Thread by Sherwin_4 in Programming
c++
> I'm not sure if this is a real world thing If "real world" means "professional C++ programmers", no. > but thats what he wants. What the professor wants, the professor gets! > I'm still trying to wrap my head … Reply by AssertNull
3 Weeks Ago
… is: 7 22 11 34 17 52 26 13 40 20… length of the sequence is 17. The longest hailstone sequence starting… up to 7 has length 17 The longest hailstone sequence starting… Discussion Thread by Sherwin_4 in Programming
c++
Appreciat the advice everyone. I'll keep the information in mind. Reply by Sherwin_4
3 Weeks Ago
… is: 7 22 11 34 17 52 26 13 40 20… length of the sequence is 17. The longest hailstone sequence starting… up to 7 has length 17 The longest hailstone sequence starting… Discussion Thread by Sherwin_4 in Programming
c++
@AssertNull I remember you pointing out that when you inputted a certain value, that the last function in my program would give you an incorrect number. I'm not sure what is going on here to the point that occurs for certain number, but not all. It has … Reply by Sherwin_4
3 Weeks Ago
… is: 7 22 11 34 17 52 26 13 40 20… length of the sequence is 17. The longest hailstone sequence starting… up to 7 has length 17 The longest hailstone sequence starting… Discussion Thread by Sherwin_4 in Programming
c++
Can 't think of why you'd have no issues in Code Blocks. Try entering 2. You get good results from initialcomp_Num? Reply by AssertNull
3 Weeks Ago
… is: 7 22 11 34 17 52 26 13 40 20… length of the sequence is 17. The longest hailstone sequence starting… up to 7 has length 17 The longest hailstone sequence starting… Discussion Thread by Sherwin_4 in Programming
c++
When entered 9, I got a huge number at the end. I was able to see in noMachine this error: g++ -Wall -Wshadow -Wuninitialized -O -o hailstone hailstone.cpp hailstone.cpp: In function ‘int initialcomp_Num(int)’: hailstone.cpp:163:25: … Reply by Sherwin_4
3 Weeks Ago
… is: 7 22 11 34 17 52 26 13 40 20… length of the sequence is 17. The longest hailstone sequence starting… up to 7 has length 17 The longest hailstone sequence starting… Discussion Thread by Sherwin_4 in Programming
c++
So I gave topValue and initial value of 0. Now the problem seems to be the if statement in the for loop. I have to figure out what to do with the topValue if the initial and cal are equal to one another. The previous function was way easier to deal with. Reply by Sherwin_4
3 Weeks Ago
… is: 7 22 11 34 17 52 26 13 40 20… length of the sequence is 17. The longest hailstone sequence starting… up to 7 has length 17 The longest hailstone sequence starting… Discussion Thread by Sherwin_4 in Programming
c++
I figured it out. Also, is there a limit to accuracy of the sequence? Reply by Sherwin_4
3 Weeks Ago
… is: 7 22 11 34 17 52 26 13 40 20… length of the sequence is 17. The longest hailstone sequence starting… up to 7 has length 17 The longest hailstone sequence starting… Discussion Thread by Sherwin_4 in Programming
c++
Glad you figured it out. To go back to my earlier tips way back... > Every time you assign a new value to top, assign the value that resulted in the sequence of length top to start. Key word is "Every" from "Every time". … Reply by AssertNull
3 Weeks Ago
… is: 7 22 11 34 17 52 26 13 40 20… length of the sequence is 17. The longest hailstone sequence starting… up to 7 has length 17 The longest hailstone sequence starting… Discussion Thread by Sherwin_4 in Programming
c++
…++ + 2; // undefined behavior until C++17 f(i = -2, i = -2…); // undefined behavior until C++17 f(++i, ++i); // undefined behavior… until C++17, unspecified after C++17 i = ++i + i… Reply by JamesCherrill
2 Weeks Ago
… is: 7 22 11 34 17 52 26 13 40 20… length of the sequence is 17. The longest hailstone sequence starting… up to 7 has length 17 The longest hailstone sequence starting… Discussion Thread by Sherwin_4 in Programming
c++
I generally take the view that if I code something in a way that can result in "undefined behavior", I have a "bug", though definitions of "bug" vary. Whether C++ "suffers" from undefined behavior or whether that's … Reply by AssertNull
2 Weeks Ago
… is: 7 22 11 34 17 52 26 13 40 20… length of the sequence is 17. The longest hailstone sequence starting… up to 7 has length 17 The longest hailstone sequence starting… Discussion Thread by Sherwin_4 in Programming
c++
Yes, Java is pretty strict on making sure you have initialised variables - and the logic analysis it does to confirm that is pretty sophisticated, but in the end it goes for safety. "No surprises at run time" is a fundamental desire behind Java's… Reply by JamesCherrill
2 Weeks Ago
…); s1.addToSet(9); s1.addToSet(17); s2 = new Set(); s2.addToSet… Discussion Thread by Adam_35 in Software Development
2 Weeks Ago
… is: 7 22 11 34 17 52 26 13 40 20… length of the sequence is 17. The longest hailstone sequence starting… up to 7 has length 17 The longest hailstone sequence starting… Discussion Thread by Sherwin_4 in Programming
c++
LOL understood @JamesCherrill Reply by Sherwin_4
2 Weeks Ago
Good morning everyone, The library will be home, 0800 till 2100. I've been working on trying my loops in my hailstone sequence into recursions. It seem recursion can easrier to do, instead of creating loops. I say seem, because now I have come to halt … Discussion Thread by Sherwin_4 in Software Development
… 14 7 22 11 34 17 52 26 13 40 20… 14 7 22 11 34 17 52 26 13 40 20… 14 7 22 11 34 17 52 26 13 40 20… Reply by AssertNull
2 Weeks Ago
Good morning everyone, The library will be home, 0800 till 2100. I've been working on trying my loops in my hailstone sequence into recursions. It seem recursion can easrier to do, instead of creating loops. I say seem, because now I have come to halt … Discussion Thread by Sherwin_4 in Software Development
… should. I kept your line 17 as it was as far… Reply by AssertNull
2 Weeks Ago
… (Red Hat 4.4.7-17) .shstrtab .hash .dynsym .dynstr .gnu… (Red Hat 4.4.7-17) .shstrtab .hash .dynsym .dynstr .gnu… Discussion Thread by skullscript in Databases
5 Days Ago
… (Red Hat 4.4.7-17) .shstrtab .hash .dynsym .dynstr .gnu… (Red Hat 4.4.7-17) .shstrtab .hash .dynsym .dynstr .gnu… Discussion Thread by skullscript in Databases
Well, nobody here is going to analyze 5000+ lines of binary dump code. The first post indicating that a signal 11 (segfault) caused this problem is helpful. It means that the PHP code is either overwriting memory in the wrong places, or has run out of … Reply by rubberman
5 Days Ago
… (Red Hat 4.4.7-17) .shstrtab .hash .dynsym .dynstr .gnu… (Red Hat 4.4.7-17) .shstrtab .hash .dynsym .dynstr .gnu… Discussion Thread by skullscript in Databases
Hi Thanks for your reply. the php code is written by me and its just a simple login authentication script nothing else. I've never encounter this bug before(the system is more than a year Up and running) it just popup out of nowhere. Is it possible that… Reply by skullscript
5 Days Ago
…: views/countries_add.php Line Number: 17 A PHP Error was encountered… Discussion Thread by kaungzaythu in Web Development
How to search the catagories in the codeignitor I don't know how to explain I'm new one for the codeignitor so pls help me to find for eg: if we search in google search engine keyword used it shows suggestion like this how to do in codeignitor Reply by Prasanna_5
5 Days Ago
…: views/countries_add.php Line Number: 17 A PHP Error was encountered… Discussion Thread by kaungzaythu in Web Development
**@Prasanna_5** Hello, please open a new thread and search also the forum, this thread could help you: * https://www.daniweb.com/programming/web-development/threads/506840/autocomplete Reply by cereal
4 Days Ago
I have a form that creats a json array from user input data. Array ( [full_name] => First Name + Last Name [company_name] => Company Name [email] => Email [free_trial] => trial (Yes/No)… Discussion Thread by double_cola in Web Development
… = $form.find( '[data-itemid="17"]' ), $quota_monthly = $form.find( '[data… Reply by double_cola
2 Days Ago