ページ 11

コンパイラって何をつかってますか

Posted: 2019年7月07日(日) 19:33
by たけひこまる
コンパイラによって表示されるものは変わるものですか?ウィルスの入っているコンパイラもありますか?

Re: コンパイラって何をつかってますか

Posted: 2019年7月08日(月) 00:05
by Math
VS2019,VS2017Community, CX-Bulder, MinGW など。
>コンパイラによって表示されるものは変わるものですか?
おおいに変わります。update でもかわりますよ。

>ウィルスの入っているコンパイラもありますか?
長年にわたり使っていてそういう事はありませんでしたよ。

Re: コンパイラって何をつかってますか

Posted: 2019年7月08日(月) 08:28
by dic
まぁ、がんばれや
スライム勇者

Re: コンパイラって何をつかってますか

Posted: 2019年7月08日(月) 14:35
by Math
[Please bloom where God has placed you.]
 Rather than give up, make the best of your life and bloom like a flower.
To bloom is to live happily.
Let your joy make others happy.
Your smile is contagious.
When you are happy and show it by your smile
Others will know it and are happy too.
God has planted you in a special place.
If you know it share it with others,your personality will shine.
 It is that "shine" which we call "Bloom"
 When I bloom in the place
 where God has placed me
 My life becomes a beautiful flower
 in the garden of life.
 Bloom where God has planted you
 

Re: コンパイラって何をつかってますか

Posted: 2019年7月11日(木) 12:27
by プログラマ見習い
私は現在マイクロソフト製コンパイラVisualStudio2017Communityを使っております。

コンパイラによって表示が異なる事もあります。例えば、文字型や整数型などの変数の型の最大値や最小値は、コンパイラによって異なる場合もあります。また、特定の会社が提供しているコンパイラでしか使えない関数もあります。

参考書や他のサイトでの検索の方が詳しいので、ここではC言語でchar型の最大値と最小値を調べる一例を紹介しておきます。

コード:

 

#include <stdio.h>
#include <limits.h>

int main(void){

 printf("char :%d~%d\n"CHAR_MIN,CHAR_MAX);
 printf("sined char :%d~%d\n"SCHAR_MIN,SCHAR_MAX);
 printf("unsinged char :%d~%d\n"0,CHAR_MAX);

return 0;
}

以上です。

Re: コンパイラって何をつかってますか

Posted: 2019年8月03日(土) 04:45
by dic
英語がスラスラできるなんてすごいですね!