C# to vb.net 代码转换System.Runtime.InteropServices.DllImport("user32.dll") _
Public Shared Function SetWindowLong(hWnd As IntPtr, nIndex As Integer, wndproc As Integer) As Integer
End Function
System.Runtime.InteropServices.DllImport("user32.dll") _
Public Shared Function GetWindowLong(hWnd As IntPtr, nIndex As Integer) As Integer
End Function
Public Const GWL_STYLE As Integer = -16
Public Const WS_DISABLED As Integer = H8000000
Public Shared Sub SetControlEnabled(c As Control, enabled As Boolean)
If enabled Then
SetWindowLong(c.Handle, GWL_STYLE, (Not WS_DISABLED) And GetWindowLong(c.Handle, GWL_STYLE))
Else
SetWindowLong(c.Handle, GWL_STYLE, WS_DISABLEDGetWindowLong(c.Handle, GWL_STYLE))
End If
End Sub
授人以渔c转vb.net下载:
这个网站超牛逼
如何将C#语言转换为VB.net语言?晕,我下过这么个软件,就是从C#转换成VB.NET
不过
我找到了一个网址
打开就可以了
在线翻译
谁有VB程序下载网址VB新势力-vb下载 vb6下载 vb教程 vb源码 vb试题 vb源代码 vb控件 vb源程序 vb书籍 vb工具 vb6.0下载vb.net教程vb.net源码
测试过c转vb.net下载,可以下载
C语言转换为VB.NETOption Explicit On
Option Strict On
Imports System
Module Program
Sub Main()
Dim y,m,t As Integer
begin:
' 输入数据时一行一个
y=CInt(Console.ReadLine())
m=CInt(Console.ReadLine())
t=CInt(Console.ReadLine())
If y
200 Then
Console.WriteLine("ERROR")
goto begin
End If
pr(y,m,t)
Console.Write("Press any key to continue . . . ")
Console.ReadKey(True)
End Sub
Function pr(y As Integer,m As Integer,t As Integer) As Integer
Dim ye,[Me],i As Integer
ye=CInt((m t-2)/12 y)
[Me]=(m t-2) Mod 12 1
End If
End Function
Function mday(y As Integer,m As Integer) As Integer
Dim day As Integer()={0,31,28,31,30,31,30,31,31,30,31,30,31}
Dim ad As I
vb.net的下载地址是什么???下载地址:
网页地址:;displaylang=zh-cn
自己到网上找注册码
哪位高手能帮把c转换成vb#include stdio.h
#include math.h
#define Tm31803
#define Tm42327
#define T4800
#define H298 -2683261
#define Hm356928
#define Hm4118407
#define T0533
float mix(float A,float B,float C,float D,float E,float T)
{ float H;
H=A*(T) B*(T)*(T)/2000-C*100000/(T) D*(T)*(T)*(T)/3000000-E*50000000/((T)*(T));
return(H);
}
main()
{
float A1,B1,C1,D1,E1,H1;
float A2,B2,C2,D2,E2,H2;
float A3s,B3s,C3s,D3s,E3s,H31;
float A3l,B3l,C3l,D3l,E3l,H32;
float H3;
float H5;
float A4s1,B4s1,C4s1,D4s1,E4s1,H41;
float A4s2,B4s2,C4s2,D4s2,E4s2,H42;
float A4l,B4l,C4l,D4l,E4l,H43;
float H4;
float x,Tad1,Tad2,Tad3,Tad,F,m1,m2;
FILE *fp;
fp=fopen("temp-Al2O3.txt","w");
if((fp=fopen("temp-Al2O3.txt","w"))==NULL)
exit(0);
A1=98.282; B1=77.822; C1=-14.853; D1=E1=0;
H1=mix(A1,B1,C1,D1,E1,T0)-mix(A1,B1,C1,D1,E1,298);
printf("H1=%f\n",H1);
A2=31.376; B2=-16.393; C2=-3.607; D2=20.753; E2=0;
H2=mix(A2,B2,C2,D2,E2,T0)-mix(A2,B2,C2,D2,E2,298);
printf("H2=%f\n",H2);
A3s=150.021; B3s=12.390; C3s=E3s=D3s=0;
H31=mix(A3s,B3s,C3s,D3s,E3s,Tm3)-mix(A3s,B3s,C3s,D3s,E3s,298);
printf("H31=%f\n",H31);
A4s1=103.851; B4s1=26.267; C4s1=-29.091; D4s1=E4s1=0;
H41=mix(A4s1,B4s1,C4s1,D4s1,E4s1,T4)-mix(A4s1,B4s1,C4s1,D4s1,E4s1,298);
printf("H41=%f\n",H41);
A4s2=120.516; B4s2=9.192; C4s2=-48.367; D4s2=E4s2=0;
H42=mix(A4s2,B4s2,C4s2,D4s2,E4s2,Tm4)-mix(A4s2,B4s2,C4s2,D4s2,E4s2,T4);
printf("H42=%f\n",H42);
H5=mix(A4s1,B4s1,C4s1,D4s1,E4s1,T0)-mix(A4s1,B4s1,C4s1,D4s1,E4s1,298);
printf("H5=%f\n",H5);
for(x=0;x=11.5;x =0.01)
{fprintf(fp,"%f",x);
for(Tad1=300;Tad1=4000;Tad1 =100)
{ A3l=154.8765; B3l=C3l=D3l=E3l=0;
H32=mix(A3l,B3l,C3l,D3l,E3l,Tad1)-mix(A3l,B3l,C3l,D3l,E3l,Tm3);
A4l=144.863; B4l=C4l=D4l=E4l=0;
H43=mix(A4l,B4l,C4l,D4l,E4l,Tad1)-mix(A4l,B4l,C4l,D4l,E4l,Tm4);
if(Tad1Tm4)
{ H3=H31 Hm3 H32;
m1=((3*(H1) 8*(H2) x*(H5)-H298)-(2*(H3) (3 x)*(H41 H42)))/((3 x)*(Hm4));
if(m1=1)H4=H41 H42 H43 Hm4;
elseH4=H41 H42 H43 m1*(Hm4);
}
elseif(Tad1==Tm4)
{H3=H31 Hm3 H32;
m1=((3*(H1) 8*(H2) x*(H5)-H298)-(2*(H3) (3 x)*(H41 H42)))/((3 x)*(Hm4));
if(m1=1)H4=H41 H42 Hm4;
else H4=H41 H42 m1*(Hm4);
}
elseif(Tad1Tm4Tad1Tm3)
{ H4=H41 mix(A4s2,B4s2,C4s2,D4s2,E4s2,Tad1)-mix(A4s2,B4s2,C4s2,D4s2,E4s2,T4);
m2=((3*(H1) 8*(H2) x*(H5)-H298)-(2*(H31) (3 x)*(H4)))/(2*(Hm3));
if(m2=1)H3=H31 H32 Hm3;
elseH3=H31 H32 m2*(Hm3);
}
elseif(Tad1==Tm3)
{ H4=H41 mix(A4s2,B4s2,C4s2,D4s2,E4s2,Tad1)-mix(A4s2,B4s2,C4s2,D4s2,E4s2,T4);
m2=((3*(H1) 8*(H2) x*(H5)-H298)-(2*(H31) (3 x)*(H4)))/(2*(Hm3));
if(m2=1)H3=H31 Hm3;
elseH3=H31 m2*(Hm3);
}
else{ H4=H41 mix(A4s2,B4s2,C4s2,D4s2,E4s2,Tad1)-mix(A4s2,B4s2,C4s2,D4s2,E4s2,T4);
H3=mix(A3s,B3s,C3s,D3s,E3s,Tad1)-mix(A3s,B3s,C3s,D3s,E3s,298);
}
F=(2*(H3) (3 x)*(H4))-(3*(H1) 8*(H2) x*(H5)-H298);
if(F=0)break;
}
Tad2=Tad1;
for(Tad2=Tad1;Tad2=350;Tad2-=10)
{ A3l=154.8765; B3l=C3l=D3l=E3l=0;
H32=mix(A3l,B3l,C3l,D3l,E3l,Tad2)-mix(A3l,B3l,C3l,D3l,E3l,Tm3);
A4l=144.863;B4l=C4l=D4l=E4l=0;
H43=mix(A4l,B4l,C4l,D4l,E4l,Tad2)-mix(A4l,B4l,C4l,D4l,E4l,Tm4);
if(Tad2Tm4)
{ H3=H31 Hm3 H32;
m1=((3*(H1) 8*(H2) x*(H5)-H298)-(2*(H3) (3 x)*(H41 H42)))/((3 x)*(Hm4));
if(m1=1)H4=H41 H42 H43 Hm4;
elseH4=H41 H42 H43 m1*(Hm4);
}
elseif(Tad2==Tm4)
{H3=H31 Hm3 H32;
m1=((3*(H1) 8*(H2) x*(H5)-H298)-(2*(H3) (3 x)*(H41 H42)))/((3 x)*(Hm4));
if(m1=1)H4=H41 H42 Hm4;
else H4=H41 H42 m1*(Hm4);
}
elseif(Tad2Tm4Tad2Tm3)
{ H4=H41 mix(A4s2,B4s2,C4s2,D4s2,E4s2,Tad2)-mix(A4s2,B4s2,C4s2,D4s2,E4s2,T4);
m2=((3*(H1) 8*(H2) x*(H5)-H298)-(2*(H31) (3 x)*(H4)))/(2*(Hm3));
if(m2=1)H3=H31 H32 Hm3;
elseH3=H31 H32 m2*(Hm3);
}
elseif(Tad2==Tm3)
{ H4=H41 mix(A4s2,B4s2,C4s2,D4s2,E4s2,Tad2)-mix(A4s2,B4s2,C4s2,D4s2,E4s2,T4);
m2=((3*(H1) 8*(H2) x*(H5)-H298)-(2*(H31) (3 x)*(H4)))/(2*(Hm3));
if(m2=1)H3=H31 Hm3;
elseH3=H31 m2*(Hm3);
}
else{ H4=H41 mix(A4s2,B4s2,C4s2,D4s2,E4s2,Tad2)-mix(A4s2,B4s2,C4s2,D4s2,E4s2,T4);
H3=mix(A3s,B3s,C3s,D3s,E3s,Tad2)-mix(A3s,B3s,C3s,D3s,E3s,298);
}
F=(2*(H3) (3 x)*(H4))-(3*(H1) 8*(H2) x*(H5)-H298);
if(F0) break;
}
Tad3=Tad2;
for(Tad3=Tad2;Tad3=4000;Tad3)
{ A3l=154.8765;B3l=C3l=D3l=E3l=0;
H32=mix(A3l,B3l,C3l,D3l,E3l,Tad3)-mix(A3l,B3l,C3l,D3l,E3l,Tm3);
A4l=144.863;B4l=C4l=D4l=E4l=0;
H43=mix(A4l,B4l,C4l,D4l,E4l,Tad3)-mix(A4l,B4l,C4l,D4l,E4l,Tm4);
if(Tad3Tm4)
{ H3=H31 Hm3 H32;
m1=((3*(H1) 8*(H2) x*(H5)-H298)-(2*(H3) (3 x)*(H41 H42)))/((3 x)*(Hm4));
if(m1=1)H4=H41 H42 H43 Hm4;
elseH4=H41 H42 H43 m1*(Hm4);
}
elseif(Tad3==Tm4)
{H3=H31 Hm3 H32;
m1=((3*(H1) 8*(H2) x*(H5)-H298)-(2*(H3) (3 x)*(H41 H42)))/((3 x)*(Hm4));
if(m1=1)H4=H41 H42 Hm4;
else H4=H41 H42 m1*(Hm4);
}
elseif(Tad3Tm4Tad3Tm3)
{ H4=H41 mix(A4s2,B4s2,C4s2,D4s2,E4s2,Tad3)-mix(A4s2,B4s2,C4s2,D4s2,E4s2,T4);
m2=((3*(H1) 8*(H2) x*(H5)-H298)-(2*(H31) (3 x)*(H4)))/(2*(Hm3));
if(m2=1)H3=H31 H32 Hm3;
elseH3=H31 H32 m2*(Hm3);
}
elseif(Tad3==Tm3)
{ H4=H41 mix(A4s2,B4s2,C4s2,D4s2,E4s2,Tad3)-mix(A4s2,B4s2,C4s2,D4s2,E4s2,T4);
m2=((3*(H1) 8*(H2) x*(H5)-H298)-(2*(H31) (3 x)*(H4)))/(2*(Hm3));
if(m2=1)H3=H31 Hm3;
elseH3=H31 m2*(Hm3);
}
else{ H4=H41 mix(A4s2,B4s2,C4s2,D4s2,E4s2,Tad3)-mix(A4s2,B4s2,C4s2,D4s2,E4s2,T4);
H3=mix(A3s,B3s,C3s,D3s,E3s,Tad3)-mix(A3s,B3s,C3s,D3s,E3s,298);
}
F=(2*(H3) (3 x)*(H4))-(3*(H1) 8*(H2) x*(H5)-H298);
if(F=0)break;
}
Tad=Tad3;
if(Tad=Tm4)
fprintf(fp," %fm1=%f\n",Tad,m1);
else if(TadTm4Tad=Tm3)
fprintf(fp," %fm2=%f\n",Tad,m2);
else fprintf(fp," %f\n",Tad);
printf(" x=%f ",x);
printf(" Tad=%f ",Tad);
if(Tad=Tm4)
printf(" m1=%f\n",m1);
else if(TadTm4Tad=Tm3)
printf(" m2=%f\n",m2);
}
fclose(fp);
}
【c转vb.net下载 vbnet c】关于c转vb.net下载和vbnet c的介绍到此就结束了 , 不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站 。
推荐阅读
- ios手机端ui规范,ios ui 设计规范最新
- 如何快速升级电商模式,如何快速升级电商模式呢
- 吃鸡手机版有国外服务器吗,手机吃鸡有国际服吗
- 如何建造php数据库 如何建造php数据库文件
- 如何营销单位职工贷款,如何营销企业贷款
- python使用的符号表示,python的符号有哪些有什么作用
- 政治模拟游戏,好玩的政治模拟游戏
- python回归函数 python回归系数
- 笔记本怎么置换电脑,笔记本怎么置换电脑内存