たなしょのメモ

日々勉強していることをつらつらと

2018-08-30から1日間の記事一覧

C++に挑戦してみよう。ファイルとストリーム 3日目

コード #include <time.h> #include <stdio.h> typedef struct { char name[100]; double height; double weight; } Student; int main(void) { FILE *fp; int num; Student std[num]; char name[100]; double weight, height; printf("人数を入力して下さい:"); scanf("%d",</stdio.h></time.h>…