このソースコードが実行されてるのか分かりません。
Posted: 2011年12月14日(水) 03:36
全くの初心者です。
#include< stdio.h >
int main(void){
double num;
double ans = 10;
scanf("%lf",&num);
ans *= num;
printf("%fを10倍すると%fです。",num,ans);
return 0;
}
ビルドしたら、こうなりました。
GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Thu Nov 3 21:59:02 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys000
[Switching to process 359 thread 0x0]
ソフトは、Xcodeを使ってます。
すいませんが、返答よろしくお願いします。
#include< stdio.h >
int main(void){
double num;
double ans = 10;
scanf("%lf",&num);
ans *= num;
printf("%fを10倍すると%fです。",num,ans);
return 0;
}
ビルドしたら、こうなりました。
GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Thu Nov 3 21:59:02 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys000
[Switching to process 359 thread 0x0]
ソフトは、Xcodeを使ってます。
すいませんが、返答よろしくお願いします。