目的:输入任意长度整数数字,求出所含数字位数[tiger506@localhost C_C++]$cat./num_dig.c#include<stdio.h>int num_digit(int n){ int count=0;while(n!0){ count+;n=n/10;} return count;} int main(void){ int n;printf("Enter a ...
Code highlighting produced by Actipro CodeHighlighter(freeware)http://www.CodeHighlighter.com/ -->*创建人:牛腩*说明:只能向文本框里输入数字,缺点是可以输入中文,所以还要在焦点失去的时候做个判断*/$(function(){/给文本框加个...