This file contains hidden or 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
#!/bin/sh | |
# Arch Linux Auto Install Shell Script | |
# COPYRIGHT (c) 2012 α改 @alpha_kai_NET http://alpha-kai-net.info | |
#========================================================================================= | |
# ==About== | |
# 日本語版Version | |
# 現バージョンはver.0006_FIX_02です |
This file contains hidden or 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> | |
/* @meganenonattu : 「10個の数字を入力して、その数値を順番通りに出力すること。 | |
また、最後に数値の合計と平均を出力すること。(平均は小数まで表示させること)」だね */ | |
int main(void){ | |
/* forの変数i */ | |
int i; | |
/* ユーザー入力 */ |
This file contains hidden or 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 <time.h> | |
#include <stdlib.h> | |
int GetRandom(int min,int max); | |
int check(const char *name); | |
int main(void) | |
{ | |
int i; |
This file contains hidden or 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> | |
void main(void) | |
{ | |
int i; | |
/* 10の配列はa[0]~a[9]までだからね */ | |
int a[10]; | |
int sum = 0; | |
float average; | |
This file contains hidden or 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 <time.h> | |
#define NUM 10 | |
int GetRandom(int const max); | |
/* 動作テスト用のダミー */ | |
int main(void){ |
This file contains hidden or 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 <unistd.h> | |
#define ESC 0x1B | |
#if __unix || __linux || __FreeBSD__ || __NetBSD__ | |
#include <unistd.h> | |
#define SLEEP sleep(1); | |
#endif | |
#if _WIN32 || _WIN64 |
This file contains hidden or 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> | |
//Unix/Linux/(Free|Net)BSDでコンパイルする場合はこっちがインクルードされてマクロ入力される | |
#if __unix || __linux || __FreeBSD__ || __NetBSD__ | |
#include <unistd.h> | |
#define SLEEP sleep(1) | |
#endif | |
//Windowsでコンパイルする場合はこっちがインクルードされてマクロ入力される | |
#if _WIN32 || _WIN64 | |
#include <windows.h> | |
#define SLEEP Sleep(1000) |
This file contains hidden or 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> | |
int main(int argc,char *argv[]){ | |
char cmd_line[] = "`pkg-config --cflags --libs gtk+-2.0`"; | |
char cmd[500]; | |
if(argc==1){ | |
printf("引数を指定してください\n"); |
This file contains hidden or 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
/* make_string関数 */ | |
int make_string(const char *filename, char *buf, const int size){ | |
int i; | |
int sum; | |
int dum; | |
int ck; | |
char str[1000]; | |
int get_line; | |
int return_sum; |
This file contains hidden or 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 "my_lib.h" | |
int main(void){ | |
//RetrunStrings | |
char filename[]= "data.txt"; | |
char str[1000]; | |
int get_line; | |
int return_sum; | |
//main |
OlderNewer