1? Limit 4? Why? ? ?
C # ì á1? Á? Why ?? μá D? Why? ? À dí? Why? Ü ?? ? C/c ++ ód2? ? ?? μ? μ? ·?? Why? Why? ? Ò yó? À díó Dobjecto ístring? Bytes
Object ?? Ù ód ???? ?? Comment ′?? Bytes
? Why? ? ·? O? Ê y? Why? T ·? O? Ê y? Why ?? μ ?? Limit 2 ???? ¢ ×? ·? Ocíenne ????? Ê y? Why ·? O? Why yód? Mongoshort? Bytes
Intoílong ?? T ·? O? Between yód between obyte? ¢ Ushort? Why uinto íulong ??? μ? Between yód between ofloato ídouble? Bytes
2 ??? À dí? Í ?? Parameters ???? A1? Why ??? Ódá ??? ×' Hour? Required otrue? Required false? Objective c #?? 2 ??? μ? When? Ó±è c/c ++ ???? Why? ? Java à ??? Bytes
? Úc #? Dfalse2? ? True limit 22? ? Falseo ítrue ?? Why? μ $? ·? ? 3? ? Parameters ???? μ? Why? § 1yc/c ++ μ? Í? ?
??? A μ à £ o */
Int I = 0;
If (I = 0) {// Bug: ó | ?? Why? (I = 0)
....
}
/* Outputs ??? ? Too many a μ ?? £ μ ?? Úc #? D? Áò y · zookeeper ??? ±? ? Ó £ Emy error CS0029: Cannot implicitly convert
Type int to bool labels ?? £ μ±? Why ?? A? Why? T éüás? Why? μ ??? Ód ±? When a μ? Áé ?? D ?? Why? Why ??? Limit limit 22 ?? Ü? A? Ù £ o */
String str;
....
If (str = Console. ReadLine ()){
Console. WriteLine ("Your comments are: {0}", str );
....
/*?? ±? D? £ O */
Using System;
Class BoolTest
{
Static void Main (){
String str = Console. ReadLine (); // logs 2? ? Required ostring str;
If (str = "") // if (str = Console. ReadLine () = "")
Console. WriteLine ("I cant read your comments. Please tell me something! O. K .? ");
Else
Console. WriteLine ("Your comments are: {0}", str );
}
}
/*
? 3áá? Parameters ???? Why? ? ?? ? ? Limit 2 ???? Bytes
Type Description Examples
Object The ultimate base type of all other types object o = new Stack ();
String String type; a string is a sequence of string s = "Hello ";
Unicode characters
Sbyte 8-bit signed integral type sbyte val = 12;
Short 16-bit signed integral type short val = 12;
Int 32-bit signed integral type int val = 12;
Long 64-bit signed integral type long val1 = 12;
Long val2 = 34L;
Byte 8-bit unsigned integral type byte val1 = 12;
Byte val2 = 34U;
Ushort 16-bit unsigned integral type ushort val1 = 12;
Ushort val2 = 34U;
Uint 32-bit unsigned integral type uint val1 = 12;
Uint val2 = 34U;
Ulong 64-bit unsigned integral type ulong val1 = 12;
Ulong val2 = 34U;
Ulong val3 = 56L;
Ulong val4 = 78UL;
Float Single-precision floating point type float value = 1.23F;
Double Double-precision floating point type double val1 = 1.23
Double val2 = 4.56D;
Bool Boolean type; a bool value is either bool value = true;
True or false
Char Character type; a char value is a Unicode char value = h;
Character
Decimal