04 2020 档案

摘要:测试调用delya()函数所需执行的时间(单位为微妙) #include<stdio.h> #include<sys/time.h> #include<unistd.h> int delay(int time) { int i,j; for(i =0;i<time;i++) for(j=0;j<50 阅读全文

posted @ 2020-04-28 10:53 yacbo 阅读(1514) 评论(0) 推荐(0) |

摘要:从当前运行的函数中得到函数名,使用__FUNCTION__ 及相关宏。 举例如下 #include <iostream> #include <string> using namespace std; const char* hello() { return __FUNCTION__;//返回函数名 阅读全文

posted @ 2020-04-28 10:51 yacbo 阅读(723) 评论(0) 推荐(0) |

摘要:写文件 #include <fstream> using namespace std; int main() { ofstream outFile; outFile.open("D:\\gaoyu.txt"); outFile << "this is a c++ file write test."; 阅读全文

posted @ 2020-04-22 16:01 yacbo 阅读(151) 评论(0) 推荐(0) |

摘要:FaceCapMonitor文件中。 阅读全文

posted @ 2020-04-16 10:00 yacbo 阅读(136) 评论(0) 推荐(0) |

摘要:在该文件夹下创建rename.bat,内容如下: @echo off set a=0 setlocal EnableDelayedExpansion dir /b .\*.jpg | find /c /v "" >> .\tmp.txt set /p c=<.\tmp.txt del /a /f / 阅读全文

posted @ 2020-04-09 14:16 yacbo 阅读(243) 评论(0) 推荐(0) |

摘要:①Centos Linux添加环境变量到PATH的方法: 在 Linux CentOS 系统上安装完 Hadoop 后,为了使用方便,需要将 Hadoop 命令加到系统命令中,如果在没有添加到环境变量之前,执行“hadoop fs”命令时,则会提示命令不存在的错误,如下所示: 方法一 1. expo 阅读全文

posted @ 2020-04-03 19:32 yacbo 阅读(2524) 评论(0) 推荐(0) |

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3