…] = 1; array [1] = 1 ; array [2] = 1; array [3] = 1; array [4] = 1; array [5] = 1; array… Discussion Thread by Dietrich_1 in Software Development
6 Days Ago
…] = 1; array [1] = 1 ; array [2] = 1; array [3] = 1; array [4] = 1; array [5] = 1; array… Discussion Thread by Dietrich_1 in Software Development
The problem with your findMean method is that you aren't using the passed in array at all. You're ignoring it completely, creating your own array, doing the correct maths on that and returning the result. Bu tthat result is incorrect when considering the … Reply by hericles
6 Days Ago
… be set $headers = 'MIME-Version: 1.0' . "\r\n"…: text/html; charset=iso-8859-1' . "\r\n"; $headers… Discussion Thread by nicholas1981 in Web Development
php
@sriram_2, you revived a SIX YEAR OLD thread to post severely flawed and **VERY DANGEROUS CODE**? I am not even going to get into everything wrong with what you posted. You need to do a lot more learning before you post a wall of code to "help"… Reply by benanamen
6 Days Ago
…= "red"; $quantity = 1; if (isset($_GET['lang'])) { $…[color] => red [quantity] => 1 ) ) ) [3] => Array ( … Discussion Thread by andreiviziru in Programming
php
6 Days Ago
… WARN engine webpack@2.2.1: wanted: {"node":"…;node":"5.4.1","npm":"…; npm ERR! node v5.4.1 npm ERR! npm v3.3… Discussion Thread by SimonIoa in Mobile Development
OK Fixed it!!! Reply by SimonIoa
6 Days Ago
…;/i>' : ( storyReactionNum >= 1 ? comment = 'New!<i class…;></i>' : comment = '1.0' ) ) ) )); $(".comment-info… Discussion Thread by Royal_3 in Web Development
5 Days Ago
…;/i>' : ( storyReactionNum >= 1 ? comment = 'New!<i class…;></i>' : comment = '1.0' ) ) ) )); $(".comment-info… Discussion Thread by Royal_3 in Web Development
You're passing your comment string into the .comment-info div as text. You need it to render as HTML so instead try: `$(".comment-info").html(comment);` Reply by hericles
5 Days Ago
…; } if (isalpha(c)) { offset=1; } if(offset==1) { sum ++; for(i=0… Discussion Thread by 小名 in Software Development
c
5 Days Ago
…; } if (isalpha(c)) { offset=1; } if(offset==1) { sum ++; for(i=0… Discussion Thread by 小名 in Software Development
c
It looks to me that you're trying to return a pointer to a variable that is going out of scope as soon as the function ends. Try declaring the array in the calling function and returning void instead: void getword (char temp[total], char max[total… Reply by tinstaafl
5 Days Ago
…; } if (isalpha(c)) { offset=1; } if(offset==1) { sum ++; for(i=0… Discussion Thread by 小名 in Software Development
c
Also consider your uninitializaed variable sum on line 9. You should initialize it to something. I assume you want it initialized to 0. But right now you are incrementing an uninitialized variable on line 12, so you could get jibberish. Don't assume … Reply by AssertNull
5 Days Ago
I tried to run an Ionic 3 project from existing files using not C++ but Apache/Cordova and i am getting these errors. Idid a Typescript project works fine. But Cordova won't run with Javascript? Severity Code Description Project File Line Suppression … Discussion Thread by SimonIoa in Mobile Development
…src\pages\login\login.ts 1 Active Error Error: Current …a Cordova-based project. ionicLast1 1 Error TS2307 Cannot find module…pages\welcome\welcome.module.ts 1 Active Error TS2307 Cannot find…master\src\providers\common.ts 1 Active Error TS2307 Cannot … Reply by SimonIoa
4 Days Ago
…="bs-example-navbar-collapse-1"> <form class… Discussion Thread by wikit in Web Development
4 Days Ago
… kernel DB 10 DUP(1) input DB 1, 2, 3, 4, 5…, 7 DIV BH MOV [DI+1], AL MOV [DI+2], AL… Discussion Thread by aya_5 in Programming
Hmmm... Last time I did any 8086 programming was..., Well, a long time ago. Your error message seems to give it away though, forward reference. If I recall correctly, subroutines must be declared before they are called. Reply by itnavigate
4 Days Ago
…TRISCbits.TRISC6 = 1; RC1STAbits.CREN=1; TX1STAbits.TXEN=1; // Baud…; } eusartTxBufferRemaining--; } PIE3bits.TXIE = 1; } char getch(void) { return … Discussion Thread by ajit.nayak in Software Development
The output doesn't look like garbage to me, it looks like the input characters separated by a line feed character. Possible you have a '\n' in a loop. Reply by itnavigate
4 Days Ago
When using fgets to read from stdin how do you stop reading from stdin? Discussion Thread by COKEDUDE in Software Development
c
…. It stops when either (n-1) characters are read, the newline… Reply by rproffitt
4 Days Ago
… file or assembly 'log4net, Version=1.2.10.0, Culture=neutral… Discussion Thread by zebnoon1 in Software Development
3 Days Ago
…; } if (isalpha(c)) { offset=1; } if(offset==1) { sum ++; for(i=0… Discussion Thread by 小名 in Software Development
c
…; } if (isalpha(c)) { offset=1; } if(offset==1) { sum ++; for(i=0… Reply by 小名
3 Days Ago
… = new int[ranges.length - 1]; int mark; int largest = 0… <= ranges[j]) inRange[j-1]++; break; if (mark <… Discussion Thread by Moksuhd in Software Development
3 Days Ago
My second while condition is being ignored and I don't understand why. I would think I have 1 and 0 = 0 so it would break out. while(fgets(line, sizeof line, stdin) && sscanf_counter != 2) { } Discussion Thread by COKEDUDE in Software Development
c
3 Days Ago
My second while condition is being ignored and I don't understand why. I would think I have 1 and 0 = 0 so it would break out. while(fgets(line, sizeof line, stdin) && sscanf_counter != 2) { } Discussion Thread by COKEDUDE in Software Development
c
… and right parentheses on line 1. Did you mean to compare… Reply by rproffitt
3 Days Ago
…=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width…; href="css/jquery.mobile-1.4.5.css">…;script src="lib/jquery-1.11.2.min.js"… src="lib/jquery.mobile-1.4.5.min.js"… Discussion Thread by maylynn in Mobile Development
2 Days Ago
…=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width…; href="css/jquery.mobile-1.4.5.css">…;script src="lib/jquery-1.11.2.min.js"… src="lib/jquery.mobile-1.4.5.min.js"… Discussion Thread by maylynn in Mobile Development
I wanted to it to display the username at the top corner like "Welcome, [Name]". Above are my home.html page. This is my login.js: (function () { "use strict"; var userid; var … Reply by maylynn
2 Days Ago
… = new int[ranges.length - 1]; int mark; int largest = 0… <= ranges[j]) inRange[j-1]++; break; if (mark <… Discussion Thread by Moksuhd in Software Development
In the first loop, you have a block so, I think it must be : do { // }while( //condition); In the second loop, I don't get the first line : mark += ranges.length; I think you must rethink a good part of the program.… Reply by Tarek_2
2 Days Ago
…;TBL_Department> { new TBL_Department{DepartmentID=1,Department="Aaa",Abbreviation… Discussion Thread by erum in Web Development
1 Day Ago
…=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width…; href="css/jquery.mobile-1.4.5.css">…;script src="lib/jquery-1.11.2.min.js"… src="lib/jquery.mobile-1.4.5.min.js"… Discussion Thread by maylynn in Mobile Development
> Not using any PHP page var url = serverURL() + "/login.php"; Reply by pty
1 Day Ago
… = new int[ranges.length - 1]; int mark; int largest = 0… <= ranges[j]) inRange[j-1]++; break; if (mark <… Discussion Thread by Moksuhd in Software Development
Yes - as above. In fact all your loops and if/else blocks need brackets. The code inside your loop line 15 will be executed for the "end of input" value (<=0), which will corrupt your results. Also `smallest` is initialised to zero, so `if … Reply by JamesCherrill
1 Day Ago
…two child form MenuStripControl-1 is on parents form …main_form)) then show MenuStripControl-1 menu Items only. But …parents form (main_form) MenuStripControl-1 menu Items only. It… i Hide the MenuStripControl-1 the automatically hide MenuStripControl-… Discussion Thread by Jayanta_1 in Software Development
1 Day Ago
Hello, In my project I have a form with many inputs and one object is using DropzoneJS to attach files. Since I store all the inputs when I post the form I need somehow to read the file names of the uploaded files in my server, currently I can only … Discussion Thread by klaus.veliu in Web Development
…-type: application/json'); $ds = DIRECTORY_SEPARATOR; //1 $storeFolder = 'files/tmp'; //2 if… Reply by klaus.veliu
1 Day Ago
…-01-18" where player = 1 and end_date is NULL; Query… OK, 1 row affected (0.07 sec…) Rows matched: 1 Changed: 1 Warnings: 0 This is not… set end_date = NULL where player = 1 and end_date is "2017… Discussion Thread by COKEDUDE in Databases
sql
1 Day Ago
…-01-18" where player = 1 and end_date is NULL; Query… OK, 1 row affected (0.07 sec…) Rows matched: 1 Changed: 1 Warnings: 0 This is not… set end_date = NULL where player = 1 and end_date is "2017… Discussion Thread by COKEDUDE in Databases
sql
"is" instead of "=". Reply by COKEDUDE
1 Day Ago