File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55int main (void )
66{
7- int intans ;
8- int sentakusi ; // システムの情報を表示するプログラム
7+ int intanswer ;
8+ int options ; // システムの情報を表示するプログラム
99 char answer [1024 ]; // コマンドを選ぶ選択肢 char配列なのは数字以外の文字が入力されてもバグを起こさないようにするため
1010 char yesno [1024 ]; // こちらは最後にもう一度選ぶかどうかをyかnで答える
1111 do {
1212 do {
13- sentakusi = 0 ;
13+ options = 0 ;
1414 // 選択肢を表示
1515 fputs ("\n\n\n" ,stdout );
1616 printf ("1:dmesg as superuser\n2:lsb_release -a\n3:lspci\n4:uname -a\n5:fastfetch" );
@@ -25,12 +25,12 @@ int main(void)
2525 ; // Do nothing
2626 } else {
2727 printf ("1~5以外を指定しています\n" );
28- sentakusi = 1 ;
28+ options = 1 ;
2929 }
30- } while (sentakusi != 0 );
31- intans = atoi (answer );
30+ } while (options != 0 );
31+ intanswer = atoi (answer );
3232
33- switch (intans ) {
33+ switch (intanswer ) {
3434 case 1 :
3535 system ("sudo dmesg" );
3636 break ;
You can’t perform that action at this time.
0 commit comments