随笔分类 -  cpp

example to load function in dll
摘要:Load Dll - LoadLibrary() < Example 1 > In this example, I will create a simple command line program that pops up a message box shown below using the A 阅读全文

posted @ 2024-09-06 00:05 yusisc 阅读(7) 评论(0) 推荐(0) 编辑

simple sprintf wrapper
摘要:version 0 #include <memory> #include <string> #include <stdexcept> template<typename ... Args> std::string string_format( const std::string& format, A 阅读全文

posted @ 2024-08-18 22:27 yusisc 阅读(3) 评论(0) 推荐(0) 编辑

cpp format a string
摘要:for older standard cpp char cc[55]; sprintf_s(cc, "%09d tttttt %.3f sssss", 7, 1.234567); cout << cc << endl; // 000000007 tttttt 1.235 sssss string s 阅读全文

posted @ 2024-07-07 02:11 yusisc 阅读(9) 评论(0) 推荐(0) 编辑

understanding r-value in cpp
摘要:r-value stl - C++ Double Address Operator? (&&) - Stack Overflow: https://stackoverflow.com/questions/4549151/c-double-address-operator && is new in C 阅读全文

posted @ 2024-07-07 01:12 yusisc 阅读(21) 评论(0) 推荐(0) 编辑

use smart pointer to manage a dynamically allocated array in cpp
摘要:c++ - Can you make a std::shared_ptr manage an array allocated with new T[]? - Stack Overflow: https://stackoverflow.com/questions/13061979/can-you-ma 阅读全文

posted @ 2024-07-07 00:59 yusisc 阅读(14) 评论(0) 推荐(0) 编辑

Why is it considered "bad practice" to use macros in C++?
摘要:This article originally appeared here on Quora It is a common practice to use macros, you just have to be aware of the proper use and unfortunate misu 阅读全文

posted @ 2024-05-26 00:23 yusisc 阅读(8) 评论(0) 推荐(0) 编辑

cpp nested class
摘要:#include<iostream> using namespace std; /* start of Enclosing class declaration */ class Enclosing { private: int x; /* start of Nested class declarat 阅读全文

posted @ 2023-03-10 01:02 yusisc 阅读(12) 评论(0) 推荐(0) 编辑

build opencv with qt to make debugging easier
摘要:最近发现使用自己编译的opencv,可以增强opencv的imshow函数功能。从哪里得到的线索已经忘记了。可能是无意中发现的某一张截图吧。 要实现cv::imshow函数功能增强,需要在cmake中配置使用qt。 编译及使用,见视频: # testProj.pro QT += core gui g 阅读全文

posted @ 2022-11-06 23:20 yusisc 阅读(25) 评论(0) 推荐(0) 编辑

how to make the windows console works with utf-8 encoded project
摘要:the console of the windows os is not working in the utf-8 encoding, by default. When you force your code be encoded with utf-8, the console will not p 阅读全文

posted @ 2022-08-27 21:11 yusisc 阅读(48) 评论(0) 推荐(0) 编辑

train a MLP model with tensorflow 2 for MNIST and deploy the model with cpp
摘要:In [ ]: ################## jupyter lab header ################## scipy, sk-learn, plotly # %matplotlib notebook # %matplotlib ipympl %matplotlib widge 阅读全文

posted @ 2022-08-27 20:15 yusisc 阅读(40) 评论(0) 推荐(0) 编辑

openMP makes your cpp parallel grogramming more easy
摘要:Recently, I want to learn some cpp implementations of the statistical learning algorithms, kNN, k-Means, etc. There are so many implementations enligh 阅读全文

posted @ 2022-06-20 01:57 yusisc 阅读(32) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示