Total members 11893 |It is currently Tue Nov 05, 2024 4:34 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





Code:
 
#include <iostream.h>
#include <string>
using std::string;

main(void)
{
   string s1 = "abcdefghijk", s2 = "1234567890", s3,s4,s5;

   s3=s1+s2;
   cout << s3 <<endl;

   s4=s3;
   if (s4==s3) 
      cout 
<< " s4==s3 is true\n";

   return(0);
}

/* 
abcdefghijk1234567890
 s4==s3 is true

*/
 




_________________
Please recommend my post if you found it helpful


Author:
Beginner
User avatar Posts: 95
Have thanks: 2 time

For this message the author mileloader has received gratitude : xmelx
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : compare two strings
 Compare two strings in php     -  
 compare strings     -  
 compare strings with if statement in php     -  
 Sort strings java-Sorting Array of Strings     -  
 compare two sets     -  
 Compare directories     -  
 String compare equality     -  
 How to compare two arrays in java     -  
 Use the boolean compare operators     -  
 Integer value compare with equal sign     -  



Topic Tags

C++ Strings






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com