开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
3 Star 10 Fork 6

secondtonone1/cpplearn

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
文件
master
分支 (1)
master
master
分支 (1)
master
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
master
分支 (1)
master
cpplearn
/
src
/
main.cpp
cpplearn
/
src
/
main.cpp
main.cpp 5.58 KB
一键复制 编辑 原始数据 按行查看 历史
wangwuchen 提交于 2022年08月02日 11:04 +08:00 . 虚函数表
#include <iostream>
using namespace std;
#include "../inc/cincout.h"
#include "../inc/string_.h"
#include "../inc/vector_.h"
#include "../inc/iterator_.h"
#include "../inc/arrary_.h"
#include "../inc/treetolist.h"
#include "../inc/func_.h"
#include <string>
#include "../inc/screen.h"
#include "../inc/money_c.h"
#include "../inc/class_.h"
#include "../inc/lru_.hpp"
#include "../inc/stl_.h"
#include "../inc/numeric_.h"
#include "../inc/stl_iter_.h"
#include "../inc/map_.h"
#include "../inc/pointer_.h"
#include "../inc/new_allocator_.h"
#include "../inc/text_query_.h"
#include "../inc/mystring_.h"
#include "../inc/singleton_.h"
#include "../inc/msgfolder.h"
#include "../inc/strvec.h"
#include "../inc/rightrf.h"
#include "../inc/derive_.h"
#include "../inc/single_2.h"
#include "../inc/lambda_.h"
#include "../inc/basederive.h"
#include "../inc/template_.h"
#include "../inc/derive_base.h"
#include "../inc/vitrual_table.h"
int main()
{
// cin_func();
// refe_func();
// piont_func();
// auto_func();
// opstr_func();
// str11_func();
// vector_init();
// vector_push();
// iterator_func();
// arrary_init();
// pointer_op();
// c_string();
// vector_init2();
// multi_index();
// Test();
// for (size_t i = 0; i != 10; ++i)
// {
// cout << count_calls() << endl;
// }
// int m = 6;
// nochange(m);
// cout << m << endl;
// change(&m);
// cout << m << endl;
// change(m);
// cout << m << endl;
// int j[] = {0, 1};
// print_array(j, end(j) - begin(j));
// string s("a value");
// cout << s << endl; //输出a value
//将s的第一个字母修改为A
// get_val(s, 0) = 'A';
// Screen::pos row = 3;
// Screen::pos col = 4;
// Screen screen(row, col, 'c');
// screen.get();
// screen.display(cout).move(2, 3).set('#');
// const Screen cscreen(2, 1, ' ');
// cscreen.display(cout);
// Screen *psc = &screen;
// psc->get();
// First obj1;
//编译报错,obj1和obj2不是一个类型
// Second obj2 = obj1;
// Sales_data sa;
// auto sb = sa.combine(string("good luck"));
// Data val2 = {0, "zack"};
// auto lru = LRU(3);
// lru.insert(4);
// lru.insert(3);
// lru.insert(2);
// lru.print();
// lru.insert(100);
// lru.print();
// lru.insert(10);
// lru.print();
//保留当前cin状态
// auto old_state = cin.rdstate();
// //使cin有效
// cin.clear();
// //将cin置为原有状态
// cin.setstate(old_state);
// //所有输出操作都立即刷新缓冲区
// cout << unitbuf;
// //恢复到正常模式
// cout << nounitbuf;
// //将cin和cout绑定在一起
// cin.tie(&cout);
// // old_tie指向当前关联到cin的流(如果有的话)
// // cin不再与其他流关联
// ostream *old_tie = cin.tie(nullptr);
// //将cin和cerr关联
// //读取cin会刷新cerr
// cin.tie(&cerr);
// //重建cin和cout的关联
// cin.tie(old_tie);
// use_stl();
// use_numeric();
// erase_dup();
// use_predicate();
// use_lambda();
// cout << "count is " << use_bigger(3) << endl;
// cout << "count is " << use_bigger(5) << endl;
// cout << "count is " << use_bigger(10) << endl;
// lambda_catch_r();
// use_bigger2(cout, ' ', 2);
// mutalble_lam();
// rt_lambda();
// calsize_count();
// use_bigger3(cout, ' ', 2);
// use_inserter();
// use_istreamiter();
// use_ostreamiter();
// use_reverseiter();
// use_map();
// use_multiset();
// insert_map();
// find_map();
// use_unorderd_map();
// use_pointer();
// use_sharedptr();
// test_StrBlob();
// shared_ptrnew();
// bad_use_sharedptr();
// reset_shared();
// execption_shared();
// delfunc_shared();
// use_uniqueptr();
// use_weakptr();
// new_array();
// unique_array();
// use_shared_array();
// use_allocator();
// std::ifstream file("./config/text_query.txt");
// runQueries(file);
// use_mystr();
// test_single();
// test_thread_single();
// test_share();
// int a = 100, b = 200;
// swap_int(a, b);
// cout << "a is " << a << endl;
// cout << "b is " << b << endl;
// use_mystr();
// test_msgfolder();
// test_strvec();
// right_references();
// derive_test();
// int nums[] = {0, 1, 1, 3, 3, 4};
// cout << sizeof(nums) / sizeof(int) << endl;
// int find = binary_search(nums, 0, sizeof(nums) / sizeof(int) - 1, 3);
// cout << "find is " << find << endl;
// int find2 = binary_search(nums, 0, sizeof(nums) / sizeof(int) - 1, 4);
// cout << "find is " << find2 << endl;
// int find3 = binary_search(nums, 0, sizeof(nums) / sizeof(int) - 1, 0);
// cout << "find is " << find3 << endl;
// test_single2();
// test_single2hungry();
// test_single2hungry();
// test_singleDangours();
// test_singlelazy();
// test_singleauto();
// test_singleautosafe();
// test_singlenet();
// use_mystr_1();
// use_lambda2();
// use_lambda3();
// use_bind();
// use_base_static();
// use_derive_to_base();
// use_derive_param();
// use_probase();
// use_hiddenbase();
// use_template();
// use_classtemp();
// use_tempmove();
// use_ftemp();
// use_printtemp();
// test_strvectmp();
// testcompare();
// use_ftemp();
// use_lambda_old();
// use_ref();
// derive_base_test1();
//destructVirtualTable();
// useVitualTable();
//deriveTable();
aligneTest();
system("pause");
return 0;
}
Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

cpp 学习笔记,项目源码
取消

发行版

暂无发行版

贡献者

全部

语言

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/secondtonone1/cpplearn.git
git@gitee.com:secondtonone1/cpplearn.git
secondtonone1
cpplearn
cpplearn
master
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /