bool mycheck(char t[])
{
for(char *p=t;*p!='\0';p++) if(!((*p>='a' && *p<='f') || (*p>='A' && *p<='F') || (*p>='0' && *p<='9'))) return false;
return true;
}
阅读全部
|
wp231957
贴于 2018年1月2日 14:46
hide
bbsi
#include <stdio.h>
#include <string.h>
int hextodec(char t[]);
int mypow(int s);
int main()
{
char t[100]={'\0'};
printf("请输入一个十六进制数:");
scanf("%s",t);
int k=hextodec(t);
......................
阅读全部
|
wp231957
贴于 2018年1月2日 14:23
hide
bbsi
#include<stdio.h>
int main (void)
{
int m,n;
int a,b,i;
printf("输入奇数n\n");
scanf("%d",n);
m=(n-1)/2;
for(i=1;i<=m;i++){
for(a=1;a<=m+1-i;a++){
printf(" ");
}
......................
阅读全部
|
配饭的白菜
贴于 2017年12月26日 12:49
hide
bbsi
#include<stdio.h>
void prtStarLine(int n)
{int i=0;
for(i=0;i<n;i++) printf("*");
return 0;
}
int main(void)
{int n;
double x,y,z,w;
scanf("%d",n);
......................
阅读全部
|
小小白菜
贴于 2017年12月14日 19:41
hide
bbsi
#include<stdio.h>
int main()
{
double x,s;
printf("hewllo\n");
}
阅读全部
|
盘子里的午餐
贴于 2017年12月11日 11:55
hide
bbsi
#include <stdio.h>
void main()
{
int a,b=322;
float x,y=8.88;
char cl='k',c2;
a=y;
x=b;
a=cl;
c2=b;
printf("%d,%f,%d,%c",a,x,a,c2);
......................
阅读全部
|
大大西瓜
贴于 2017年12月7日 15:04
hide
bbsi
#include<stdio.h>
#include<string.h>
int main()
{
char str1[20],str2[20];
int num;
printf("num=1是小写换大写,num=2是大写换小写,num=0是推出\n\n");
while(1)
{
printf("num=");
scanf("%d",&num);
......................
阅读全部
|
icl菜鸟
贴于 2017年12月5日 23:01
hide
bbsi
Dim i As Integer
Dim proc As Process()
'判断excel进程是否存在
If System.Diagnostics.Process.GetProcessesByName("excel").Length > 0 Then
proc = Process.GetProcessesByName("excel")
'取得名为excel进程个数,全部关闭
For i=0 to proc.Length -1
proc(i).Kill()
Next
End If
proc = Nothing
阅读全部
|
无情浪子哥
贴于 2017年11月16日 16:34
hide
bbsi
定义四个变量,如 DX,XY,TgtID,Layer
定义临时变量 S ,临时数组 A()
do
s=读一行
if instr(s,",")>1 then '忽略空行
a=split(s,",") '分解为二段
if a(1)=0 then '为tgtid 或 layer 或尾
if a(0)>???? then 'Layer的最小值-1 ,或者可能的 TgtID 最大值
layer=a(0) '取 Layer
elseif a(0)=-666666.0 then '段结束
layer=0 '置段标记
......................
阅读全部
|
无情浪子哥
贴于 2017年11月16日 16:33
hide
bbsi