In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "what are the examples of the use of C language". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn what are the examples of the use of C language.
Example 1
First of all, let's take a look at how the master calculates pi. One mouth is really poor, first shit.
# include
Long axiom 10000 beacons, cymbals 10000pr e recorder f [10001], g
Void main ()
{
For (; b! = c; f [baked +] = a par 5)
For (; dong0 e+d/a) 2 e=d%a > 5000; cmurmurf (".4d", printf), e=d%a)
For [b] * a meme f [b] = d% Murray gmaller dashi Muhami (Mustang Mustang, Mustang, Mustang)
}
Execution result:
Example 2
Simulated Turing machine prints Fibonacci numbers with a base of 2, double shit.
# include
# define f int
# define v (void) printf (
# define x), exit (1)
# define y) {if (n) cymbz (n), upright [I] = nympho [I] = nympho (n): '0cm;}
# define z (a) (b) (f *) (~ 1cm * a ^ (f) b)
# define k (l) if (! (l = (f *) malloc (sizeof (l) v 23 m x if (1 & (f) l) v 39 m x 1 =
R (pquoise QQ) f char o [81]; faun fuzz [81]; fo [40] = '0mm + (1 minute Q)
For (; I > = 0poliimury u=d?z (pmaeq): Q possibilityfolppositionfor (itim41boxi2) v m x Natura > 1accounc [1]: n
/ * v "\ t\ tV\ n"); * /
K (Q) _ 0 _
While (a few days later) {
/ * r (Q _ b); * /
For (;; uplink 3) {
U = * u?u:n
If (~ 1cm / u) = = A / C & (1m / Q) 3
If (16roomu [2]) putchar (u [3])
If (4 roomu [2]) * Q | = 1 else else
If (baked roomd) grubbish
Grangz (qPowerp)
If (! G) {k (g) (f) QTX * Q ^ = (f) g;}
}
Pamphlet qlocuit qlocugsmen bliss 1murd
}
/ * r (Q _ exit _ p _ (b)); v "\ n"); * / dint (0)
}
Execution result:
Example 3#include
Main (int t _ int _, char* a)
{
Return! 0
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 288
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.