C_ÅжÏÓï¾äifµÄÒ»°ãʹÓÃ
Ô´Âë:
# include <stdio.h>
int main()
{
int x, y, z, mid, dec;
printf("ÇëÈÎÒâÊäÈëÈý¸öÕûÊý£º\n");
scanf("%d %d %d", &x, &y, &z);
/* ÀûÓÃmidÔÚx¡¢y¡¢z±È½Ïʱ½øÐÐÊýÖµ½»»»£¬Ê¹µÃx×î´ó£¬z×îС */
if(x < y)
{
mid = x; x = y; y = mid;
}
if(x < z)
{
mid = x; x = z; z = mid;
}
if(y < z)
{
mid = y; y = z; z = mid;
}
printf("ÇëÊäÈëÒ»¸öÕûÊý£¬³ÌÐò¸ù¾ÝÆäÕý¸ºÅжÏÊä³ö£º\n");
scanf("%d", &dec);
if(dec >= 0) printf("×î´óÕûÊýΪ£º%d\n", x);
else printf("×îСÕûÊýΪ£º%d\n", z);
return 0;
}
Ïà¹ØÎĵµ£º
VCÖÐÏÂÃ漸¸ö½á¹¹Ìå´óС·Ö±ðÊǶàÉÙÄØ
struct MyStruct
{
double m4;
char m1;
int m3£»
};
s ......
#include<reg52.h>
#include<intrins.h>
#define uint unsigned int
#define uchar unsigned char
uint date;
uchar mm=0,n=0;
uint k1,k2,k3,k4,k5,k6;
uchar code b[]={
0x3f,0x06,0x5b,0x4f,0x66, //0,1,2,3,4,
0x6d,0x7d,0x07,0x7 ......
b/s ÊÇ brower/server ¾ÍÊÇÓÃä¯ÀÀÆ÷(Èçie)ΪӦÓóÌÐò¿Í»§¶Ë²Ù×÷·þÎñÆ÷¡£ÕâÑùÓÃä¯ÀÀÆ÷À´²Ù×÷¼òµ¥Ò×Ó㬵«ÊǶÔÊäÈëûÓкܺõÄÑéÖ¤¡£Â߼ʵÏÖ²»¶à¡£±¾µØÖ»ÊÇÓÃÓÚ»ñÈ¡Êý¾ÝÈ»ºó´ó²¿·ÖÑéÖ¤ÐèÒªÌá½»·þÎñÆ÷À´Íê³É¡£
c/s ÊÇclient/server ¿Í»§¶ËÈí¼þÔòÊÇÒ»¸öÓµÓкܶàÂß¼ÑéÖ¤µÄÈí¼þ£¬±¾µØÑéÖ¤³É¹¦ºó²ÅÌá½»·þÎñÆ÷¡£
ÎÒÕÒµ½µÄ¸ ......
C#´ÓJava¼Ì³Ð¶øÀ´µÄÌصã
¡¡¡¡Àà:ÔÚC#ÖÐÀàµÄÉêÃ÷ÓëJavaºÜÏàËÆ.ÕâÊǺÏÀíµÄÒòΪ¾Ñé¸æËßÎÒÃÇJavaÄ£Ð͹¤×÷µÃºÜºÃ.JavaµÄ¹Ø¼ü×ÖimportÒѾ±»Ìæ»»³Éusing,ËüÆðµ½ÁËͬÑùµÄ×÷ÓÃ.Ò»¸öÀ࿪ʼִÐеÄÆðµãÊǾ²Ì¬·½·¨Main().ÏÂÃæµÄHello World³ÌÐòչʾÁË»ù±¾µÄÐÎʽ:
¡¡¡¡using System;
¡¡¡¡class Hello
¡¡¡¡{
¡¡¡¡static v ......
Ô´Âë:
# include <stdio.h>
int main()
{
/* ¶¨ÒåÁËÒ»¸öÎÞ·ûºÅ×Ö·ûÐͱäÁ¿£¬´Ë±äÁ¿Ö»ÄÜÓÃÀ´´æ´¢ÎÞ·ûºÅÊý */
unsigned char result;
int a, b, c, d;
a = 2;
b = 4; ......