Tuesday, July 28, 2015

HTML Links


HTML Links

HTML links are defined with the <a> tag:
<a href="http://alltopicstudy.blogspot.in">this is a link</a>

HTML Versions,HEADING,PARAGRAPHS

HTML Versions

Since the early days of the web, there have been many versions of HTML:

VersionYear
HTML       1991
HTML 2.01995
HTML 3.21997
HTML 4.011999
XHTML2000
HTML52014



HTML Headings

HTML headings are defined with the <h1> to <h6> tags:
<h1>hii,welcome html class</h1>
<h2>hii,welcome html class</h2>
<h3>hii,welcome html class</h3>
<h4>hii,welcome html class</h4>
<h5>hii,welcome html class</h5>
<h6>hii,welcome html class</h6>

                 

HTML Paragraphs

HTML paragraphs are defined with the <p> tag:
<P>hii,welcome html class</P>

HTML FRIST CLASS

HTML

HTML is a markup language for describing web documents (web pages).

  • HTML stands for Hyper Text Markup Language
  • A markup language is a set of markup tags
  • HTML documents are described by HTML tags
  • Each HTML tag describes different document content
<!DOCTYPE html>
<html>
<head>
<title>HOME</title>
</head>
<body>

<h1>hellooo</h1>
<p>This is a paragraph.</p>

</body>
</html>

window.alertin javascript

Using window.alert()

You can use an alert box to display data:

Example

<!DOCTYPE html>
<html>
<body>

<h1>My First Web Page</h1>
<p>My first paragraph.</p>

<script>
window.alert(5 + 6);
</script>

</body>
</html>

Sunday, July 26, 2015

assignment operators

Assignment Operators 

There are following assignment operators supported by C#: 

=           Simple assignment operator, Assigns values from right side operands to left side operand
             C = A + B assigns value of A + B into C
+=       Add AND assignment operator, It adds right operand to the left operand and assign the result               to left operand   C += A is equivalent to C = C + A
-=       Subtract AND assignment operator, It subtracts right operand from the left operand and assign            the result to left operand  C -= A is equivalent to C = C – A
*=      Multiply AND assignment operator, It multiplies right operand with the left operand and assign            the result to left operand  C *= A is equivalent to C = C * A
/=        Divide AND assignment operator, It divides left operand with the right operand and assign the            result to left operand  C /= A is equivalent to C = C / A
%=      Modulus AND assignment operator, It takes modulus using two operands and assign the                       result to left operand  C %= A is equivalent to C = C % A
<<=     Left shift AND assignment operator C <<= 2 is same as C = C << 2
>>=   Right shift AND assignment operator C >>= 2 is same as C = C >> 2
&=     Bitwise AND assignment operator C &= 2 is same as C = C & 2
^=      bitwise exclusive OR and assignment operator C ^= 2 is same as C = C ^ 2
|=      bitwise inclusive OR and assignment operator C |= 2 is same as C = C | 2

Example 

The following example demonstrates all the assignment operators available in C#:

using System;
namespace OperatorsAppl
{
    class Program
    {
        static void Main(string[] args)
        {
            int a = 21;
            int c;
            c = a;
            Console.WriteLine("Line 1 - =  Value of c = {0}", c);
            c += a;
            Console.WriteLine("Line 2 - += Value of c = {0}", c);
            c -= a;
            Console.WriteLine("Line 3 - -=  Value of c = {0}", c);
            c *= a;
            Console.WriteLine("Line 4 - *=  Value of c = {0}", c);
            c /= a; 
            Console.WriteLine("Line 5 - /=  Value of c = {0}", c);  
            c = 200; 
            c %= a; 
            Console.WriteLine("Line 6 - %=  Value of c = {0}", c);  
            c <<= 2; 
            Console.WriteLine("Line 7 - <<=  Value of c = {0}", c);  
            c >>= 2; 
            Console.WriteLine("Line 8 - >>=  Value of c = {0}", c);  
            c &= 2; 
            Console.WriteLine("Line 9 - &=  Value of c = {0}", c);  
            c ^= 2; 
            Console.WriteLine("Line 10 - ^=  Value of c = {0}", c);  
            c |= 2; 
            Console.WriteLine("Line 11 - |=  Value of c = {0}", c); 
            Console.ReadLine(); 
        } 
    } 
}


















Thursday, July 23, 2015

QUES PAPAR

ARRAY CLASS

Properties of the Array Class The following table describes some of the most commonly used properties of the Array class:
1 IsFixedSize
       Gets a value indicating whether the Array has a fixed size.
2 IsReadOnly
          Gets a value indicating whether the Array is read-only.
3 Length
        Gets a 32-bit integer that represents the total number of elements in all the dimensions of the Array.
4 LongLength
     Gets a 64-bit integer that represents the total number of elements in all the dimensions of the Array.
5 Rank
    Gets the rank (number of dimensions) of the Array.
Methods of the Array Class
1.       Clear
Sets a range of elements in the Array to zero, to false, or to null, depending on the element type.
2.Copy
(Array, Array, Int32) Copies a range of elements from an Array starting at the first element and pastes them into another Array starting at the first element. The length is specified as a 32-bit integer.
3.GetLength
Gets a 32-bit integer that represents the number of elements in the specified dimension of the Array.
4.GetLongLength
 Gets a 64-bit integer that represents the number of elements in the specified dimension of the Array.
5.GetLower
Bound Gets the lower bound of the specified dimension in the Array.
6. Reverse(Array)
 Reverses the sequence of the elements in the entire one-dimensional Array.
7.Sort(Array)

Sorts the elements in an entire one-dimensional Array using the IComparable implementation of each element of the Array.

c# in string

In C#, you can use strings as array of characters. However, more common practice is to use the string keyword to declare a string variable. The string keyword is an alias for theSystem.String class.
Methods of the String Class

1.       public static int Compare( string strA, string strB )
Compares two specified string objects and returns an integer that indicates their relative position in the sort order.
2.        public static string Concat( string str0, string str1 )= Concatenates two string objects.
3.       public static string Concat( string str0, string str1, string str2 )= Concatenates three string objects.
4.       public static string Concat( string str0, string str1, string str2, string str3 ) =Concatenates four string objects.
5.       public static string Copy( string str ) =Creates a new String object with the same value as the specified string.
6.       public static string Join( string separator, params string[] value ) =Concatenates all the elements of a string array, using the specified separator between each element.
7.       public string Replace( char oldChar, char newChar )= Replaces all occurrences of a specified Unicode character in the current string object with the specified Unicode character and returns the new string.
8.        public string Replace( string oldValue, string newValue )=Replaces all occurrences of a specified string in the current string object with the specified string and returns the new string.

9.       public string Replace( char oldChar, char newChar ) Replaces all occurrences of a specified Unicode character in the current string object with the specified Unicode character and returns the new string. 

Sunday, July 12, 2015

pic






From IN EXCEL Using VBA

FROM in EXCEL Using Visual Basic File

From IN EXCEL Using VBA

downlaod file

FROM in EXCEL Using Visual Basic

 
FROM in EXCEL Using Visual Basic



CODING FOR SAVE BUTTON 

(excel From )

Private Sub CommandButton1_Click()
Dim rowcount As String
rowcount = Worksheets("sheet1").Range("A1").CurrentRegion.Rows.Count
With Range("a1")
.Offset(rowcount, 0).Value = Me.TextBox1.Value
End With
Dim rowcount2 As String
rowcount2 = Worksheets("sheet1").Range("b1").CurrentRegion.Rows.Count
With Range("b1")
.Offset(rowcount, 0).Value = Me.TextBox2.Value
End With
Dim rowcount3 As String
rowcount3 = Worksheets("sheet1").Range("c1").CurrentRegion.Rows.Count
With Range("c1")
.Offset(rowcount, 0).Value = Me.ComboBox1.Value
End With
Dim rowcount4 As String
rowcount4 = Worksheets("sheet1").Range("d1").CurrentRegion.Rows.Count
With Range("d1")
.Offset(rowcount, 0).Value = Me.TextBox3.Value
End With
Dim rowcount5 As String
rowcount5 = Worksheets("sheet1").Range("e1").CurrentRegion.Rows.Count
With Range("e1")
.Offset(rowcount, 0).Value = Me.TextBox4.Value
End With
Dim rowcount6 As String
rowcount6 = Worksheets("sheet1").Range("f1").CurrentRegion.Rows.Count
With Range("f1")
.Offset(rowcount, 0).Value = Me.TextBox5.Value
End With
If Me.TextBox1.Value = "" Then
MsgBox "Fill the Entry!", vbExclamation, "Warning"
Me.TextBox1.SetFocus
Exit Sub
End If
If Me.TextBox2.Value = "" Then
MsgBox "Fill the Entry!", vbExclamation, "Warning"
Me.TextBox2.SetFocus
Exit Sub
End If
If Me.TextBox3.Value = "" Then
MsgBox "Fill the Entry!", vbExclamation, "Warning"
Me.TextBox3.SetFocus
Exit Sub
End If
If Me.TextBox4.Value = "" Then
MsgBox "Fill the Entry!", vbExclamation, "Warning"
Me.TextBox4.SetFocus
Exit Sub
End If
If Me.TextBox5.Value = "" Then
MsgBox "Fill the Entry!", vbExclamation, "Warning"
Me.TextBox5.SetFocus
Exit Sub
End If
If Me.ComboBox1.Value = "" Then
MsgBox "Fill the Entry!", vbExclamation, "Warning"
Me.ComboBox1.SetFocus
Exit Sub
End If
End Sub

cancel button coding

Private Sub CommandButton2_Click()
Unload Me
End Sub 


attan sheet

excel

There are different sorts of cell references.  These are:
• Relative • Absolute • Mixed
A relative reference will change column and row numbers as it is copied to other cells.  Think of it as an original instruction being to go in a certain direction e.g. 2 rows up and 2 columns across from your current position.  When this instruction is copied elsewhere, it will still refer to 2 rows up and 2 columns across from your new current position.
An absolute reference is one that does not change.  If you refer to a cell in a certain row and column and then copy that reference elsewhere, it will still refer to exactly the same cell or range.
A mixed reference is one that is half relative and half absolute.
An absolute address is defined with the use of the “$” symbol.  This can be typed in at the time of creating the formula, or by editing the cell afterwards.
Examples of relative and absolute addressing:
Relative A4 A4:B5
Absolute $A$4 $A$4:$B$5
Mixed $A4 or A$4 $A4:B$5
The “$” sign can be hand typed or inserted by pressing the keyboard shortcut F4.  As you press F4 the cell address will cycle between the four variations of an address – for example A4 would cycle between:
   A4    $A4    A$4    $A$4 

attendance sheet


Friday, July 10, 2015

c

Comments
Comments are like helping text in your C program and they are ignored by the compiler. They start with /* and terminates with the characters */ as shown below:
/* my first program in C */
You cannot have comments within comments and they do not occur within a string or character literals.
Identifiers
A C identifier is a name used to identify a variable, function, or any other user-defined item. An identifier starts with a letter A to Z or a to z or an underscore _ followed by zero or more letters, underscores, and digits (0 to 9).
C does not allow punctuation characters such as @, $, and % within identifiers. C is a case sensitive programming language. Thus, Manpower and manpower are two different identifiers in C. Here are some examples of acceptable identifiers:
mohd       zara    abc   move_name  a_123 myname50   _temp   j     a23b9      retVal
Keywords
The following list shows the reserved words in C. These reserved words may not be used as constant or variable or any other identifier names.

  • auto 
  • else
  •  Long switch 
  • break
     enum register typedef 
  • case extern return union 
  • char float short unsigned 
  • const for signed void 
  • continue goto sizeof volatile 
  • default if static while 
  • do int struct _packed 
  • double       

C Basic Syntax

C Basic Syntax
This chapter will give details about all the basic syntax about C programming language including tokens, keywords, identifiers, etc.  You have seen a basic structure of C program, so it will be easy to understand other basic building blocks of the C programming language.
Tokens in C
A C program consists of various tokens and a token is either a keyword, an identifier, a constant, a string literal, or a symbol. For example, the following C statement consists of five tokens:
printf("Hello, World! \n");
The individual tokens are:
printf ( "Hello, World! \n" ) ; Semicolons ;
In C program, the semicolon is a statement terminator. That is, each individual statement must be ended with a semicolon. It indicates the end of one logical entity.
For example, following are two different statements:
printf("Hello, World! \n"); return 0; 

c

1. The first line of the program #include <stdio.h> is a preprocessor command, which tells a C compiler to include stdio.h file before going to actual compilation.
2. The next line int main() is the main function where program execution begins.
3. The next line /*...*/ will be ignored by the compiler and it has been put to add additional comments in the program. So such lines are called comments in the program.
4. The next line printf(...) is another function available in C which causes the message "Hello, World!" to be displayed on the screen.
5. The next line return 0; terminates main()function and returns the value 0.
Compile & Execute C Program
Let’s look at how to save the source code in a file, and how to compile and run it. Following are the simple steps:
1. Open a text editor and add the above-mentioned code.
2. Save the file as hello.c
3. Open a command prompt and go to the directory where you saved the file.
4. Type gcc hello.c and press enter to compile your code.
5. If there are no errors in your code, the command prompt will take you to the next line and would generate a.out executable file.
6. Now, type a.out to execute your program.
7. You will be able to see "Hello World" printed on the screen
$ gcc hello.c
$ ./a.out
Hello, World!
Make sure that gcc compiler is in your path and that you are running it in the directory containing source file hello.c. 

c

Before we study basic building blocks of the C programming language, let us look a bare minimum C program structure so that we can take it as a reference in upcoming chapters.
C Hello World Example
A C program basically consists of the following parts:
 Preprocessor Commands
 Functions
 Variables
 Statements & Expressions
 Comments
Let us look at a simple code that would print the words "Hello World":
#include <stdio.h>
int main() {    /* my first program in C */  
 printf("Hello, World! \n");      
 return 0;
 }