ForNext
Only Do What Only You Can Do
079. pair
Hyperpolyglot C++ Style Languages: C++, Objective C, Java, C# より (2012.05.08)
VBScript
JScript
Perl
PHP
Python
Ruby
PowerShell
Scala
F#
C
C++
pair<int, float> p(7, 3.14); cout << p.first << ", " << p.second << endl;
C++Builder
VC++
C#
using System.Collections.Generic; KeyValuePair<string,int> pr = new KeyValuePair<string,int>("hello",5); System.Console.WriteLine("{0} {1}", pr.Key, pr.Value);