Discuss Scratch

m0303
Scratcher
100+ posts

Scratch知識帳!!

kan217 wrote:

[[この投稿は引用できません

kan217 wrote:

mikikoii wrote:

kan217 wrote:

[[この投稿は引用できません
どうやった!?
引用オワター\(^o^)/
m0303
Scratcher
100+ posts

Scratch知識帳!!

引用オワター\(^o^)/
m0303
Scratcher
100+ posts

Scratch知識帳!!

削除

Last edited by m0303 (April 5, 2017 08:44:09)

m0303
Scratcher
100+ posts

Scratch知識帳!!

m0303 wrote:

引用オワター\(^o^)/
masa2004
Scratcher
1000+ posts

Scratch知識帳!!

さくじょ

Last edited by masa2004 (April 5, 2017 10:39:55)

masa2004
Scratcher
1000+ posts

Scratch知識帳!!

apple502j wrote:

#include <stdio.h>
#include <stdlib.h>
#define ENTER_LINE 20
#define VERSION 1.00
FILE *fp;
char fname[256];
unsigned char c;
int no = 0;
int gchar;
int inputed;
int repart;
int main(){
	do {
		inputed = 0;
		puts("----------------------------------------");
		printf("BINVIEW.EXE VER%3.2f\n",VERSION);
		puts("----------------------------------------");
		fflush(stdin);
		printf("ファイル名を入力して下さい>");
		gets(fname);
		fp = fopen(fname,"rb");
		if (fp == NULL){
			printf("%s が開けませんでした\n",fname);
			exit(EXIT_FAILURE);
		}
		while(fread(&c,sizeof(char),1,fp) != 0){
			printf("%02X ",c);
			no++;
			if (no % ENTER_LINE == 0) printf("\n");
		}
		fclose(fp);
		printf("\n");
		puts("----------------------------------------");
		puts("別ファイルを読み込み:O");
		puts("終了:X");
		do {
			fflush(stdin);
			gchar = getchar();
			switch (gchar) {
				case 'X':
				case 'x':
					inputed = 1;
					exit(EXIT_SUCCESS);
					break;
				case 'O':
				case 'o':
					inputed = 1;
					repart = 1;
					break;
				default:
					break;
			}
		} while(inputed == 0);
	} while(repart);
	exit(EXIT_SUCCESS);
}
ちなみにそれ、何のコードですか?
masa2004
Scratcher
1000+ posts

Scratch知識帳!!

BBコードウィキペディアの記事です。参考になります。スクラッチのディスカッションでも大体使えると思います。ソースみて使ってください。
使えるか確認
太字 text
斜体 text
下線付き text
サイズ text
赤色 text
引用 text
整形済み code
  • 順序なし list 1
  • 順序なし list 2
  • 順序なし list 3
  1. 順序あり list 1
  2. 順序あり list 2
  3. 順序あり list 3

http://www.wikipedia.org/
Wikipedia

Last edited by masa2004 (April 5, 2017 10:52:49)

mikikoii
Scratcher
1000+ posts

Scratch知識帳!!

masa2004 wrote:

apple502j wrote:

#include <stdio.h>
#include <stdlib.h>
#define ENTER_LINE 20
#define VERSION 1.00
FILE *fp;
char fname[256];
unsigned char c;
int no = 0;
int gchar;
int inputed;
int repart;
int main(){
	do {
		inputed = 0;
		puts("----------------------------------------");
		printf("BINVIEW.EXE VER%3.2f\n",VERSION);
		puts("----------------------------------------");
		fflush(stdin);
		printf("ファイル名を入力して下さい>");
		gets(fname);
		fp = fopen(fname,"rb");
		if (fp == NULL){
			printf("%s が開けませんでした\n",fname);
			exit(EXIT_FAILURE);
		}
		while(fread(&c,sizeof(char),1,fp) != 0){
			printf("%02X ",c);
			no++;
			if (no % ENTER_LINE == 0) printf("\n");
		}
		fclose(fp);
		printf("\n");
		puts("----------------------------------------");
		puts("別ファイルを読み込み:O");
		puts("終了:X");
		do {
			fflush(stdin);
			gchar = getchar();
			switch (gchar) {
				case 'X':
				case 'x':
					inputed = 1;
					exit(EXIT_SUCCESS);
					break;
				case 'O':
				case 'o':
					inputed = 1;
					repart = 1;
					break;
				default:
					break;
			}
		} while(inputed == 0);
	} while(repart);
	exit(EXIT_SUCCESS);
}
ちなみにそれ、何のコードですか?
パイソンだと思います
kan217
Scratcher
1000+ posts

Scratch知識帳!!

m0303 wrote:

引用オワター\(^o^)/
引用できる
inoking
Scratcher
1000+ posts

Scratch知識帳!!

mikikoii wrote:

masa2004 wrote:

ちなみにそれ、何のコードですか?
パイソンだと思います
言語はCですね。
[code][/code]
は言語も指定するとその言語で色分けとかしてくれるようですね。
[code c][/code]
でCのようです。

Powered by DjangoBB