Posts

CSS font Size tutorial

Image
 

Inline, Internal & External CSS

Image
watch the video for source code-

Change Background color of HTML file

<html>     <head>         <title>             background color         </title>     </head>     <body bgcolor="coral">         <h1>             Hello There         </h1>     </body> </html> My Youtube Channel

Paragraph & Text formatting in HTML webpage

This is video shows  how to use "src" tag with various other attributes   To view   Program , Visit my youtube Channel---> Click Here

Learn How to insert image in your HTML webpage

This is video shows  how to use "src" tag with various other attributes   To view   Program , Visit my youtube Channel---> Click Here

Java Program to Add two numbers.

To view program of Addition , Visit my youtube Channel---> Click Here

Java Program to print any matter

public class Program { public static void main(String[] args) { System.out.println("Hi, This is Programmer"); } } _____________________________________________ you can also visit my youtube channel--> Write Hello World using java || Notepad || Command Prompt

C++ Program to print any Matter'

#include<iostream.h> #include<conio.h> void main() { clrscr(); cout<<"Hello Future Programmers.."; getch(); } In c++, "cout" is used to display output..

C Program to read a file with getc using while loop

#include<stdio.h> #include<conio.h> void main() { FILE *fp; char ch; clrscr(); fp=fopen("abc.txt","r"); while(EOF!=(ch=getc(fp))) { printf("%c",ch); } getch(); } Note- The above file contains word "hello"

Circle

C program to draw circle on Screen- Example #include<stdio.h> #include<graphics.h> #include<conio.h> void main() { int gd=DETECT, gm; clrscr(); initgraph(&gd,&gm,"c:\\turboc3\\bgi"); circle(50,60,30);      //circle(int x,int y,radius); getch(); }

rectangle from line()

C program to make rectangle using line function- #include<graphics.h> #include<conio.h> void main() { int gd=DETECT, gm; clrscr(); initgraph(&gd,&gm,"c:\\turboc3\\bgi"); setcolor(3); line(30,15,100,15); line(30,100,30,15); line(30,100,100,100); line(100,100,100,15); getch(); }

Line

C program to make line- #include<graphics.h> #include<conio.h> void main() { int gd=DETECT, gm; clrscr(); initgraph( & gd, & gm,"c:\\turboc3\\bgi"); line(30,15,100,15); getch(); }

C program to plot random color dots on screen

Image
Source Code- #include<graphics.h> #include<conio.h> void main() { int gd=DETECT, gm, i; clrscr(); initgraph(&gd,&gm,"c:\\turboc3\\bgi"); for(i=1;i<=15;i++) { putpixel(20+i*15,30,i); } getch(); closegraph(); } output-

putpixel in c

Image
Function name - putpixel Definition-  putpixel is used to plot a dot on screen at specified position with specified colour. sy ntax- putpixel(int x,int y,pixelcolor); Example c program for putpixel- #include<graphics.h> #include<conio.h> void main() { int gd=DETECT, gm; clrscr(); initgraph(&gd,&gm,"c:\\turboc3\\bgi"); putpixel(20,30,4); getch(); closegraph(); } Output- As you can see red colour dot is placed at (20,30) position.
Image
Text Mode in C- In text mode, the text screen is divided into cells with a width of 40 or 80 columns and height of 25, 43 or 50 lines or rows. In a screen of 80×25 there will be total 2000 cells. Every cell used for display consists of two things, one is the character to be displayed and the other is attribute associated with it. Here the attribute is just a colour, intensity etc. Considering the following figure of resolution 80×25, the following gives the look of 80 columns and 25 lines or rows. In above screen 80 characters can be displayed at a time, such that there are 25 lines so that total 2000 (80×25) characters can be displayed at a time. The co-ordinate of left upper corner is (1,1). And the right upper corner is (80,1). In general comparison (x,y) x indicates the column numbers from left to right and y indicates the rows or line number from top to bottom. Here, the co-ordinate of bottom left corner is (1,25) and the bottom right corner is (80,25).

C program to write in text file

C program to write in text file #include<stdio.h> #include<conio.h> void main() { FILE *fp; clrscr(); fp=fopen("abc.txt","w"); fputs("This is Tutorial",fp); if(fp==NULL) { printf("file can't be created"); } else { printf("contents written in file"); } getch(); }

c program to create a blank text file

Image
C program to create a blank text file in write mode. blank file can be seen in 'BIN' folder.

c program for swapping two numbers without using third variable.

Image
here, lets take an example- a=a+b a=3+5=8 b=a-b b=8-5=3 a=a-b a=8-3=5 Thus, swapping done in this way.

DML PRE-COMPILER

Dml pre-compiler is a sub program or module of the complex s/w dbms. Dml stands for data manipulation language, which is used for the management of database. Dml is a converter acts like a translator. It takes application programs as input. Then in interaction with query processor, it produces object code with respective application program. Normally, the application program contains DML statements. It also takes system routines which are provided by the application programmers to produce the object code.
To listen to song on youtube on repeat without having to keep pressing "replay" at the end, add 'repeat' between 'www.youtube' and '.com'