14 Posted Topics
Re: you make struct Employee has(id ,name,salary,....) and make every Employee as node in linked list then save linked list into file after fill some data then read data from file and you can sort data by bubble sort : (if you need numeric sort then sort nodes by id ) … | |
javascript code : $("input#input_field[name=brithday]").datepicker({ dateFormat: 'dd-M-yy', showAnim: 'slide', changeMonth: true, changeYear: true, yearRange: '1990:2020' }); jsp code : <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Profile</title> <link rel="stylesheet" href="css/style.css" type="text/css"> <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" /> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script> <script type="text/javascript" src="JS/javascript.js"></script> </head> <body> <% %> <div> <div class="blackDiv"> </div> <div class="whiteDiv"> … | |
Re: if your operating system is ubuntu sudo apt-get remove phpunit sudo pear upgrade PEAR sudo pear install pear.phpunit.de/PHPUnit sudo pear upgrade pear sudo pear channel-discover pear.phpunit.de sudo pear channel-discover component.ez.no sudo pear channel-discover components.e sudo pear channel-discover pear.symfony-project.com sudo pear channel-discover pear.symfony.com sudo pear update-channels sudo pear update-all sudo pear … | |
i had make php file into it function [getLink()] make connection with mysqli_connect and return link of connection to use it in another php file to get result from database with mysqli_query() connection.php ` <?php $userName="root"; $serverName="localhost"; $userPassword="*****"; $nameOfDataBase="ITI_System"; function getLink(){ $link=@mysqli_connect($serverName,$userName,$userPassword,$nameOfDataBase); if(!$link){ echo "connection Error".mysqli_connect_errno(); } return $link; } … ![]() | |
Re: mysql_query="INSERT INTO mission (acft, to, from, payload, amount, route, majcom, event, type, admin) VALUES ('$airframeSave', '$icaoT', '$icaoF', '$payload', '$payloadA', '$route', '$majcom', '$event', '$type', '$admin')"; this mysql query take your variables as strings not variables as you forget concatenation of your variables into mysql query <?php sql_query='INSERT INTO mission (acft, to, … | |
Re: because you make sql statement into else statement if ($_REQUEST["name"]<>'') { $search_name = " AND (firstName LIKE '%".mysql_real_escape_string($_REQUEST["name"])."%')"; } else { $sql = "SELECT * FROM tblclients WHERE clientID > 0".$search_policy.$search_surname.$search_name; } sql statement excute only when condition if be false in if ($_REQUEST["name"]<>'') correct is : if ($_REQUEST["policyNum"]<>'' && … | |
Re: you forget write return 0 into end of main function int main() { return 0; } | |
Re: you can make struct called complex used to represent complex number #include<stdio.h> #include<stdlib.h> struct complex { int real,imag; }; int main() { struct complex x,y; printf("Please enter the two real and imaginary complex numbers (a+jb) :\n"); printf("real number:"); scanf("%d",&x.real); printf("\nImaginary number:"); scanf("%d", &x.imag); printf("Please enter the next two real and … | |
Re: how you arange output ??? i mean why 8 print as fist element in output when n=2 ????????????????? | |
Re: what is mean suffix array ? is this code is work? | |
Re: first your code is not readable (this problem you must learn to make your code readable by using spaces and tabs in your code) | |
Re: i think we use int main(int argc,char**argv) when we don`t need user interface to input arguments if you enter arguments by compiler program with this code #include<stdio.h> #include<conio.h> int main(int argc,char **argv) { clrscr(); printf("\n%d",argc); getch(); return 0; } will output number of your arguments which you input | |
Re: hi iMARUF & deceptikon iMARUF code can used after i change it and make strcat for two strings #include<stdio.h> #include<conio.h> #include<stdlib.h> int xstrlen(char *); char* xstrcat(char *,char *); void main() { char source[]="Sarker"; char target[]="Maruf"; char*TotalName; clrscr(); TotalName=xstrcat(target,source); printf("Source String: %s\nTarget String: %s\n",source,target); printf("Total String: %s",TotalName); getch(); } int xstrlen(char … | |
The End.