Skip to content

Instantly share code, notes, and snippets.

View bg1bgst333's full-sized avatar
😐

B.G bg1bgst333

😐
View GitHub Profile
@bg1bgst333
bg1bgst333 / main_function.c#1
Created December 13, 2014 06:29
main_function#main_function.c
int main(void){
}
@bg1bgst333
bg1bgst333 / WinMain.cpp#1
Last active August 29, 2015 14:11
WinMain#WinMain.cpp
// ヘッダファイルのインクルード
#include <windows.h> // 標準WindowsAPI
@bg1bgst333
bg1bgst333 / MainClass.cs#1
Last active August 29, 2015 14:11
MainMethod#MainClass.cs
// メインクラスの定義
class MainClass // MainClassクラスの定義
{
}
@bg1bgst333
bg1bgst333 / MainPage.xaml
Created December 15, 2014 09:16
PhoneApplicationPage_
<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}"
<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}">
@bg1bgst333
bg1bgst333 / main_function.cpp
Created December 24, 2014 03:05
main_function#main_function.cpp
// ヘッダのインクルード
#include <iostream> // C++標準入出力
// C++形式でのmain関数の定義
int main(){ // voidは省略可.
// 以下の処理を実行
std::cout << "main_function" << std::endl; // 出力演算子"<<"で"std::cout"に"main_function"と出力する.
// プログラムの終了
@bg1bgst333
bg1bgst333 / AfxMessageBox.cpp
Created December 24, 2014 09:49
AfxMessageBox#AfxMessageBox.cpp
// ヘッダファイルのインクルード
#include <afxwin.h> // MFC標準
// WinMain関数の定義
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd){ // Windowsプログラムのエントリポイント
// 以下の処理を実行
AfxMessageBox("AfxMessageBox"); // AfxMessageBoxで"AfxMessageBox"と表示する.
// プログラムの終了
@bg1bgst333
bg1bgst333 / MainClass.cs
Last active August 29, 2015 14:12
Console#MainClass.cs
// 名前空間の登録
using System; // 共通データ型と基本クラス(System名前空間)
// MainClassの定義
class MainClass
{
// Mainメソッドの定義
static void Main()
{
// Console.Write, Console.WriteLineによる基本的な標準出力
@bg1bgst333
bg1bgst333 / literal.c
Created December 27, 2014 10:38
literal#literal.c
/* ヘッダファイルのインクルード */
#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)を出力. */
@bg1bgst333
bg1bgst333 / variable.c
Last active August 29, 2015 14:12
variable#variable.c
/* ヘッダファイルのインクルード */
#include <stdio.h> /* 標準入出力 */
/* main関数の定義 */
int main(void){
/* 変数の宣言・初期化 */
int x; /* int型変数xの宣言 */
int a; /* int型変数aの宣言 */
int b = 20; /* int型変数bの宣言, およびbの値を20に初期化. */