0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[小マイコン]温度を表引きして遊ぶ(-9~99)

Posted at

いろいろ注意

  • arduinoでの予定は、未定

目的

  • 軽量

  • 高速

  • 見やすさ

  • 8ビット系の小メモリーでも動く様な、プログラムを書く

  • -9から99まで、それ以外は、##

プログラム

オンラインコンパイラpaiza



char tmp_t[] = {
"0001020304050607080910111213141516171819"
"2021222324252627282930313233343536373839"
"4041424344454647484950515253545556575859"
"6061626364656667686970717273747576777879"
"8081828384858687888990919293949596979899"
"########################################"
"########################################"
"########################################"
"########################################"
"########################################"
"########################################"
"########################################"
"##############-9-8-7-6-5-4-3-2-1"
};


#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    
    int a = 24;
        
    printf("%c",tmp_t[a*2+0]);
    printf("%c",tmp_t[a*2+1]);
       
    printf("\n");
    
}



24

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?