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 "merge_sort.h" | |
/* | |
配列の要素を出力 | |
*/ | |
void print_array(const int* array, size_t size) | |
{ | |
size_t i; |
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> | |
#include <stdlib.h> | |
#include <string.h> | |
struct st { | |
char* AAA; | |
int BBB; | |
char* CCC; | |
}; |
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> | |
#include <string.h> | |
int main() { | |
char tmp[3][10]; | |
char str[10] = "kor,,st"; | |
char tm[10] = { 0 }; | |
strcpy(tm, str); | |
memset(str, 0x00, sizeof(str)); |
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
enable3div x = x `mod` 3 == 0 | |
enable5div x = x `mod` 5 == 0 | |
fizzbuzz x = if ( enable3div x ) && ( enable5div x ) | |
then "Fizz Buzz" | |
else if ( enable3div x ) | |
then "Fizz" | |
else if ( enable5div x ) | |
then "Buzz" | |
else |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script> | |
$(function() { | |
var data = {}; | |
ws = new WebSocket("ws://192.168.33.10:8080/chat"); | |
ws.onopen = function() { | |
ws.send('hi'); |
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> | |
typedef int bool; | |
bool true = 1; | |
bool false = 0; | |
/** | |
* ファイルサイズをバイト単位で取得。 | |
* | |
* @param pName 対象ファイル名(IN) |
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
Sub outputHtml() | |
Call outputList | |
Call outputAriticle | |
End Sub | |
Sub outputList() | |
strFileName = ThisWorkbook.Path + "\list.html" |
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
'Option Explicit | |
Option Base 0 | |
'HTML出力 | |
Sub outputHtml() | |
Call outputList 'リストHTML出力 | |
Call outputWords '単語群HTML出力 | |
MsgBox ("完了しました。用語集.htmlを開いてください。") |
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 <stdlib.h> | |
#include "dog.h" | |
struct dog { | |
char name[ 20 ]; | |
}; | |
Dog Dog_create( char* name ) { | |
Dog t = calloc( sizeof( struct dog ) ,1); | |
memset( t->name, 0x00, sizeof( t->name ) ); |
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 "AnimalP.h" | |
int Animal_init(Animal animal, char* name) { | |
memset( animal->name, 0x00, sizeof( animal->name ) ); | |
strcpy( animal->name, name ); | |
} | |
int Animal_done( Animal animal ) { | |
/* do nothing */ |
OlderNewer