¹ØÓÚUbuntu LinuxϵͳÏÂʹÓÃCµÄ<math.h>ÎÊÌâ
Ïò´ó¼ÒÇë½ÌÒ»¸öÎÊÌ⣺
µÚÒ»¸ö³ÌÐò¿ÉÒÔ±àÒëͨ¹ý£º
C/C++ code:
1 // P95: 2.±à³ÌÌâ (6)µ÷Óÿ⺯Êý±à³ÌÇó±í´ïʽcos(39.5¶È)+(eµÄ2.916´ÎÃÝ)+(3.16µÄËãÊý·½¸ù)
2
3 // The begining of C program: test03-06.c.
4
5 // Header files included.
6 #include <stdio.h>
7 #include <math.h>
8
9 // Macro definition.
10 #define PI 3.1415926
11
12 // Main function's declaration.
13 int main ( void )
14 {
15 long int temp=0;
16 float result=0.0;
17 result = cos(39.5*PI/180) + exp(2.916) + sqrt(3.16);
18 temp = (long int) (result * 100);
19 temp = (long int) ((result*100 - temp)*2 + temp);
20 result = temp / 100.0;
21 printf ( "Result: cos(39.5*PI/180) + exp(2.916) + sqrt(3.16) = %.2lf\n",
22 result );
23
24 return (0);
25 }
26
27 // The end of C program: test03-06.c.
28
µÚ¶þ¸ö³ÌÐò²»ÄܱàÒëͨ¹ý£º
C/C++ code:
1 // P120: 3.±à³ÌÌâ (3)
2
3 // The begining of C program: t
Ïà¹ØÎÊ´ð£º
QQȺ 29152388
ÓÑÇéUP
°ï¶¥
up
°ïup
up Ö§³Ö£¡
up jf
...ÄѵÀÓзÖ..?
up up up
Ï£ÍûÓеüӷ֣¬¹þ¹þ¡£
Ö§³Ö£¬ÎÒ¼ÓÁË£¬Ï£ÍûÂ¥Ö÷ÄܼÓÎÒ£¬¹²Í¬Ñ§Ï°¹þ
¼ÓÁË¡£
¶¥ÉÏ£¬Ã¿ÌìÊÕ»ñÒ»µã£¬Ö§³Ö ......
±àÒëÆ÷£ºC-Free4
mysql µ¥¶À°²×°µÄ£¬ÏÖÔÚΪapache+php+mysql¿ÉÒÔʹÓá£
×î½üÔÚÁ·Ï°c£¬c++£»ÏëÓÃc£¬c++Á¬½ÓÏÂÎÒµÄmysql£¬ºÃ¶àµØ·½¶à˵mysql.hÕÒ²»µ½¡£¶øÇÒÎÒmysqlûÓÐËùνµÄincludeÎļþ¼Ð°¡¡£
Íü¸ßÊÖÖ¸µãÒ»¶ ......
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
×ÉѯQQ£º269562808
bzip2recover
¹¦ÄÜ˵Ã÷£ºÓÃÀ´ÐÞ¸´Ë𻵵Ä.bz2Îļþ¡£
Óï·¨£ºbzip2recover[.bz2ѹËõÎļþ]
²¹³ä˵Ã÷£ºbzip2ÊÇÒÔÇø¿éµÄ·½Ê½À´Ñ¹ËõÎļþ£¬Ã¿¸öÇø¿éÊÓΪ¶ÀÁ¢µÄµ¥Î»¡£Òò´Ë£¬µ±Ä³Ò»Çø
¿éËð»µÊ±£¬±ã¿ÉÀû ......
ÏÖÔÚÐèÒªÔÚÒ»¸öǶÈëʽϵͳÖÐʵÏÖʱ¼äº¯Êý£¬±àÒëÆ÷δÌṩtime¿âº¯Êý£¬ÇëÎÊ´ó¼ÒÈçºÎÓÃcÓïÑÔʵÏÖʱ¼äº¯Êý°¡£¿
ÄêÔÂÈÕʱ·ÖÃë µ½ ÕûÊýÃ루´Ó1970Ä꿪ʼ£© Ö®¼äµÄÏà¹Ø×ª»»°¡
ÀàËÆmktime ºÍlocaltimeµÄ¹¦ÄÜ£¬Ð»Ð»
mktime ......