- 187 名前:デフォルトの名無しさん mailto:sage [2009/02/25(水) 11:38:22 ]
- #include <stdio.h>
#include <string.h> struct address{ char name[20]; char jusyo[21]; int age; }; int main(void) { struct address abc; int s = 1; if(s = 1){ char name[30]; char jusyo[70]; int age; printf("名前? "); scanf("%s", &name); printf("住所? "); scanf("%s", &jusyo); printf("年齢? "); scanf("%d", &age); abc.age = age; strcpy(abc.name, jusyo); } return(0); } C言語を学習しています。 上プログラムでキーボードから日本語を入力し出力させたいのですが、どうすればいいのでしょうか? Cygwinを使っています。
|

|