Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changes between Version 4 and Version 5 of StringComparisonOperatorsExample

Show
Ignore:
Author:
nascent (IP: 67.110.217.136)
Timestamp:
05/30/10 19:56:32 (8 years ago)
Comment:

Updated to be version agnostic

Legend:

Unmodified
Added
Removed
Modified
  • StringComparisonOperatorsExample

    v4 v5  
    1414 
    1515int main() { 
    16   char[] str1 = "Aardvark"; 
    17   char[] str2 = "Zebra"; 
    18   char[] str3 = "1"; 
     16  string str1 = "Aardvark"; 
     17  string str2 = "Zebra"; 
     18  string str3 = "1"; 
    1919 
    2020 
    4343  for (int i = 0; i < 3; i++)  
    4444    str3 ~= "0"; 
    45   writefln(str3); 
     45  writefln("%s", str3); 
    4646 
    4747  return 0;