#include<iostream.h>
#include<stdio.h>
#include<conio.h>
#include<string.h>
int main()
{
int flag=1;
char str1[50], str2[50];
int l1, l2, i;
clrscr();
cout<<"Enter the first string : "<<endl;
gets(str1);
l1 = strlen(str1);
cout<<"Enter the second string "<<endl;
gets(str2);
l2 = strlen(str2);
if(l1==l2)
{
for(i=0;i<=l1;i++)
{
if(str1[i]!=str2[i])
{
flag=0;
break;
}
}
if(flag)
cout<<"equal";
else
cout<<"not equal";
}
else
{
cout<<"strings are not equal";
}
getch();
}
SiteMap
|
Link Us
...Language...
English
French
German
Hindi
Italian
Russian
Japanese
Chinese
Home
|
About Us
|
Portfolio
|
Services
|
Career
|
Contact Us
|
Industrial Training
|
Achievement
Corporate Services
Web Design and development
Web Promotion (SEO)
Multimedia/CD Presentation
Software development
E.Commerce
Training@balujalabs
Software Courses
Hardware Courses
Networking.Courses
Mobile Repairing Courses
UGC Degrees
Student Corner
Programming & Projects
Placement Papers
Project Ideas
Synopsis Ideas
Franchise Section
Administrator
Franchise Inquiry
To compare two strings without using library functions.
1
To read n elements of an array and display them.
2
To input n element of an array and display them in ascending order using bubble sort.
3
To input n element of an array and display them in ascending order using selection sort.
4
To search an element of an array using them search.
5
To search an element of an array using binary search.
6
To initialize the elements of two dimensional array and display the content of the on the screen.
7
To copy the contentents of one string to another.
8
To combine two given strings and display the output obtained.
9
To compare two strings alphabetically.
10
To accept a string and convert all characters in a string from uppercase to lowercase.
11
To accept a string and convert all characters in a string from lowercase to uppercase.
12
To accept a string and average all characters in reverse order.
13
Program to find the smallest element in an array and position its occurrence.
14
To find maximum and minimum element in an array having N element.
15
Program to generate Fibonacci series using arrays.
16
Program to read and display square matrix.
17
Program to input nxn matrices and display their sum as third matrix.
18
Program to input two nxn matrices and display their product.
19
Program to output N*N matrix element, determine if it is a symmetrical matrix.
20
To find length of a string without using strlen () function.
21
To find the frequency of the occurrence of a specified character.
22
To compare two strings without using library functions.
23
Program to copy one string to another without using library function.
24
Program to accept a string and convert all characters in a string from uppercase to lowercase without using library function.
25
To accept a string and convert all characters a string from lowercase to uppercase without using library function.
26
To extract a substring from a given string .
27
To find whether the given string is palindrome a not.
28
To input a strong and string and find the number o numeric characters, lowercase alphabetical characters, uppercase alphabetical characters and any characters other then the above.
Home
|
About Us
|
Portfolio
|
Services
|
Career
|
Contact Us
|
Industrial Training
|
Achievement