码迷,mamicode.com
首页 >  
搜索关键字:.cpp    ( 13186个结果
PostgreSQL数据库
https://www.yiibai.com/postgresql/ PostgreSQL教程 https://www.yiibai.com/postgresql/postgresql_c_cpp.html C/C++连接PostgreSQL数据库 https://www.jianshu.com/p ...
分类:数据库   时间:2021-04-02 13:25:24    阅读次数:0
「SWTR-03」Counting Trees
XVI.「SWTR-03」Counting Trees 说起来他们那场比赛还找我帮忙验了这题来着的,然后我$50%$暴力都不会 先说结论:任何度数之和等于$2m-2$的$m$个节点,都可以构成至少一颗树。该结论可以通过一个名叫prufer序列的神奇玩意证出。 于是我们现在就有这样的判别式: \(\s ...
分类:其他好文   时间:2021-04-02 13:17:18    阅读次数:0
leetcode1006.笨阶乘
不难 class Solution { public: int clumsy(int N) { int i; if(N==3) return 6; if(N==2||N==1) return N; int a=N*(N-1)/(N-2)+N-3; N-=4; int sign=1; long lon ...
分类:其他好文   时间:2021-04-02 13:02:35    阅读次数:0
QT项目-Chart Themes Example学习(一)
1.main.cpp #include "themewidget.h" #include <QtWidgets/QApplication> #include <QtWidgets/QMainWindow> int main(int argc, char *argv[]) { QApplication ...
分类:其他好文   时间:2021-04-01 13:27:59    阅读次数:0
c++错误:不允许使用抽象类类型 "Employee" 的对象
在写c++项目的时候遇到了如下的问题: Employee是继承自父类worker的子类,worker中有两个虚函数,如下图所示: 子类中实现虚函数如图 然后就出现了文档一开始图一中的问题: 严重性 代码 说明 项目 文件 行 禁止显示状态错误(活动) E0322 不允许使用抽象类类型 "Employ ...
分类:编程语言   时间:2021-03-30 12:55:08    阅读次数:0
52. 两个链表的第一个公共结点
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/class Solution { public: ListNode* FindFirstCommonNo ...
分类:其他好文   时间:2021-03-29 12:50:50    阅读次数:0
数组作为函数参数传递
数组作为函数参数传递的时候,会退化为指针,并不能得到数组的大小 一 void test1(int a[]) { cout << sizeof(a) << endl; } int main() { int a[4]; test1(a); } 输出结果是指针的大小,并不是数组的大小 二 void tes ...
分类:编程语言   时间:2021-03-18 14:12:35    阅读次数:0
c程序编译错误处理办法
error: C++ preprocessor "/lib/cpp" fails sanity check 问题的根源是缺少必要的C++库。如果是CentOS系统,运行,如下命令解决: yum install -y glibc-headers gcc-c++ Ubuntu系统中,运行命令: apt- ...
分类:其他好文   时间:2021-03-18 14:06:28    阅读次数:0
实验1 C语言开发环境使用和数据类型、运算符、表达式
实验任务1.1// c语言实验1.cpp : 定义控制台应用程序的入口点。 //列向打印两个字符小人。 #include "StdAfx.h" #include<stdio.h> #include<stdlib.h> int main() { printf(" 0 \n"); printf("<H> ...
分类:编程语言   时间:2021-03-15 11:00:49    阅读次数:0
机器学习-识别手写数字0-9
1 import os 2 os.environ['TF_CPP_MIN_LOG_LEVEL']='2' # to hidden the messages from tensorflow 3 from tensorflow import keras 4 from tensorflow.keras i ...
分类:其他好文   时间:2021-03-15 10:35:44    阅读次数:0
13186条   上一页 1 ... 6 7 8 9 10 ... 1319 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!