zoukankan      html  css  js  c++  java
  • 常识积累

    1. 工厂模式

    2.typename

    3. value_type

    4.mutable__

    5. 虚基类

    6.类的前向声明

    7.dynamic_cast主要用于类层次间的上行转换和下行转换,还可以用于类之间的交叉转换。

    8. git push origin与git push -u origin master的区别

    9.uml 类图   参考博客:https://www.cnblogs.com/shindo/p/5579191.html

    10. 【C++】类中成员函数声明后面接 const

        c++ 函数前面和后面 使用const 的作用:前面使用const 表示返回值为const, 后面加 const表示函数不可以修改class的成员。

    11.   ulimit  -c  的用法

    12. C++中std::sort/std::stable_sort/std::partial_sort的区别及使用

    13. cmakelists  文件的编写

    14. C++中std::sort/std::stable_sort/std::partial_sort的区别及使用

    15. 端口占用命令:netstat -anp查看端口占用情况  (端口预留)-- server 和 client 端口的分配

    16. grep  完全匹配

    17.查看端口属于哪个程序

         lsof -i :8080
    18 .CMake命令之execute_process

     19. 登录ip1    执行ssh-copy-id -i ~/.ssh/id_rsa.pub admin@ip   免密ssh 配置

    20.  回调函数

            实现:其实回调函数就是一个通过函数指针调用的函数。如果用户层B把函数的指针(地址)作为参数传递给底层驱动A,当这个指针在A中被用为调用它所指向的函数时,我们就说这是回调函数。 注意:是在A中被调用,这里看到尽管函数是在B中,但是B却不是自己调用这个函数,而是将这个函数的函数指针通过A的接口函数传自A中了,由A来操控执行,这就是回调的意义所在。

             关于回调函数的介绍:https://blog.csdn.net/qq_31930499/article/details/80654472 

              回调函数的同步异步执行

              pthread_join使一个线程等待另一个线程结束。https://www.cnblogs.com/kex1n/p/7111589.html

              在多线程编程的时候我们往往都是以for循环的形式调用pthread_join函数

    21. epoll 

          详解:https://www.cnblogs.com/Anker/p/3265058.html

     22. git checkout .  命令

    23. levledb  使用时 open 失败问题。打开对应的文件夹

    24. thrift 

    25.  c++ map之insert().second

    26. 

    using declarations和using directives的区别

     

    27. 

    strtol() 字符串转长整型函数   当字符串为空的时候是?

     

    28.  std::function用法

        参考博文:https://blog.csdn.net/y396397735/article/details/51785596

    29.  ssh登录机器慢导致 scp 慢

    http://www.mamicode.com/info-detail-1593652.html

    30. md5sum -c --status .MD5

    问题:md5sum: .MD5:找不到格式适用的MD5 校验和

    格式不正确

    31. gdb 调试时

    Program terminated with signal SIGKILL, Killed.

    装gdb 环境:sudo yum groups install "Development Tools"

  • 相关阅读:
    asp.net 连接 Access 的几种方法
    asp.net 连接 oracle10g 数据库
    Entity Framework实例
    LINQ链接数据库出错(There is already an open DataReader associated with this Command which must be closed first )
    Linq入门实例
    Nibatis实例(2)
    Log4net实例
    图片提交表单方法
    Nibatis实例(1)
    爱情是不离不弃吗?
  • 原文地址:https://www.cnblogs.com/simplepaul/p/10431715.html
Copyright © 2011-2022 走看看