next up previous contents
Next: B.3 プログラムリスト: dat4.c Up: 付録B 音符の数値化と量子化のプログラム Previous: B.1 プログラムリスト: dat2.c

B.2 プログラムリスト: dat3.c

  1: #include <stdio.h>
  2: #include <stdlib.h>
  3: 
  4: main(){
  5:   char s[20];
  6:   while(gets(s)!=NULL){
  7:     if(isalpha(s[0])){
  8:       putchar('4');
  9:     }
 10:     if(s[0]!='|'){
 11:       puts(s);
 12:     }
 13:   }
 14: }


Deguchi Toshinori
1999年03月23日 (火) 15時43分49秒 JST