96579.medium 0

Wise Notes

Claimed by Blog_iconwisenotes.wordpress.com

Increase the traffic :Together we can win lots

7 months ago
There is a site called http://dlvr.it/ ,it will help bloggers to publish feeds and status to all social ,media when you made a new post to your blog. I will dlvr your feeds as you add mine, as a result both of us will get plenty of readers as well, do you like it? add my feed to http://dlvr.it/ and please send yours to me, i will take care of it.Together we can win lotsmy feed: http://manojs-aroundtheglobe.blogspot.com/feeds/posts/default

My First BlackBerry App

9 months ago
This is my very first Java program for my BlackBerry Curve. First I download the Java Development tool: The Eclipse plug in. and the Standard JDK 6 (Java Development Kit). After the completion of the program I understand how simple the development is. After successfully configured the Eclipse I just start my program. Under the source file you have two Java files.One for the main program and other for the Graphical User interface and one xml file. I am going to made some modification to...

Vector handling:Extracting Object from a Vector in Java

11 months ago
Vector is a class which can be used to handle like a  dynamic  array, it will expand  itself as you add new elements to it. Here I include a small portion of my project to simply illustrate the use of vector and print the object’s contents. package office; /**  * The Base Object Class  * @author manoj  */ ...

Function returning pointer/Arrray

about 1 year ago
#include #include /* http://knol.google.com/k/manojap/ */ //Function 4 divide an array with a value int * Div(int x[],int y) { int i; int *p; p=&x[0]; for(i=0;*(p+i)<11111;i++) /*I found that garbage values have 6 0r 7 digits,So that I decide to make use of this idea for finding the bound of the arrays. */ x[i]=(*(p+i))*y; return p; } int main() { int a[5]={2,3,0,5,1}; int i; int *t; int z[10],r; t=Div(a,5); for(i=0;*(t+i)<1111;i++) printf("%d\t",*(t+i)); printf("\nEnter The Size of the array"); scanf

Replacing diagonal of a matrix with Zero1

about 1 year ago
Image via Wikipedia #include #include int main() { int a[10][10], i,j,r,c; printf(“\nEnter Rows and cols:”); scanf(“%d%d”,&r,&c); if(r==c) { printf(“\nEnter Values”); for(i=0;i<r;i++) {...

Replacing diagonal of a matrix with Zero 2

about 1 year ago
Image via Wikipedia #include #include int main() { int a[10][10], i,j,r,c; printf(“\nEnter Rows and cols:”); scanf(“%d%d”,&r,&c); if(r==c) { printf(“\nEnter Values”); for(i=0;i<r;i++) { printf(“\n”);...

Fetching result to an Object(Class Module and ADO Operation)

over 1 year ago
Create an Class to handle (even though it is not required, I prefer this way). Public Ex_Name As String, QSTN As String, CH1 As String, CH2 As String, CH3 As String, CH4 As String, akey As Integer Sub Put_Details(m As String, q As String, c1 As String, c2 As String, c3 As String, c4 As String, ak As Integer) Ex_Name = m QSTN = q CH1 = c1 CH2 = c2 CH3 = c3 CH4 = c4 akey = ak End Sub Name it as “Qbank.cls” and change Name proerty to ‘Qbank’ 2. Now create a sub procedure to fetch the information in the table to &#8216;Qbank&#8217; Object. Create an object of Qbank in the Module (Add following

Updating Results using ADO methods

over 1 year ago
Public Sub Update_Result() Call load_db(&#8220;EVAL&#8221;, &#8220;reg&#8221;, Module1.u_exobj.reg) Dim r r = 0 rs.MoveFirst Do While Not rs.EOF If rs(&#8220;reg&#8221;) = Module1.u_exobj.reg And rs(&#8220;doe&#8221;) = Module1.u_exobj.doe And rs(&#8220;module&#8221;) = Module1.u_exobj.Ex_Name And rs(&#8220;outof&#8221;) = Module1.u_exobj.out_of And rs(&#8220;score&#8221;) = Module1.u_exobj.score Then rs(&#8220;REG&#8221;) = Module1.new_u_exobj.reg rs(&#8220;doe&#8221;) = Module1.new_u_exobj.doe rs(&#8220;name&#8221;) = Module1.new_u_exobj.GSname rs(&#8220;module&#8221;) = Module1.new_u_exobj

Displaying Records to A Flex Grid control(ADO)

over 1 year ago
Image via Wikipedia Public Sub All_Students(ByRef sou() As EVAL, grid As MSFlexGrid) ‘================================ ‘New Module->Display all students ‘================================ With grid.Clear.TextMatrix(0, 0) = “SLNO”.ColWidth(0) = 800.TextMatrix(0, 1) = “Date OF EXAM”.ColAlignment(1) = 5.TextMatrix(0, 2) = “REG NO”.ColAlignment(2) = 5.ColWidth(1) = 1900.ColAlignment(0) = 5.TextMatrix(0, 3) = “NAME OF THE EXAMINEE”.ColWidth(3) = 5000.ColAlignment(3) = 5.TextMatrix(0, 4) =...

Check whether two strings are equal-Array

over 1 year ago
Image via Wikipedia #include #include #include main() { char str[10],sub[10]; int i,j,k,f=1; printf(“enter the strg”); gets(str); i=0; while(str[i]!=”) { i++; } printf(“\nl=%d”,i); printf(“\nenter the sub strg”); gets(sub); j=0; while(str[j]!=”) { j++; } printf(“\nl=%d”,j); if(i==j) { for(k=0;k<str[k]!=”;k++) { if(str[k]!=sub[k]) { f=0; break; } } } if(f==1) { printf(“\n\n same”); } if(f==0) { printf(“\n\nnot same”); } }

Calling Base Class constructor

over 1 year ago
Image via Wikipedia #include #include#include//Stores person info,personal information class Person { protected: char name[10]; int age; char gender[5]; public: Person(){} Person(char n[],int a,char g[]); void print_person(); };//store accademic details class student: protected Person { private: char cls[5],div; int rank; int regno ; char sports[2]; char arts[2]; char extr[2]; char awards_state_district[2]; public: student(){} student(char c[],char d,int r,char...