As you noticed by the title I didn't used the term “know” since I find it more ambiguous then “you can code in”. To keep answers short lets limit ourselves to five languages at most , have the same list for strongest and weakest points and mention those point in brief (one or two sentences). Who will go first ?

Member Avatar
Member Avatar
+0 forum 5

Hello, I am trying to compare a double to be within various ranges, but the comparison is not working correctly. Rounding precision is not a concern, because if the value will match the boundaries so rarely, and it is rounding up to the higher range is acceptable. Below is the code at issue: if (kq == 2) if (fundt[kq-1][ky-1][2-1] < 450,000,000.00) ktti[ky-1][0] = 1; else if ((fundt[kq-1][ky-1][2-1] >= 450,000,000.00) && (fundt[kq-1][ky-1][2-1] < 525,000,000.00)) ktti[ky-1][0] = 2; else if ((fundt[kq-1][ky-1][2-1] >= 525,000,000.00) && (fundt[kq-1][ky-1][2-1] < 650,000,000.00)) ktti[ky-1][0] = 3; else if ((fundt[kq-1][ky-1][2-1] >= 650,000,000.00) && (fundt[kq-1][ky-1][2-1] < 750,000,000.00)) ktti[ky-1][0] = 4; …

Member Avatar
Member Avatar
+0 forum 3

Hi Everyone, I am here to start a defferent project, intresting for me of video clips comparison in C#. I would like to develop a destop application which can compare a video sample clip A with a destination video clip B. All I want to do is E.g if I have hundreds of video clips available in my D drive and I want to find a specific video. And I have for exapmle a 10 seconds video clip sample available. The application will compare the contents of Destination video file B with the source video sample file A. And if …

Member Avatar
Member Avatar
+0 forum 6

All, what I am trying to do is isolate markings (differences) in images. I have an unmarked image (I1), a marked image (I2) and a third image (I3). I would like to compare I2 against I1 and store the x,y (or array of pixels) of the differences (isolate markings). I liken this to subtracting I1 from I2 leaving the differences. I would then like to do the same with respect to I3 (subtract I1 from I3) THEN compare the result I3 versus I2. I found this link; http://jeffkreeftmeijer.com/2011/comparing-images-and-creating-image-diffs/ It shows (basically) I1 - I2 = difference. I would like to …

Member Avatar
+0 forum 0

I'm trying to create a program in c# that asks the user a question and then tells him if he is correct or incorrect, the code I am using only allows for case to be the same. Is there a way I can compare two strings without it checking for case. Here is some of my code Console.Write("List the first sahabi who was promised paradise \n(hint he was Prophet Muhammad (peace be upon him)'s best friend: "); answer = Console.ReadLine(); if (answer == "Abu Bakr") { Console.WriteLine("That is correct good job!\n\n"); ++score; }

Member Avatar
Member Avatar
+0 forum 3

Hi guys! Just conducting a survey for those who have tried these two operating systems. How would you compare these two in terms of these parameters: Ease of use Availability of Software Overall Security Virus Attacks Thanks!

Member Avatar
Member Avatar
+0 forum 11

Hi, Imagine a vector of structures with each structure containing various variables. struct Data { double x double y double z } vector<Data> Dataset vector<Data>::iterator it //input some data from a file into DataSet How can I iterate over this vector, comparing say, x at the nth row to the x at the (n-1th) row and the x at the (n-2th) row, beginning at n (where n is Dataset.begin() + 2) and moving one n forward at a time? Thanks, TR

Member Avatar
Member Avatar
+0 forum 8

I Need some help.i just have some tables in data base, that is school ---Name(primary key),phonenumber,street,town,state,country college---Name(primary key),phonenumber,street,town,state,country Railwaystation---Name(primary key),phonenumber,street,town,state,country Hotel---Name(primary key),phonenumber,street,town,state,country In the front end, i will put two combobox and a submit button. All i need is first combo box will have to select the table.Second combobox shows all names of particlar table which is selected (user will select a name their), then by pressing submit.Will have to shows all fields of particlar name.

Member Avatar
Member Avatar
+0 forum 2

i have an excel file which contains the following: (only part of the file) 1 SEG-AMK EG1832 Mechanics and Materials 286 1.5 EG1832 2 SEG-AMK EG1833 Electrical Principles 375 1.5 EG1833 EG1952 EG1903 3 SEG-AMK EG1835.1 Engineering Mathematics (1) 456 1.5 EG1835 EG1001 4 SEG-AMK EG1835.2 Engineering Mathematics (2) 363 1.5 EG1907 EG1681 EG1951 EGB101 EGC101 EGD101 EGF101 EGH101 5 SEG-AMK EG1004 Analog Electronics 262 1.5 EG1004 6 SEG-AMK EG1009 Electric Circuits 229 1.5 EG1009 7 SEG-AMK EG1010 Digital Electronics 229 1.5 EG1010 8 SEG-AMK EG2008 Engineering Mathematics 2B 563 1.5 EG2008 EG2681 EGB207 EGC207 EGD207 EGF207 EGH207 EGJ207 9 …

Member Avatar
Member Avatar
+0 forum 2

I have written a script to get all elements then i go and find this element in another iframe. Wait, so essentially i have 2 frame's on a page, the one on the left i called the "online" and the 2nd one i called the "base". My end result is to compare the css with (getComputedStyle) with the element from 'online' compared to 'base'. I have the selecter built, from the body down, so like "body div.header div#logo img.home-log" but my problem is when it comes to li's or a links. So like "body ul.test li" but the DOM could …

Member Avatar
Member Avatar
+0 forum 1

I have two containers with the type of *A* A<string, double> s1; A<string, bool> s2; So I wrote the *A* class with the necessary functions and I used a template<class T, class E> for it. It has a function that returns a value of *E*, in my case, it returns a double which I'm trying to compare to another double. I'm supposed to overload the < operator for that, but I have no idea how to do that. 4.5 < s1.at("a"); s1.at("a"); returns 1.5, so it's false. I need it to return true. I thought since they are both double …

Member Avatar
Member Avatar
+0 forum 1

Hello guys, Does anyone know exactly how to make a comparison script for car insurance? Would be great if someone could make one for me (£), or could teach me! Cheers, Sam

Member Avatar
Member Avatar
+0 forum 3

The comparison operators: * === * <=> * eql? * equal? * == Both are performing equality check I know. Some of them overrides `==` also. But now my query is how to think,what to use in what situations? Explanation with a code would be better idea to understand. Thanks in advance!!

Member Avatar
Member Avatar
+0 forum 4

I have my `$arr` of key value pairs like this: array(7) { ["No"]=> string(6) "101" ["Paper_id"]=> string(6) "WE3P-1" ["Title"]=> string(80) ""An Electrically-Small, 3-D Cube Antenna Fabricated with Additive Manufacturing"" ["Author"]=> string(13) "NassarIbrahim" ["Auth_order"]=> string(9) "WE3P-1-01" ["Aff_list"]=> string(51) ""University of South Florida, Tampa, United States"" ["Abstracts"]=> string(723) ""This paper presents the design of an electrically small"" } array(4) { ["Author"]=> string(12) "WellerThomas" ["Auth_order"]=> string(9) "WE3P-1-02" ["Aff_list"]=> string(51) ""University of States"" ["Abstracts"]=> string(2) " " } array(7) { ["No"]=> string(3) "104" ["Paper_id"]=> string(6) "TU5A-3" ["Title"]=> string(40) "Signal-Interference Microstrip Duplexers" ["Author"]=> string(19) "Gomez-GarciaRoberto" ["Auth_order"]=> string(9) "TU5A-3-01" ["Aff_list"]=> string(48) ""University of Spain"" ["Abstracts"]=> string(535) …

Member Avatar
Member Avatar
+0 forum 1

# Have you ever tried using the String.Compare method for a case-insensitive string comparison? # The [documentation](http://msdn.microsoft.com/en-us/library/zkcaxw5y(v=vs.100).aspx) on MSDN for the overloaded method: 'Declaration Public Shared Function Compare ( _ strA As String, _ strB As String, _ ignoreCase As Boolean _ ) As Integer states `Compares two specified String objects, ignoring or honoring their case, and returns an integer that indicates their relative position in the sort order.` At first glance, this looks like exactly what we want, doesn't it? There's a catch... look at the documentation again, especially the last phrase `and returns an integer that indicates their …

Member Avatar
Member Avatar
+1 forum 1

I have the following lines of code, where an if statement compares two strings: string strFound = @"Testing"; string strTest = @"Testing"; if (strFound.Equals(strTest)) { ++iCount; // This line executes when strFound == strTest as expected } if (!(strFound.Equals(strTest))); { ++iCount;// Surprisingly this line always executes even when strFound == strTest } if (strFound != strTest) ++iCount; // This line always executes even when strFound == strTest I'm stepping through this in debug (VS 2012, .net 4.5) and watching the two string variables. They absolutely are equivalent, BUT for some reason the boolean logic is failing. Anyone have an idea …

Member Avatar
Member Avatar
+0 forum 3

Hi, I am currently working on a script that will compare two numbers from a file. I am thinking that I need to use a regular expression in order to get the numbers, however I don't know what the regex would be since there are multiple numbers through out the text file im parsing. The sentence that these numbers are in would look like this, "In our tests, downloads using control flows achieved up to 1114 Kbps while downloads using BitTorrent achieved up to 1792 Kbps." Can anyone suggest a regex that would pull those 2 numbers, but not any …

Member Avatar
Member Avatar
+0 forum 8

I noticed that when equals() is used to compare between two String objects it works fine. But when I compare two StringBuffer objects or two StringBuilder objects or mix of String and Builder and Buffer, equals() doesn't work even though I give same string value to the two objects being compared. However when I say it doesn't work, I mean it compiles fine, but it just says unequal according to if loop. Then I checked Java docs online under Buffer and Builder API and equals() is not listed under methods summary for them but it is listed for String. So …

Member Avatar
Member Avatar
+0 forum 5

Why does first two eg give true when a check done on them using if(x==y) but 3rd and 4th case give false? eg1: `String x = "Hello", y="Hello" ` eg2: `String x = "Hello";` `String y= "Hello";` eg3: `String x="Hello";` `String y = new String("Hello");` eg4: `String x = new String("Hello");` `String y = new String("Hello");`

Member Avatar
Member Avatar
+0 forum 3

#include <iostream> #include <cmath> #include <string> #include <cstdlib> #include <cstring> using namespace std; char Outputing(char shifted_letter); int found_match; int searching_alphabet; int main() { const char ORIGINAL_alphabet[26]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; //maybe const isn't necesery char alphabet[26]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; cout << "This program encrypts messages using Ceaser Cipher\n"; cout << "\n---------------------------------------------------------"; cout << "\n---------------------------------------------------------"; cout << "\nEnter plaintext or enter ABC to use alphabet as plaintext:\n"; cin >> alphabet; if (stricmp(alphabet,"abc") == 0) //comperes alphabet and ABC { cout << "\nAlphabet selected as plaintext\n"; cout << "\n---------------------------------------------------------"; cout << "\nEnter shift for alphabet:\n"; int shift_for_alphabet; cin >> shift_for_alphabet; cout << "Alphabet set:"; for (int i=0;i<26;i++) { alphabet[i] …

Member Avatar
Member Avatar
+0 forum 1

I have the following code ... <?php // test $item_101_product_title = "MGT-101"; $item_102_product_title = "MGT-102"; $item_103_product_title = "MGT-103"; $item_104_product_title = "MGT-104"; $item_105_product_title = "MGT-105"; $item_106_product_title = "MGT-106"; $item_107_product_title = "MGT-107"; $item_108_product_title = "MGT-108"; $item_109_product_title = "MGT-109"; $item_110_product_title = "MGT-110"; $item_111_product_title = "MGT-111"; $item_112_product_title = "MGT-112"; $item_113_product_title = "MGT-113"; $message = ''; $interval = 54; switch(true){ case ($interval > 0) : $message = $message . $item_101_product_title . '<br />'; case ($interval > 21) : $message = $message . $item_102_product_title . '<br />'; case ($interval > 53) : $message = $message . $item_103_product_title . '<br />'; case ($interval > 84) : $message …

Member Avatar
Member Avatar
+0 forum 7

I am working with CSVfile program. I have already calculate something from it. Name,Age,Sex,Pincode,Disease 1. aaa,4,M,35265,flu 2. bbb,4,M,35652,Gastric 3. eee,6,F,35265,Brain 4. sss,7,M,32564,flu I have made program for calculating no. of age,sex and pincode as attached in the code. In this i have calculated that age=4 comes how many times and also how many distinct ages are there ion the file. Also Original file has so many records , nearly 100 records(Rows). Now i am stuck with one problem. I just want to find that there are how many rows having age=4 and sex=M or sex=M and pincode=35265 or age=4 and …

Member Avatar
Member Avatar
+0 forum 5

I am attempting to create a script which checks to see if the user has a warning level of less than 3. Basicaly, I want to automatically deny any account which has a Warning Level (stored in the Database) of 3 or more from logging in but whenever I attempt to run it I always get denyed regardless of what level I set myself to. This is what I have so far: <?php session_start(); $Connection = mysql_connect("localhost","root","password") or die ("Login Fail"); mysql_select_db("database") or die ("Cannot Find DB"); if(isset($_SESSION['Logged'])) { die(header ('Location: ../Pages/Members.php')); } $Username = strip_tags(strtolower($_POST['Username'])); $Password = strip_tags(md5($_POST['Password'])); $mysql …

Member Avatar
Member Avatar
+0 forum 1

I am reading from a file and creating two lists, then sorting them after sorting I am trying to compare each elements number of occurances in a list but printing them with that number for example if a list is something like {1,2,3,3,3,5,5,5,6} then I want to print a report like 1 count =1 2 count =1 3 count = 3 5 count = 5 6 count =6. this is what I have so far just one small thing I need to get it done. def main(): data = open("Iris.csv",'rU') petalWidths = [] sepalWidths = [] for line in data: …

Member Avatar
Member Avatar
+0 forum 9

Hello, guys. I made a program to compare numbers, Example input: [QUOTE] 1 3 10 845157 2 1101101 16 5AE12 [/QUOTE] It transfers numbers from different number system to decimal, then it compares them, but it is not so fast as i need, maybe just a little advice needed, I really dont know, I've tried all i thought... [CODE] #include<stdio.h> #include<math.h> #include<stdlib.h> #include<string.h> using namespace std; int main(void) { int poc,u,j,x,max,maxi; char pov[35001][31]; // store for numbers from input scanf("%d",&poc); // Number of tasks while (poc--) { scanf("%d",&u); // Amount of numbers coming from input int k=0,des[u],sus[u]; // sus - …

Member Avatar
+0 forum 0

I'm looking at starting a forum. I'm unsure on which forum package to choose. I would appreciate your views. Thanks in advance.

Member Avatar
Member Avatar
-1 forum 16

Hi, I would like to know which motherboard is better, Intel Original or Intel chipset from ASUS/Gigabyte/ASRock/Zebronics. What is the difference between performance of Intel original vs Intel chipset? Which one to prefer? Thanks and Regards, ukshir

Member Avatar
Member Avatar
+0 forum 2

Hi Frendz, I have two text fields 'from time' and 'to time'. The time format of the two text fields are 11:30 am 01:30 pm. I want to give alert message in javascript when the users enter the to time less than the from time.

Member Avatar
Member Avatar
+0 forum 2

I just stumbled over this: [ICODE]mysql> select "abc" = 0; +-----------+ | "abc" = 0 | +-----------+ | 1 | +-----------+ 1 row in set, 1 warning (0.06 sec) mysql> show warnings; +---------+------+-----------------------------------------+ | Level | Code | Message | +---------+------+-----------------------------------------+ | Warning | 1292 | Truncated incorrect DOUBLE value: 'abc' | +---------+------+-----------------------------------------+ 1 row in set (0.06 sec)[/ICODE] What's happening here? Where are the implicit type casts documented?

Member Avatar
Member Avatar
+0 forum 1

Hello Gurus, I have a table that holds one date field and one time field. The formats are 2011-12-01 and the time field format is 22:55:01 I want to compare a string "2011-12-01 22:58:00" to the date and time field of the table, without having to take the string apart. SELECT * FROM usrteams where '2011-12-01 22:58:00' <= games.gamedate + games.cutofftime This above does not seem to look right... any suggestions ? Thanks in advance. Peter

Member Avatar
Member Avatar
+0 forum 2

The End.