- 博客(17)
- 收藏
- 关注
原创 C语言连接MySQL数据库(补一个记录) 缺少 libeay32.dll ssleay32.dll 又或者出现0*00000007b 错误的
这真的是个玄学问题,这个查询程序第一次编译是成功的,也出东西了,但是第二天重新开机再运行的时候居然提示缺少两个 dll 文件,从网上随便找了2个这样的文件扔到 system32 之后在运行又提示 0*00000007b 错误,一时间一筹莫展。后来偶然之间点开了 MySQL server 的 bin 目录,发现了这个目录之下居然也有 libeay32.dll ssleay32.dll 两个文件,二...
2019-01-08 11:27:46 1693 5
原创 是时候抛弃掉那些中文Java教材里所谓的friendly概念了
前言曾经学 Java的时候看过一本中文教材,其中讲到 Java的可访问性(Accessibility)一章内,提到了4个关键词(Keywords),这四个分别是public, protected, friendly(友好的), private,其中不用说的就是其访问权限是由高到低。但是这天有些许个问题,于是想在官方文档里找个答案,不曾想回忆起了这些个以前的问题———国内某些中文教材里所谓的fri...
2020-01-30 16:17:22 346
原创 C语言连接MySQL数据库
首先交代一下我的 MySQL v8.0.13 是64位的,在写这个东西之前在网上查了相关的资料,如果调试的时候采用不同的位数,那么可能引发一些错误,为了保证过程尽量顺利,我在 VS2017 上写的时候我的“解决方案平台”是选择了 X64 。看过别人博客说,头文件的顺序位置也有讲究,特别是 winsock.h 和 mysql.h 的顺序讲究,我是这样写的:#include <std...
2019-01-07 21:03:22 44179 2
原创 201711671208 《Java程序设计》之线程 第十一周学习计划
使用Thread类的子类创建线程写法,如:public class SpeakElephant extends Thread { public void run(){ ...} } SpeakElephant xxx; //声明 xxx=new SpeakElephant(); //创建线程直接使用Thread类创建线程写法:public class Elephant (...
2018-11-23 20:17:46 169
原创 201711671208 《Java程序设计》之Java初尝连接MySQL数据库 第十周学习计划
首先报一个重要前提:我的jdk是从1.8.0-102升的1.8.0-191,这个是个重大铺垫。然后用MySQL官方下载器下载的MySQL数据库以及JDBC-MySQL数据库驱动,以下是我的版本号 看的是耿祥义编写的“Java2的实用教程”Example11-1,其中书里给出的源码是这样的:import java.sql.*; public class Example11_1...
2018-11-18 13:34:45 209
转载 实验3:间接寻址
#include <iostream>using namespace std;const int MaxSize = 100;template<class DataType>struct Node{ DataType data; Node<DataType> *next;};template<class DataType>...
2018-06-03 20:29:16 189
原创 实验5:二叉树的链式储存
#include "stdafx.h"#include <iostream>using namespace std;struct Tnode{ char data; Tnode * lchild, *rchild;};class Etree{public: Etree() { root = Creat(root); } ~Etree() { Re...
2018-05-23 20:34:58 232
原创 实验4:树与二叉树的实验
#include<math.h>#include<iostream>using namespace std;class Tree{private: public: int x; int a[6]; static int count; Tree(); void Printtree(); void findpc(); void yezi(); ...
2018-05-06 22:03:00 539
原创 实验3:双链表
#include<iostream>using namespace std;const int maxsize = 10;struct Node{ double data; Node *prior, *next;};class scorelist{private: Node * p;public: scorelist() { p = new Node...
2018-05-02 22:22:26 102
原创 实验3:单链表
#include <iostream>using namespace std;template<class datatype>struct Node{ datatype data; //数据域 Node<datatype> *next; //指针域};template<class datatype>...
2018-05-02 22:21:11 250
原创 实验3:顺序表
#include <iostream>using namespace std;const int maxsize = 7;template <class datatype>class scorelist{private: datatype stu[maxsize]; int length;public: scorelist() { length ...
2018-05-02 22:19:57 171
原创 实验2:十进制转二进制 (使用数组)(补)
#include "stdafx.h"#include <iostream>using namespace std;int main(){ int count; int x,i,j; int a[20]; cout << "请输入一个十进制整数:"<<endl; cin >> x; for(count=0;count<=20
2018-04-26 22:38:56 856
原创 实验2:链队列
#include<iostream>using namespace std;template<class datatype>struct Node{ datatype data; Node<datatype> *next;};template <class datatype>class link{private: Node&...
2018-04-25 22:02:17 155
原创 实验2:顺序链
#include<iostream>using namespace std;const int maxsize = 100;template <class datatype>struct Node{ datatype data; Node<datatype> *next;};template <class datatype>cla...
2018-04-25 21:18:11 142
原创 实验2:链栈
#include <iostream>using namespace std;template <class datatype>struct Node{ datatype data; Node <datatype> *next;};template <class datatype>class link{private: Nod...
2018-04-25 21:16:29 163
原创 实验2:顺序栈
#include <iostream>using namespace std;const int StackSize = 10;template <class datatype>class SeqStack{private: datatype data[StackSize]; int top;public: SeqStack() { top = -1; } ~SeqSta...
2018-04-25 21:14:21 121
原创 实验1:顺序表
#include "stdafx.h"#include "iostream"using namespace std;const int maxsize = 20;template <class Numtype>class Numlist{public: Numtype Bulid(); //建立顺序表 void Insert(); //插入...
2018-04-01 21:20:15 435 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人