【有奖报名】STM32线上技术日,探索2024重磅新品
【学习有礼】GUI专场:TouchGFX GUI开发实践小课堂
【Free】新品STM32H503免费申请!高性能!高安全性!尽显锋芒!
倒计时6活动之有奖学习打卡
【中奖公布】2023年度粉丝节活动开奖了~
【爆料提前看】新品STM32U545要来尝鲜了,你准备好了吗?
开启2024年新篇章!感谢STM32社区的新年礼物~
【金币攻略】一问再一答,你的金币就送达
【NUCLEO-C031C6】初始化 FOC
【NUCLEO-C031C6】环境搭建 FOC初始化配置
& g3 a* n, D2 ~* l8 [ H9 ~
public static void main(String[] args) {
while(true) {
String Mylover = "";- U4 [4 O& ?/ C6 |3 h9 `; K" ~4 P
for (int i = 0; i < 3; i++) {
char a = (char)(Math.random() * 26 + 65);
Mylover = Mylover + a;
}
if (Mylover.equals("YOU")) {
System.out.println("My dream comes true!");- ]; k/ b6 q2 T5 o% W) ]
break;2 S# d6 Y) E% C( b. \. w! P6 L
}
}
}
}; J$ r0 `! t% t- \# Q: Q+ B
/ M- }9 {# ^. Q/ s2 Q! R
if(you love me ?)
{+ @2 c5 @& i) [, i
printf("hellow word");
}& |5 Z2 ?3 E! j2 l; q
else if (you love others ?)% E# _% i, @' g- B, [
{
go to lineone ;
}
if(you love me ?)6 w5 V; Z/ ~% K0 o- f/ R. |
{& M& u: K8 X3 u
printf("hellow word");5 O2 @( n2 q, l. A- r
}: R9 u! R( N4 L! ]7 V/ _. _& c
else if (you love others ?)
{
go to lineone ;
}
8 H3 ]$ p8 s7 |4 |( S
这是我最喜欢的传感器赋能工业物联网
5 X) \. W9 ]5 a* ~! U8 t5 n
以前st发布那个mems还专门开过一个视频宣讲会,略有了解。st的mems比市面上的同类产品具有更高的精度和更低的功耗,虽然我对这些不敏感,可这是一种进步,更是一种技术优势。而且还有配套的pc软件协助开发,视频中的应用也非常多,我印象最深的是那个手表,借助mems的手势控制,可以把按钮去掉了都。对于新手更关注的还是入门性,mems的开发板十分丰富,视频中介绍的就有8个,你想怎么测就怎么测。十分强大内容" V( A2 c1 q' Y/ [- z' h$ ~9 Y* U9 t
/ j/ g' R+ R$ t& [
学习了,这个做的很不错,蛮全面的% \) o% a! b% G5 U" k
#include<windows.h> S: L4 Q& ?, b
void color(int m) : t5 Z' g$ j" R1 G9 G6 U
{1 h) a6 H K \7 Z7 M
HANDLE consolehend;
consolehend = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(consolehend, m);
}
int main()/ z0 s, K! D6 J* D
{
int s=0;: O" h4 g3 W3 T+ m. a: s
char str[]=" 我喜欢你! ";* K& n+ P6 \# L" f9 e0 K6 z
double x,y;
for(y=1.3;y>=-1.1;y-=0.11)% w: w1 K0 u2 N
{
for(x=-2;x<1.4;x+=0.05)$ Y: v& w0 F1 ]8 ^
{/ w0 V) _$ h2 N- \6 A# v7 A
if((((x*x+y*y-1)*(x*x+y*y-1)*(x*x+y*y-1)-x*x*y*y*y)<0))9 q! G. m1 D* M. X) A! S2 _
{
s++;) X5 R& P! B7 G7 u3 v
if(s>=378 && s<=392)* N. K2 M( U0 L- l
{, ?6 q4 u0 U& N, S5 C8 N4 a
color(0x0b);1 D+ x6 E9 H4 g1 h2 x3 w5 H0 d( M
printf("%c", str[s-378]);
Sleep(50);
}
else) X4 _2 l; S9 D
{
if(s%4==1){color(0x0a);printf("l");}
if(s%4==2){color(0x0e);printf("o");}7 ` A: K' s* p1 d
if(s%4==3){color(0x0c);printf("v");}
if(s%4==0){color(0x0d);printf("e");}9 [: B/ W2 L' I- \4 a, e
Sleep(1);
}
}
else
printf(" "); E! n$ a' Z$ H3 W O
2 Q6 p# V0 h' P6 s; ?, J
}
printf("\n");2 V4 W; U; K1 K. s
}
printf("按任意键退出!");
getchar();
}
; |! J) [- o4 N% {! e1 `
" \; O4 T _/ l$ ~, G
#include<windows.h>
void color(int m)
{
HANDLE consolehend;; K, u3 p3 Y$ C
consolehend = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(consolehend, m);1 V# \( H# G: _- f
}5 P( Q! U$ f5 M2 _) t" b$ ?' j
int main()
{
int s=0;+ Y# t, e6 Q: i& D4 Q
char str[]=" 我喜欢你! ";
double x,y;
for(y=1.3;y>=-1.1;y-=0.11)
{8 P. H) l' D2 t& v+ h2 @$ K: r/ m
for(x=-2;x<1.4;x+=0.05)' ~' d9 ]0 C& K' J
{
if((((x*x+y*y-1)*(x*x+y*y-1)*(x*x+y*y-1)-x*x*y*y*y)<0))
{
s++;
if(s>=378 && s<=392)0 h7 E6 i) o, @" n( f2 ~6 _! R
{9 P, o9 d7 t4 R- `- F& o% {
color(0x0b);
printf("%c", str[s-378]);
Sleep(50);6 Q; s# M2 b" q+ P' _0 F' ~ l
}
else! x2 Y X7 X! z! h- u
{
if(s%4==1){color(0x0a);printf("l");}
if(s%4==2){color(0x0e);printf("o");}
if(s%4==3){color(0x0c);printf("v");}* }0 Q6 q3 b7 L' s% _; t- W
if(s%4==0){color(0x0d);printf("e");}4 }) h* C7 l- Z6 W
Sleep(1);7 y5 t% J# i9 W7 B5 {
}
}& C7 r; |3 P: }, X6 t
else
printf(" ");6 a; A5 t. C2 k: H1 ?/ |
}' M5 B7 @, {% c& F( Z
printf("\n");
}/ v5 T. i4 A: ]
printf("按任意键退出!");
getchar();
}