![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c 编程
Been_Stone
the user's nickname here is same with the wechat.
展开
-
C语言_日期_周计算
日期计算计算指定日期是周几#include <stdio.h>#include <stdlib.h>int Day(int y, int m, int d);int main(int argc, char *argv[]){ int year, month, day; //读取用户输入的年月日 int days; //储存从1900-1-1到该天的天数 int week = 0; //储存求余后的星期原创 2020-09-06 22:30:39 · 1237 阅读 · 0 评论 -
错误 C2678 二进制 : 没有找到接受const _Ty类型的左操作数的运算符
错误 C2678 二进制 : 没有找到接受const _Ty类型的左操作数的运算符c++新手一个,今天使用STL中的set二叉树存储数据,结果提示了如上错误,后来意识到二叉树存放数据需要进行数据比较,是不是没有比较依据造成的?另外编写了测试代码进行测试,验证了这个猜想,果真如此。#include <iostream>#include <stdlib.h>#in...原创 2019-11-11 16:52:49 · 6628 阅读 · 1 评论 -
C/ VC++语言 获取本机IP地址
这里写自定义目录标题#include <winsock2.h>#include <ws2tcpip.h>#include <stdlib.h>#include <stdio.h>#pragma comment (lib, "Ws2_32.lib")void get_host_ip(){ WSADATA WSAData; if (...原创 2019-10-29 21:31:23 · 976 阅读 · 0 评论