This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main(void){ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ヘッダファイルのインクルード | |
#include <windows.h> // 標準WindowsAPI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// メインクラスの定義 | |
class MainClass // MainClassクラスの定義 | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<phone:PhoneApplicationPage | |
x:Class="PhoneApplicationPage_.MainPage" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" | |
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768" | |
FontFamily="{StaticResource PhoneFontFamilyNormal}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Page | |
x:Class="Page_.MainPage" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="using:Page_" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d" PointerPressed="Page_PointerPressed_1" PointerReleased="Page_PointerReleased_1"> | |
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ヘッダのインクルード | |
#include <iostream> // C++標準入出力 | |
// C++形式でのmain関数の定義 | |
int main(){ // voidは省略可. | |
// 以下の処理を実行 | |
std::cout << "main_function" << std::endl; // 出力演算子"<<"で"std::cout"に"main_function"と出力する. | |
// プログラムの終了 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ヘッダファイルのインクルード | |
#include <afxwin.h> // MFC標準 | |
// WinMain関数の定義 | |
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd){ // Windowsプログラムのエントリポイント | |
// 以下の処理を実行 | |
AfxMessageBox("AfxMessageBox"); // AfxMessageBoxで"AfxMessageBox"と表示する. | |
// プログラムの終了 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 名前空間の登録 | |
using System; // 共通データ型と基本クラス(System名前空間) | |
// MainClassの定義 | |
class MainClass | |
{ | |
// Mainメソッドの定義 | |
static void Main() | |
{ | |
// Console.Write, Console.WriteLineによる基本的な標準出力 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ヘッダファイルのインクルード */ | |
#include <stdio.h> /* 標準入出力 */ | |
/* main関数の定義 */ | |
int main(void){ | |
/* 整数リテラル */ | |
printf("Integer Literal(Decimal) %d = %d\n", 123, 123); /* printfで整数リテラル(10進数)の123を出力. */ | |
printf("Integer Literal(Octal) %d = 0%o\n", 0173, 0173); /* printfで整数リテラル(8進数)の123( = 0173)を出力. */ | |
printf("Integer Literal(Hexadecimal) %d = 0x%x\n", 0x7b, 0x7b); /* printfで整数リテラル(16進数)の123( = 0x7b)を出力. */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ヘッダファイルのインクルード */ | |
#include <stdio.h> /* 標準入出力 */ | |
/* main関数の定義 */ | |
int main(void){ | |
/* 変数の宣言・初期化 */ | |
int x; /* int型変数xの宣言 */ | |
int a; /* int型変数aの宣言 */ | |
int b = 20; /* int型変数bの宣言, およびbの値を20に初期化. */ |
OlderNewer