Wednesday 9 August 2017

Jquery class selector

You can select a HTML tag with its class name which is used by tag. When you know class name then you can add custom HTML from a function of java script using jquery class selector.

<html>
<head>
    <title>Girfa Student Help</title>
    <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.2.1.min.js"></script>
    <style>
        .para
        {
            text-align:center;

Tuesday 8 August 2017

2d Array Compare

Q : Write a function that returns 1 if the two matrices passed to it as argument are equal and 0
otherwise.

Solution : 


#include<stdio.h>
#include<conio.h>
#define ROW 2
#define COL 2
int compare(int a1[ROW][COL],int a2[ROW][COL]);
void main()
{
     int ar1[ROW][COL],ar2[ROW][COL],r,c;
     clrscr();

Jquery Page Scroller



Jquery Page Scroller


Page scroller make your web page design more attractive and formal because when a user want see other part of your page, then  he/she need to scroll page up or down using scroll bar or mouse wheel which was accepted before of jquery. Now if we have jquery then why we used traditional page design.So scroller you page using jquery.

Page scroller also helps to design single page website.

Scroll to Top of window

$('html, body').animate({ scrollTop: 0 }, 0);
$('html, body').animate({ scrollTop: 0 }, 'slow');


Scroll to selected area of web page

function Trans(id)
        {
            $('html, body').animate({

Monday 7 August 2017

Average Age Calculation with dynamic structure array

Q : Write a program which asks the user to enter the name and age of persons in his group. The numbers of persons is not known to the user in the beginning of the program. The user keeps on entering the data till the user enters the age as zero. The program finally prints the average
age.

Solution :

#include<stdio.h>
#include<conio.h>
typedef struct stu
{
      char name[20];
      int age;
      struct stu * next;