Hi all,
I will be giving a presentation in a couple of days and I wanted to
compare and contrast several programming languages (i.e C/C++; Java;
Perl & PhP). As an example I have a short function (a method in Java)
and I wanted its equivalent in C++ (not C)
public String commentTag(String content) {
return ((content.length() > 0) ? "<!--"+comment+"//--> : "<!--Default
comment //-->");
}
Can anyone duplicate this function in C++ in a single line (the return
statement)...?
--
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
-------------------Cirez Communications, inc.----------------
----------------------Juan Alberto Cirez---------------------
-----------------------Senior Consultant---------------------
[EMAIL PROTECTED]
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
Sunny and Beautiful Vancouver, Canada.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying