- 博客(16)
- 收藏
- 关注
原创 Vs_Code对c进行debug的时候遇到的一个问题以及解决方案
之前在vscode进行debug调试的时候就会发生这个问题,这个问题也是我找了几天百度也到现在才成功解决的(图为网页随机找图截取,问题一样,我解决的时候已经没有这个提示了所也懒得改回来刻意截图了)这个时候下面的终端也会有以下提示Unable to start debugging. Program path '***.exe' is missing or invalid. GDB failed with message: "***.exe": not inexecutable format:
2020-10-17 19:04:39
8194
2
原创 逐点比较直线插补法(python)
point-by-point relative method用逐点比较插补法插补第一象限的直线OA,O点为原点,A点坐标为 (8,6),请完成以下任务:(1)列出插补计算过程;(2)画出插补轨迹图。import numpy as np from matplotlib import pyplot as plt #确定第一象限直线line = [[0, 8], [0, 6]] plt.title("point-by-p...
2020-08-22 21:10:54
3758
1
原创 HuffmanTreeCode.c
HuffmanTreeI leaned it about few months ago, then I found this and decided to uploadit.The code part:#include <stdio.h>#include <string.h>#include <stdlib.h>#define ALPHABET_LENGTH 26char alphabet[] = {'a', 'b', 'c', 'd', 'e'.
2020-07-06 21:05:47
225
原创 万内整数数字转换大写汉字 vba实现
万内整数数字转换大写汉字vba实现先上代码Sub test()Dim a(1 To 10) As String '大写汉字数组Dim tmpStr As String '提取原单元格字符串Dim count(1 To 4) As String '单位数组Dim num As Integ...
2020-04-27 10:08:44
540
原创 线性回归LinearRegression.py
线性回归实现import numpy as npimport matplotlib.pyplot as pltdata = np.loadtxt('ex1data1.txt', delimiter=',')print(type(data))<class 'numpy.ndarray'>ex1data1.txt提供的样本6.1101,17.5925.52...
2020-04-10 16:22:09
456
原创 ax^2+bx+c=0(c)
#include <stdio.h>#include "math.h"main(){float a, b, c, disc, x1, x2, realpart, imagpart;scanf("%f, %f, %f", &a, &b, &c);printf("The quation");if (fabs(a) <= 0.000001) ...
2020-04-08 13:11:13
659
原创 Struct learning diary5
#include <stdio.h>#include <stdlib.h>#define LEN sizeof(struct student)struct student{ long num; float score; struct student *next;};int n;struct student *creat(){...
2020-04-08 12:18:50
117
原创 Hanoi Tower(c) study diary
#include <stdio.h>void move(char holenein, char setzenein){ printf("%c-->%c\n", holenein, setzenein);}void hanoi(int n, char ein, char zwei, char drei){ if (n == 1) { ...
2020-04-08 12:14:48
84
原创 Calculate the days of year(c)
#include <stdio.h>int counting(int year, int month, int day);main(){ int y, m, d; int days; printf("date input:\n"); printf("Year:\n"); scanf("%d", &y); printf("M...
2020-04-08 12:10:32
223
原创 Stack.h(c)
#include<stdlib.h>#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2#define STACK_INIT_SIZE 100#define STACKINCREMENT 10typedef int Stat...
2020-04-08 12:08:53
1760
原创 LinerRegression(python)
import myToolimport numpy as npimport matplotlib.pyplot as pltdata = np.loadtxt('ex1data1.txt', delimiter=',')# print(type(data))x = data[:, 0]y = data[:, 1]# print(x)# print(y)pl...
2020-04-08 12:06:43
218
原创 mytool algorithm(LinerRegression pack)(python)
import numpy as npimport matplotlib.pyplot as pltimport matplotlib.animation as animationdef computer_cost(x, y, w, b):m = len(x)cost = 0h_x = w * x + bcha = h_x - yfangcha = cha **...
2020-04-08 12:06:19
93
原创 CLinkList(仅学习用)
#include <stdio.h>#include <stdlib.h>typedef struct CLinkList{ int data; struct CLinkList *next;}node;void InitLinkList(node **pNode); //初始化链表void Insert(node **pNode...
2020-04-08 12:00:32
268
原创 numpy+matplotlib画正余弦函数图像
# -*- coding: utf_8 -*-import matplotlib.pyplot as pltimport numpy as npimport mathx=np.arange(0,10,0.1)#print(x.size)y1=np.zeros(100)y2=np.zeros(100)#print(x)for i in range(0,100): y1[...
2018-05-12 19:20:22
2383
原创 演示了爬特定页面上图片的方法
# coding=UTF-8# __author__ = 'Administrator'import urllib.requestimport re#演示了爬特定页面上图片的方法baseUrl = "http://www.shlgkj.net/webDisplay/ESite/DisplayDetail.jsp?id=0aeba429-285c-4316-bf25-80613965be...
2018-04-29 21:55:08
148
原创 我的第一个python函数
__author__ = 'Administrator'# coding=UTF-8def sqr(x1,x2): #求直角三角形斜边的长,x1、x2分别为两条直角边长 #utf-8 return (x1*x1+x2*x2)**0.5a = float(input("请输入a:"))b = float(input("请输入b:"))c=sqr(a,b)prin...
2018-04-29 21:51:32
138
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人