473,396 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ı need just expression please help me it takes your one minute

6
Please give me the expression needed to compare whether A and B are NOT equal to each other.
May 4 '20 #1
2 3558
dev7060
636 Expert 512MB
Expand|Select|Wrap|Line Numbers
  1. (A!=B)
  2.  
Expand|Select|Wrap|Line Numbers
  1. !(A==B)
  2.  
Returns true (1) if not equal.
May 5 '20 #2
AjayGohil
83 64KB
Hi,

You can use !(NOT equal)operator for comparison.

Example:
Expand|Select|Wrap|Line Numbers
  1.  if(A!=B)
  2. {
  3. return true;
  4. }
  5. else
  6. {
  7. return false;
and if A and B are strings then you can use strcmp built in function for string comparison.

Example:

strcmp("ac", "ad")

For more information refer following site:

https://www.geeksforgeeks.org/strcmp-in-c-cpp/
May 27 '20 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Ragnorack67 | last post by:
Hi, I need to validate a string of text against an expression and having difficulty putting it together. Basically, I want to count the number of words in a string that are separated by commas. If...
3
by: Steve Peterson | last post by:
Hi - I'll admit it.. I'm clueless using regular expressions. That's why I was hoping someone could help me out a bit. I need to search an html file and find strings that are between tags. For...
2
by: OZ | last post by:
Hi, I am new C++ and need a little help with a public domain program that is suppose to perform a byte swap. I am receiving the following error messages during the compile process with Microsoft...
1
by: worzel | last post by:
Hi All, I am looking for a reg ex that will match email addresses withing <a href=mailto blah > links. Actually, I already crafted my own, but with a slight problem: <a...
2
by: Chuck Haeberle | last post by:
I have an interesting regular expression challenge for someone more experienced with them than I for a data layer class... I need an expression to search a SQL statement (any type, SELECT INSERT...
10
by: Mark | last post by:
Hello, I need a some help. I am not a java programmer. I mostly do VB and C#. Here is my problem I have sever side text boxes and when a user tabs off or presses enter I need to have the...
3
by: Lee Grissom | last post by:
I want to parse the following string into 3 parts per match. I almost got it, but my expression has a flaw in it. I tried this, but didn't quite work the way I expect on the second match b/c...
0
by: cpowers | last post by:
I am tring to get a total for the amount owed that is over 30days but under 60days. My expression just gives me the word True does not give me the total MASRCVAMOUNT $$ in that date range. Can...
1
by: natalieo | last post by:
Hi everyone , Hope all is well with you guys and girls :) I saw someone had a similar posting in this forum and need some help also with a Access Query Expression. I need an expression to...
1
by: Lakhi | last post by:
I need regular expression for <a href="compose.php?to=user%40abc.com\" title=\"New Message to abc.user@abc.com\"> to replace with ""
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.