Concatenating Strings - a review
As I mentioned, I’m learning/employing a bunch of varied programming languages. In fact, I’m employing several programming languages within a single project. While tabbing betwixt editor windows I’ll often miss tabbing between programming languages. Fortunately, error codes are as they are and they yell at me promptly.
To review, concatenating strings:
Javascript
var mystring = string1 + " is " + string2;
Ruby and Python
mystring = string1 + " is " + string2;
PHP
$mystring = $string1." is ".$string2;
C
char mystring[50], string1[10], string2[10]; strcat(mystring, string1); strcat(mystring, " is "); strcat(mystring, string2);
C++
string mystring, string1,string2; mystring = string1 + " is " + string2;
Feel free to add any more you know.
My name is
September 13th, 2005 at 8:20 pm (#)
The initially time-consuming, but absurdly useful command in Excel is:
=CONCATENATE (text 1, [text2]…)
Further subformulas allow you to format text, grab specific characters, even assign “$,00″ to calculations. All of which means that when you’re modifying executive summaries you don’t hide your pro forma 44% IRR in the summary that reads 11% IRR.