C++ ᠫᠷᠣᠭᠷᠠᠮᠮᠴᠢᠯᠠᠯ ᠤᠨ ᠪᠣᠳᠣᠯᠭᠠ ᠪᠣᠳᠣᠬᠤ
ᠵᠠᠷᠯᠠᠯ ᠮᠡᠳᠡᢉᠡᠯᠡᠯ ᠦᠢᠯᠡ ᠶᠠᠪᠤᠳᠠᠯ ᠤᠨ ᠮᠡᠳᠡᠭᠡᠨᠡᠢᠢᠲᠡᠯᠡᠯᠴᠢ ᠨᠢ᠄ admin | ᠨᠡᠢᠢᠲᠡᠯᠡᠭᠰᠡᠨ ᠣᠭᠨᠣ᠄ 2024-01-24 05:58:14 |
ᠦᠵᠡᠭᠰᠡᠨ ᢉᠡᠷᠡᠭᠯᠡᠭᠴᠢ: 417
C++ ᠫᠷᠣᠭᠷᠠᠮᠮᠴᠢᠯᠠᠯ ᠤᠨ ᠪᠣᠳᠣᠯᠭᠠ ᠪᠣᠳᠣᠬᠤ
001 ᠳᠤᠭᠠᠷ᠄Hello World ᢉᠡᠰᠡᠨ ᠬᠣᠶᠠᠷ ᠦᢉᠡ ᠶᠢ ᠬᠣᠭᠣᠰᠣᠨ ᠵᠠᠶ ᠲᠠᠶ ᠳᠡᠯᢉᠡᠴᠡᠨ ᠳᠦ ᢉᠡᠪᠯᠡᠨᠡ ᠦᠦ᠃
ᠪᠣᠳᠣᠯᠳᠠ ᠶᠢᠨ ᠲᠠᠶᠢᠯᠪᠣᠷᠢ᠄
- ᠨᠢᢉᠡᠳᠦᢉᠡᠷ ᠮᠥᠷᠦ ᠳᠦ᠄ ᠣᠷᠣᠯᠲᠠ - ᠭᠠᠷᠤᠯᠲᠠ ᠢᠢᠨ ᠦᠢᠯᠡᠳᠦᠯ ᠦᠳ ᠢ ᠬᠠᠩᠭᠠᠳᠠᠭ ᠰᠲ᠋ᠠᠨᠳᠠᠷᠲ ᠣᠪᠶᠧᠻᠲ ᠬᠠᠨᠳᠤᠯᠳᠠ ᠶᠢᠨ ᠰᠠᠩ ᠢ ᠵᠠᠷᠯᠠᠨ ᠳᠠᠭᠤᠳᠠᠵᠤ ᠪᠠᠶᠢᠨᠠ᠃
- ᠬᠣᠶᠠᠳᠤᠭᠠᠷ ᠮᠦᠷᠦ ᠳᠤ᠄ᠨᠡᠷᠡ ᠠᠰᠢᠭᠯᠠᠬᠤ ᠰᠲ᠋ᠠᠨᠳᠠᠷᠲ ᠣᠷᠴᠢᠨ ᠢ ᠵᠠᠷᠯᠠᠨ ᠳᠠᠭᠤᠳᠠᠵᠤ ᠪᠠᠶᠢᠨᠠ᠃ᠡᠨᠡ ᠨᠢcin, cout ᠵᠡᠷᢉᠡ ᠣᠷᠣᠯᠳᠠ᠂ ᠭᠠᠷᠤᠯᠳᠠ ᠢᠢᠨ ᠦᠢᠯᠡᠳᠦᠯ ᢉᠦᠢᠴᠡᠳᢉᠡᢉᠦ ᠣᠪᠶᠧᠻᠲ ᠵᠠᠷᠯᠠᠬᠤ ᠣᠷᠴᠢᠨ ᠢ ᠪᠡᠯᠡᠳᢉᠡᠨᠡ᠃
- ᠳᠥᠷᠪᠡᠳᠦᢉᠡᠷ ᠮᠦᠷᠦ ᠳᠦ᠄ ᠫᠷᠣᠭᠷᠠᠮᠮ ᠤᠨ ᠭᠣᠣᠯ ᢉᠡᠰᠡᢉ᠂ ᠹᠦᠩᠻᠼ ᢉᠡᠯᠪᠡᠷᠢᠳᠡᠶ ᠠᠷᢉᠦ᠋ᠮᠧᠨ᠋ᠲ ᠳᠠᠭᠤᠳᠠᠬᠤ ᠮᠡᠲᠦ ᠬᠠᠭᠠᠯᠳᠠᠳᠠᠶ ᠪᠠᠷ ᠪᠢᠴᠢᠳᠡᢉ᠃
- ᠲᠠᠪᠤᠳᠤᠭᠠᠷ ᠮᠥᠷᠦ ᠳᠦ᠄ cout ᠣᠪᠶᠧᠻᠲ ᠵᠠᠷᠯᠠᠨ << ᠲᠡᠮᠳᠡᢉᠳᠦ ᠶᠢᠨ ᠠᠷᠤ ᠳᠤ ᠪᠢᠴᠢᢉᠰᠡᠨ ᠬᠤᠪᠢᠰᠤᠭᠴᠢ ᠪᠠ “”ᢉᠡᠰᠡᠨ ᠬᠠᠰᠢᠯᠲᠠ ᠳᠣᠳᠣᠷᠠᢉᠢ ᠲᠡᠮᠳᠡᢉᠳᠦ ᠶᠢ ᠳᠡᠯᢉᠡᠴᠡᠨ ᠳᠦ ᢉᠡᠪᠯᠡᠨᠡ᠃ᠡᠨᠡ ᠪᠣᠳᠣᠯᠭᠠ ᠶᠢᠨ ᠬᠣᠪᠢ ᠳᠤ hello World ᢉᠡᠰᠡᠨ ᠦᢉᠡ ᠶᠢ ᢉᠡᠪᠯᠡᠨᠡ᠃ ᠳᠠᠷᠠᠭᠠ ᠶᠢᠨ ᠮᠦᠷ ᠲᠦ return 0; ᢉᠡᠰᠡᠨ ᠨᠢ Enter ᠲᠣᠪᠴᠢ ᠳᠠᠷᠦᠬᠦ ᢉᠦᠷᠲᠡᠯᠡ ᠳᠡᠯᢉᠡᠴᠡᠨ ᠳᠦ ᠲᠤᠰ ᠫᠷᠣᠭᠷᠠᠮᠮ ᠤᠨ ᠦᠷᠡ ᠳᠦᠩ ᠢ ᠦᠵᠡᢉᠦᠯᠦᢉᠰᠡᢉᠡᠷ ᠪᠠᠶᠢᠬᠤ ᠪᠣᠯᠣᠨᠠ᠃
002 ᠳᠤᠭᠠᠷ ᠪᠣᠳᠣᠯᠭᠠ᠄ IOI – 1
IOI ᢉᠡᠰᠡᠨ ᠦᢉᠡ ᠶᠢᠨ ᠦᠰᠦᢉ ᠪᠦᠷᠢ ᠶᠢ ᠨᠢᢉᠡ ᠮᠦᠷ ᠲᠦ ᢉᠡᠪᠯᠡᠨᠡ ᠦᠦ᠃ (ᠵᠢᠱᠢᠢᠡ ᠶᠢᠨ ᠳᠡᢉᠡᠷᠡ ᠡᠴᠡ ᠰᠠᠶᠢᠨ ᠬᠠᠷᠠᠭᠠᠷᠠᠢ)
ᠪᠣᠳᠣᠯᠳᠠ ᠶᠢᠨ ᠲᠠᠶᠢᠯᠪᠣᠷᠢ᠄
- ᠨᠢᢉᠡᠳᠦᢉᠡᠷ ᠮᠥᠷᠦ ᠳᠦ᠄ ᠣᠷᠣᠯᠲᠠ-ᠭᠠᠷᠤᠯᠲᠠ ᠢᠢᠨ ᠦᠢᠯᠡᠳᠦᠯ ᠦᠳ ᠢ ᠬᠠᠩᠭᠠᠳᠠᠭ ᠰᠲ᠋ᠠᠨᠳᠠᠷᠲ ᠣᠪᠶᠡᠻᠲ ᠬᠠᠨᠳᠤᠯᠳᠠ ᠶᠢᠨ ᠰᠠᠩ ᠢ ᠵᠠᠷᠯᠠᠨ ᠳᠠᠭᠤᠳᠠᠵᠤ ᠪᠠᠶᠢᠨᠠ᠃
- ᠬᠣᠶᠠᠳᠤᠭᠠᠷ ᠮᠦᠷᠦ ᠳᠤ᠄ᠨᠡᠷᠡ ᠠᠰᠢᠭᠯᠠᠬᠤ ᠰᠲ᠋ᠠᠨᠳᠠᠷᠲ ᠣᠷᠴᠢᠨ ᠢ ᠵᠠᠷᠯᠠᠨ ᠳᠠᠭᠤᠳᠠᠵᠤ ᠪᠠᠶᠢᠨᠠ᠃ᠡᠨᠡ ᠨᠢcin, cout ᠵᠡᠷᢉᠡ ᠣᠷᠣᠯᠳᠠ᠂ ᠭᠠᠷᠤᠯᠳᠠ ᠢᠢᠨ ᠦᠢᠯᠡᠳᠦᠯ ᢉᠦᠢᠴᠡᠳᢉᠡᢉᠦ ᠣᠪᠶᠧᠻᠲ ᠵᠠᠷᠯᠠᠬᠤ ᠣᠷᠴᠢᠨ ᠢ ᠪᠡᠯᠡᠳᢉᠡᠨᠡ᠃