Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

C²ËÄñ£¬Ò»µÀ¼òµ¥Ì⣬°ïÎÒ¿´ÏÂÄÄÀïÓÐÎÊÌâ

±àдһ¸ö³ÌÐò£¬Ê¹Æä´Ó±ê×¼ÊäÈë¶ÁÈ¡×Ö·û£¬Ö±µ½Óöµ½Îļþ½áβ¡£¶ÔÓÚÿ¸ö×Ö·û£¬³ÌÐòÐèÒª¼ì²é²¢±¨¸æ¸Ã×Ö·ûÊÇ·ñÊÇÒ»¸ö×Öĸ¡£Èç¹ûÊǵϰ£¬³ÌÐò»¹¾Í±¨¸æ¸Ã×ÖĸÔÚ×Öĸ±íÖеÄÊýֵλÖᣵ¹£¬CºÍcµÄ×ÖĸλÖö¼ÊÇ3.¿ÉÒÔÏÈʵÏÖÕâÑùÒ»¸öº¯Êý£¬½ÓÊÜÒ»¸ö×Ö·û²ÎÊý£¬Èç¹û¸Ã×Ö·û Ϊ×ÖĸÔò·µ»Ø¸Ã×ÖĸµÄÊýֵλÖ㬷ñÔò·µ»Ø-1£»

ÏÂÃæÊÇÎÒдµÄ´úÂ룺

#include <stdio.h>
#include <string.h>
#include <ctype.h>
int position(char);
int main()
{
char m[100];int i,n;
printf("please input a string: ");
gets(m);
n=strlen(m);
for(i=0;i <n;i++)
{
char ch;int h;
ch=m[i];
h=position(ch);
if(h>=0)
printf("The position of %c in the alpabet is %d\n",ch,h);
}
return 0;
}
int position(char j)
{
if(isalpha(j))
return  ('j'-'a'+1);
else return -1;
}
ÏÂÃæÊÇÖ´Ðнá¹û£º
please input a string:string
the position of s in alpabet is 10
the position of t in alpabet is 10
the position of r in alpabet is 10
the position of i in alpabet is 10
the position of n in alpabet is 10
the position of g in alpabet is 10
ÎÒµÄÎÊÌâÔÚÄÄÄØ£¿



return  ('j'-'a'+1);

¸Ä³Éreturn (j-'a'+1);

return  ('j'-'a'+1);
jµÄµ¥Ò


Ïà¹ØÎÊ´ð£º

¸ÕѧC£¬ÓÃCʵÏÖ±àÂë - C/C++ / CÓïÑÔ

#include"stdio.h"
#include"stdlib.h"
void ContrTwo(char i)
{
char str1[8];
itoa(i,str1,2);
printf("%s",str1);
}
unsigned char leftRot(char str,int i);
unsign ......

VFPÈçºÎµ÷ÓÃCº¯Êý - ÆäËûÊý¾Ý¿â¿ª·¢ / VFP

ÇëÎÊVFPÖÐÈçºÎµ÷ÓÃC/C++º¯Êý£¿

ÄãÒªµ÷ÓÃʲô¹¦Äܵĺ¯Êý£¿Òª¿´¿´VFPÖÐÓÐûÓжÔÓ¦µÄº¯Êý£¬Èç¹ûÓоÍÊ¡×ÅÔÙµ÷ÓÃÁË¡£Èç¹ûûÓУ¬¿ÉÒÔ½«C/C++º¯Êýд¸öDLL»òFLL£¬È»ºóÔÚVFPµ÷Óü´¿É¡£

Ê®¶¹Èý ÀÏʦ£¬Ôõô²ÅÄÜÐÞ¸Ä×Ô¼ºµÄ ......

linuxÏÂCÓïÑÔ¿ª·¢oracleµÄÎÊÌâ¡£

Á½¸öÎļþ1.PC£¬1.inc
1.PCÓвÙ×÷oracleÊý¾Ý¿âµÄ ,1.incÒ²ÓвÙ×÷oracleÊý¾Ý¿â 
ÔÚÆäËûÊý¾ÝÖÐÈçinformix ÖÐ$include 1.inc¾Í¿ÉÒÔʹÓÃÁË
ÔÚORACLEÊý¾Ý¿âÖØ $include 1.inc²»¿ÉÓà EXEC SQL include 1.incÒ²²»¿É ......

¸ß·ÖÇó!×îºÃÊÇC/C++ - C/C++ / CÓïÑÔ

·Ö±ðÓýṹ»¯·½·¨ºÍÃæÏò¶ÔÏó·½·¨±à³ÌʵÏÖÏÂÃæÒªÇó£º
¶ÔCircleºÍRectangleʵÏÖÒÔϹ¦ÄÜCenter,Move,Rotate,Print.
×Ô¼ºÏȶ©ÒÔÏ£¬ÕâÊÇÒ»¸ö¸Õѧϰ¼ÆËã»úµÄÈËÎÊÎÒµÄ


ѧϰ£¬¿´¿´

¼ÌÐø¶¥Å¶

ѧϰÁË¡£

go o ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ