ADD LIFE 2 DAYS NOT DAYS TO LIFE :)
STAY BLESSED
CSS,HTML ,CODING, BEST ,PROGRAMMING,SALMAN KHAN , FREE, PAKISTAN, LOVE, SHAHRUKH KHAN, IMRAN HASHMI, CRICKET MATCH
Wednesday, 27 November 2013
Wednesday, 20 November 2013
Operating System Concepts 9th Eddition download avaliable
CLICK HERE and download this useful book free of cost.
If you need any other book you can comment and ask for that.
Exercise solutions of Operating System Concepts
LINK1
LINK2
LINK3
If you need any other book you can comment and ask for that.
Exercise solutions of Operating System Concepts
LINK1
LINK2
LINK3
Useful book for Assembly Programs "The Intel Microprocessors by Barry B.Brey"
Click here and download this useful book free of cost.
If you need any other book you can comment and ask for that.
If you need any other book you can comment and ask for that.
Monday, 18 November 2013
C++ Program to Compare Two Strings Using Pointers
#include<iostream>
#include<stdio.h>
using namespace std;
main()
{
char str1[50],str2[50];
int str_cmp(char*,char*);
cout<<"Enter first string:";
gets(str1);
cout<<"Enter second string:";
gets(str2);
if(str_cmp(str1,str2))
cout<<"\nStrings are equal";
else
cout<<"\nStrings are not equal";
return 0;
}
int str_cmp(char *s1,char *s2)
{
while(*s1==*s2)
{
if(*s1=='\0'||*s2=='\0')
break;
s1++;
s2++;
}
if(*s1=='\0'&&*s2=='\0')
return 1;
return 0;
}
#include<stdio.h>
using namespace std;
main()
{
char str1[50],str2[50];
int str_cmp(char*,char*);
cout<<"Enter first string:";
gets(str1);
cout<<"Enter second string:";
gets(str2);
if(str_cmp(str1,str2))
cout<<"\nStrings are equal";
else
cout<<"\nStrings are not equal";
return 0;
}
int str_cmp(char *s1,char *s2)
{
while(*s1==*s2)
{
if(*s1=='\0'||*s2=='\0')
break;
s1++;
s2++;
}
if(*s1=='\0'&&*s2=='\0')
return 1;
return 0;
}
Subscribe to:
Posts (Atom)