在线等 javascript 遇到麻烦了 请高手来

来源:百度知道 编辑:UC知道 时间:2024/09/21 02:37:39
<HTML><HEAD><TITLE>表</TITLE>
<script language=javascript>

function Getsex(sex)
{
var i;
for(i=0;i<sex.length;i++)
{
if(sex[i].checked) return sex[i].value;
}
return "[没有选择]";
}

function ShowResult()
{
var name=form1.name1.value;
var age=form1.age.value;
var sex=Getsex(document.form1.sex);
var mail=form1.mail.value

if(!confirm("您的姓名是:"+name+
"\n您的年龄是:"+age+
"\n您的性别是:"+sex+
"\n您的邮箱是:"+mail+
"\n正确吗?"))return;
document.write("您的姓名是:"+name+"<br>");
document.write("您的年龄是:"+age+"<br>");
document.write("您的性别是:"+sex+"<br>");
document.write("您的邮箱是:&q

#include <windows.h>
LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,PSTR szCmdLine,int iCmdShow)
{
static TCHAR szAppNume[]=TEXT("HelloWin");
HWND hWnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style = CS_HREDRAW|CS_VREDRAW;
wndclass.lpfnWndProc = WndProc;
wndclass.cbClsExtra = 0;
wndclass.cbWndExtra = 0;
wndclass.hInstance = hInstance;
wndclass.hIcon = LoadIcon(NULL,IDI_APPLICATION);
wndclass.hCursor = LoadCursor(NULL,IDC_ARROW);
wndclass.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
wndclass.lpszMenuName = NULL;
wndclass.lpszClassName = szAppNume;
if(!RegisterClass(&wndclass))
{
MessageBox(NULL,TEXT("This program requires Windows NT!"),szAppNume,MB_ICONERROR);

return 0;
}

hWnd = CreateWindow(szAppNume, //window class name
TEXT("