- 博客(9)
- 收藏
- 关注
原创 Access deined: DeployKey does not support push code
Access deined: DeployKey does not support push code在gitee上push的时候出现这个error)在gitee上push的时候出现这个error因为gitee公钥如果需要提供写的功能需要单独在下图中所示的地方添加,另外记得把原先的读公钥删除。...
2020-12-15 21:18:54
1145
原创 2.61
2.61#include <stdio.h>#include <limits.h>int main(){//本题增加了!=和==的使用限制,即部分逻辑表达式不能写 int x; //A,不管原来是什么数据类型,全1按补码计算其非,就是0x1(简单的计算方法就是~x+1i) x=0xffffffff; printf("%x\n",~x+1);//或者-(unsigned)x,!(~x); //B,若全0,与0异或就得到全1,借鉴A的方法 x=0x00000000;
2020-09-24 13:30:58
162
原创 2.59-2.60
2.59#include<stdio.h>int main(){ int x=0x89ABCDEF; int y=0x76543210; //数字x保留后8位,可以直接与操作;但是y不可以直接与,因为不知道数字的位长 printf("%x",x&0xFF|(y>>8)<<8); }2.60#include <stdio.h>int main(){ int twosixty(); twosixty();}int twosi
2020-09-24 11:44:33
173
原创 第二章家庭作业解答及思考
信息的表示和处理2.55#include<stdio.h>typedef unsigned char* byte_pointer;int main(){ void show_bytes(byte_pointer,size_t); //size_t是标准C库中定义的,在64位系统中为long long unsigned int,非64位系统中为long unsigned int(来自百度) void show_short(short); void show_long(long);
2020-09-24 00:08:17
168
原创 C++primer练习12.1.3
新手的C++学习练习12.10:正确;12.11:使用智能指针类型的get()函数得到了一个内置指针,指向智能指针管理的对象,直接初始化此内置指针并调用process。由于创建了两个独立的智能指针并且都指向相同的内存,因此process返回之后,指向的内存将被释放,但是原指针p仍然存在。12.12a:合法,但是创建了独立的智能指针,指向的内存将被释放;b:不合法,必须使用直接初始化方式,智能指针的构造函数是explicit的,意味着不能隐式转换;c:不合法,与b相同;d:合法,结果
2020-07-25 16:25:55
346
原创 C++primer练习12.1.4
12.14struct destination;//连接的目的地struct connection;//使用连接所需的信息connection connect(destination *);//打开连接void disconnect(connection);//关闭连接void end_connection(connection *p){disconnect (*p);}//自定义的删除操作void f(destination &d/*可能的其他参数*/){ connection c.
2020-07-25 16:25:12
260
原创 C++——值传递和地址传递
https://blog.csdn.net/weixin_42878758/article/details/82865314#include <iostream>#include<string>using namespace std;void do1(int &a,int &b){ a=a+1; b=b+1;}void do2(in...
2020-04-19 16:03:41
179
原创 windows10、tensorflow、安装、cpu版本、不使用anaconda
纯小白,记录成功的方法1、官网python3.52、cmd->pip3 install tensorflow-cpu3、检验
2020-04-19 15:17:21
325
1
原创 python问题记录——函数即将被弃用
WARNING:tensorflow:From test.py:9: read_data_sets (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.Instructions for updating:Please u...
2020-02-15 17:00:56
652
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人