Sunday, April 01, 2012

Add Two Matices

#include <stdio.h>
#include <conio.h>
void main()
{
int a[10][10], b[10][10], c[10][10], i, j, row, col;
printf("\nEnter number of rows and columns: ");
scanf("%d %d", &row, &col);
printf("\nEnter elements of Array A:\n");
for (i=0; i<row; i++)
for (j=0; j<col; j++)
scanf("%d", &a[i][j]);
printf("\nEnter elements of Array B:\n");
for (i=0; i<row; i++)
for (j=0; j<col; j++)
scanf("%d", &b[i][j]);
printf("\nElements of Matrix A:\n\n");
for (i=0; i<row; i++)
{
for (j=0; j<col; j++)
printf("\t%d", a[i][j]);
printf("\n\n");
}
printf("\nElements of Matrix B:\n\n");
for (i=0; i<row; i++)
{
for (j=0; j<col; j++)
printf("\t%d", b[i][j]);
printf("\n\n");
}
for (i=0; i<row; i++)
for (j=0; j<col; j++)
c[i][j] = a[i][j] + b[i][j];
printf("\nMatrix Addition is:\n\n");
for (i=0; i<row; i++)
{
for (j=0; j<col; j++)
printf("\t%d", c[i][j]);
printf("\n");
}
getch();
}

Monday, March 19, 2012

Exception error: Limit of jInternal Frames in NetBeans

There is a limit of jInternal frames on a jDesktopPane?
YES there is a limit of jInternal frames i.e. 20
Means you can add only 20 jInternal Frames on a jDesktop Pane. If you exceed the limit
then you see an event error or Class defination not find like that error:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: college/COLLEGE
at college.Login.Login(Login.java:257)
at college.Login.jButton1ActionPerformed(Login.java:221)
at college.Login.access$200(Login.java:25)
at college.Login$3.actionPerformed(Login.java:112)

Sunday, March 18, 2012

Dont Play with these...

Dont Play with IMOTIONS, TRUST, and FEELINGS of other PERSON........................​...