- 博客(15)
- 收藏
- 关注
原创 jquery报错cannot read property ‘length‘ of undefined
写spring MVC项目时控制台报错:jquery报错cannot read property 'length' of undefined查看一下自己的controller层传递的参数是json字符串:JSONArray array = new JSONArray()打印一下success:function(a)中获取的a,发现可以获取到json字符串并且数据正确[{name:"苹果1.jpg"}],就是console.log(a.name)时会undefined再检查一下自己ajax方法:.
2021-03-29 16:35:53 902 1
原创 spring MVC报错You have an error in your SQL syntax; check the manual...的解决笔记
做spring MVC项目的时候报错:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near....然后根据控制台执行的流程去查找的对应的SQL映射文件:insert into comment(item_id,users_id,content,c_date,c_rank,c_images
2021-03-28 17:41:20 341
原创 Android:设计一个具有3个选项的菜单程序,单击每个选项时分别跳转到3个不同的页面。
1.界面设计2.原理先设计一个选项菜单,再使用Intent组件进行页面的切换,结合Bundle类在Activity页面之间传递数据。3.源码(1)MainActivity.javapackage com.example.tanjy.ex3_3;import android.support.v7.app.AppCompatActivity;import androi...
2019-09-28 12:43:46 3827 1
原创 【Android】编写一个简易计算机
1.界面2.源代码activity_main.xml<?xml version="1.0" encoding="utf-8"?><GridLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/to...
2019-09-22 14:04:47 1137
原创 用数据结果算法编写一个学生信息管理系统
用单链表编写,包含输入、插入、修改、删除、查询、显示功能。#include<iostream>#include<string>#include<cstdlib>using namespace std;struct Student{ string sex;//性别 string name;//姓名 char number[20];//学号 string id;/...
2018-07-09 19:46:27 452
原创 用C++设计的一个学生管理系统
该系统包含增加,删除,修改,查询,浏览的功能,分别用五个文件编写。//employee.h#include<iostream>#include<string>using namespace std;class Date//出生日期{protected: int year; int month; int day;public: void Set(int y,int m,int...
2018-07-09 19:43:31 6178 1
原创 数据结构实验六之图的邻接矩阵存储实现
源代码:#ifndef MGraph_H#define MGraph_Hconst int MaxSize=10;template<class DataType>class MGraph{ public: MGraph(DataType a[],int n,int e); ~MGraph(){} void DFSTraverse(int v);//深度优先遍历 void BFS...
2018-05-26 11:31:09 677
原创 数据结构实验五之二叉树的实现
顺序二叉树源代码:#include"iostream"using namespace std;class BiTree{public: BiTree(); ~BiTree(); int preorder(int n); int inorder(int n); int postorder(int n); int creat_BT(); int visit(int n); int Tree[100];...
2018-05-17 19:34:38 240
原创 数据结构实验四之二叉树的实现
源代码:#include<iostream.h>const int QSize=100;struct BiNode{char data;BiNode *lchild,*rchild;};class BiTree{BiNode*root;//指向根结点的头指针BiNode*Creat(BiNode *bt);//构造函数,建立一棵二叉树void Release(BiNode *bt);/...
2018-05-10 21:07:56 530
原创 数据结构实验三之双链表
3.建立一个由n个学生成绩的双链表,实现对数据的插入,删除,查找等操作。方法1:建立工程,建立头文件Student.h,建立源文件Student.cpp和包含主函数的源文件Student_main.cpp源代码:#ifndef Student_H#define Student_Hstruct Node{ double data; Node*prior,*next;};class Student{ ...
2018-05-03 20:04:43 305
原创 数据结构实验三之单链表.
2..建立一个由n个学生成绩的顺序表,实现对数据的插入,删除,查找等操作。源代码:#ifndef Student_H#define Student_Htemplate<class DataType>struct Node{ DataType data; Node<DataType>*next;};template<class DataType>class Stu...
2018-05-01 18:59:19 495
原创 数据结构实验三之顺序表
1.建立一个由n个学生成绩的顺序表,实现对数据的插入,删除,查找等操作。源代码:#ifndef Student_H#define Student_Hconst int MaxSize=100;class Student{public: Student(){length=0;} Student(double a[],int n); ~Student(){} void Insert(int i,int...
2018-05-01 16:10:23 478
原创 数据结构实验二
1.顺序栈源代码:#ifndef SeqStack_H#define SeqStack_Hconst int StackSize=10;template<class DataType>class SeqStack{ public: SeqStack(); ~SeqStack(){} void Push(DataType X); DataType Pop(); DataType...
2018-04-26 19:07:42 294
原创 数据结构实验一
#ifndef SeqList_H#define SeqList_Hconst int MaxSize=10;class SeqList{public: SeqList(){length=0;} SeqList(int a[],int n); ~SeqList(){} void Insert(int i,int x); int Delete(int i); int Locate(int x); v...
2018-04-03 23:41:22 285
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人