[Solved] Incomplete type is not allowed in swap program

The below program does what you want: #include<stdio.h> #include<conio.h> #include<string.h> void swapping(char s1[],char s2[]) { char temp[30]; //create an array of char in order to store a string strcpy(temp,s1); strcpy(s1,s2); strcpy(s2,temp); //use strcpy to swap strings } int main (void) { char st1[30],st2[30]; printf(“Enter the first string”); scanf(“%s”,st1); printf(“Enter the second string”); scanf(“%s”,st2); //the & … Read more

[Solved] php variable changes when clicked on html link [closed]

Try this, is PHP: <?php if (isset($_GET[‘money’])) { $money = rob_shop($_GET[‘money’]); echo ‘You now have: ‘.$money.'<br>’; } else { $money = 100; echo ‘You now have: ‘.$money.'<br>’; } echo ‘<a href=”https://stackoverflow.com/questions/27303586/?money=”.$money .'”>rob a shop</a>’; function rob_shop($money){ $money = $money + 75; return $money; } ?> But the best way to do it is with ajax … Read more

[Solved] I want to remove repetative elements of an array without using any in-built methods of javascript. When remove a then with a, A also to be removed

I want to remove repetative elements of an array without using any in-built methods of javascript. When remove a then with a, A also to be removed solved I want to remove repetative elements of an array without using any in-built methods of javascript. When remove a then with a, A also to be removed

[Solved] ( ! ) Parse error: syntax error, unexpected ‘}’ in C:\wamp\www\mybbeklents\rapor\gonder.php on line 11 [duplicate]

You are missing semicolons: if($ad==””){header(“location:index.php?kls=1″);}else {if($email==””){header(“location:index.php?kls=2″);}else {if($mesaj==””){header(“location:index.php?kls=3″);}else {if($kiriklink==””){header(“location:index.php?kls=4”);}else {mysql_query(“INSERT INTO bildirim (`ad`,`email`,`acklama`,`kiriklink`,`tarih`) VALUES (‘$ad’,’$email’,’$mesaj’,’$kiriklink’,now())”);header(“location:index.php?kls=5″);}}}} Btw. if you don’t use, then you should start using some IDE like netbeans or phpdesigner, it will show you where error is NEW CODE: if($ad==””){header(“location:index.php?kls=1″);}else {if($email==””){header(“location:index.php?kls=2″);}else {if($mesaj==””){header(“location:index.php?kls=3″);}else {if($kiriklink==””){header(“location:index.php?kls=4”);}else { $query = “INSERT INTO bildirim (`ad`,`email`,`acklama`,`kiriklink`,`tarih`) VALUES (‘$ad’,’$email’,’$mesaj’,’$kiriklink’,now())”; $result = mysql_query($query); … Read more

[Solved] how to reverse a sequence [closed]

For Sql Sever Select Row_Number() Over(Order By [EMP_NO] Desc) as Emp_No, EMP_NAME from TableName Order By [Emp_No] Desc Sql Fiddle Demo For Oracle Sql Developer Select Row_Number() Over(Order By “EMP_NO” Desc) as “Emp_No”, “EMP_NAME” from Table1 Order By “Emp_No” Desc Sql Fiddle Demo 18 solved how to reverse a sequence [closed]

[Solved] javascript get the current class number [closed]

Its Very Simple: Just Use .html() , .index() , .text() with the selector Like This Fiddle: http://jsfiddle.net/PzWxs/5/ Here is the Code : var currentClassValue = $(‘li.current’).html(); alert(currentClassValue); OR var currentClassValue = $(‘li.current’).index(); alert(currentClassValue); OR var currentClassValue = $(‘li.current’).text(); alert(currentClassValue); Use any one of the above you like 🙂 5 solved javascript get the current class … Read more

[Solved] Which is fastest? closest() vs manual traversing in jQuery [closed]

These do different things. .closest(‘.DivB’) will traverse the DOM tree up until it finds an element that matches the selector (probably none). .parent().next() will do what it looks like it will do, find the parent then its next sibling. What you want is .closest(‘td’).find(‘.DivB’) and don’t worry about micro-optimizations. It won’t break when the DOM … Read more

[Solved] What language should i use for dynamic client side and server side form validation? [closed]

Easiest option for me, is to learn PHP for server-side validation. If you want to add client-side validation (which is not a “MUST”, but is a “PLUS”), you can use Javascript. Avoid using Ajax, jQuery or any kind of advanced libraries and functionalities until you get a basic understanding of what happens where. 4 solved … Read more

[Solved] about if and while statement in java programming? [closed]

You can have an if statement in a while statement, etc, and instead of doing else, you can do: if(!bool) return “bool isn’t true”; Instead of doing if(bool){}else{return “bool isn’t true”;} Replace bool with whatever value you want to compare. You may replace bool with things like x>y(if x is greater than y) or a … Read more