摘要: <!--超链接标签--> < a href="跳转目标" target="目标窗口的弹出方式"> 文本或图像</a> <!--外部链接--> <h4>--外部链接--</h4><!--h4独占一行--> <a href="http:www.qq.com" target="_self">当前窗口打开腾 阅读全文
posted @ 2022-03-02 11:26 小耿想努力呀 阅读(26) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <title>综合案例-注册页面</title> </head> <body> <h4>青春不常在,抓紧谈恋爱</h4> <table width="500"> <tr> <td>性别:</td> <td> <input type="rad 阅读全文
posted @ 2022-03-02 11:25 小耿想努力呀 阅读(19) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <style> .container{ width: 40%; margin: 20px auto; } .common{ width:230px; height: 30px; } span{ 阅读全文
posted @ 2022-03-02 11:24 小耿想努力呀 阅读(27) 评论(0) 推荐(0) 编辑
摘要: <!--表单标签:收集用户信息--> <html> <head> <body> <!--表单域:包含表单元素的区域 action="url地址" method="提交方式" name="表单域名称"--> <!--表单元素:input:输入表单元素、select:下拉表单元素、textarea:文本 阅读全文
posted @ 2022-03-02 11:23 小耿想努力呀 阅读(29) 评论(0) 推荐(0) 编辑
摘要: <!--布局整齐 无序列表:<ul><li> 有序列表 自定义列表 --> <!--无序列表:<ul><li>--> <html> <head> <body> <!--无序列表:<ul><li>--> <h4>你喜欢的实食物?</h4> <ul><!--只能有<li>--> <li>西瓜</li>< 阅读全文
posted @ 2022-03-02 11:23 小耿想努力呀 阅读(2) 评论(0) 推荐(0) 编辑
摘要: <!--表格标签:用来展示数据--><!--tr表格标签--><!--td定义单元格--> <!--表格的结构标签thead:头部区域、tbody:主体区域--> <!--合并单元格--> <!--跨行合并:rowspan=合并个数 最上层作为目标单元格写合并代码 跨列合并:colspan=合并个数 阅读全文
posted @ 2022-03-02 11:21 小耿想努力呀 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 1、程序改错题:以下程序功能是对任意输入的5个学生成绩中找出最高分成绩及其对应的姓名。 #include <stdio.h> struct student { char name[10];int score; }; void main() { int i,max=0; struct student 阅读全文
posted @ 2021-12-14 20:20 小耿想努力呀 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1、编写函数strlen:功能为求任意字符串的长度,形参要求用指针变量。 编程实现:求任意字符串长度。 #include <stdio.h> char strlen(char *ch) { int i=0; for(;*ch!='\0';ch++) i++; return i; } void mai 阅读全文
posted @ 2021-12-14 20:19 小耿想努力呀 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1、读程序题:对以下程序语句分析输出语句的输出,并对错误的语句分析其错误原因。 #include <stdio.h> void main() { int x=12,a[3]={1,5,8},*p1=&x,**p2=&p1,*p3[3]={&x,a,a+1}; float y=9.9,*p4=&y; 阅读全文
posted @ 2021-12-14 20:18 小耿想努力呀 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1、编写函数midfind:功能为用二分查找法在n个数中查找指定数字的位置。 编程实现:在任意6个升序排列的数中查找指定数字的位置。 #include<stdio.h> int midfind(int ch[],int n) { int i,mid,s=0,e=5; while(s<=e) { mi 阅读全文
posted @ 2021-12-14 20:17 小耿想努力呀 阅读(302) 评论(0) 推荐(0) 编辑