Vc中获取传入参数

来源:互联网 发布:打印九九乘法表java 编辑:程序博客网 时间:2024/06/08 05:55

void splitpathex(const char *path,char *dir,char *filename)
{
    char * lastSlash;
    char    tmpChar;  

   lastSlash = const_cast<char*>(strrchr(path,'\\')); 
    
    tmpChar = *lastSlash;
    *lastSlash = '\0';
    
    if (dir)
        strcpy(dir,path);
    if (filename)
        strcpy(filename,lastSlash+1);
    
    *lastSlash = tmpChar;
}


阅读(338) | 评论(0) | 转发(0) |
0

上一篇:hp cq40安装xp系统

下一篇:Scalable Video Coding

相关热门文章
  • 万维网之父:警惕政府正在接管...
  • VoiceEngine之voice hardware ...
  • www.fenghuangyulepingtai.com...
  • ubuntu下vsftpd配置详细篇 ...
  • Ubuntu12.04 Server安装手记...
  • 10种启动故障解决方法(转)...
  • 关于自动弹出网页的解决方法...
  • Auto CAD 2007中文版 迅雷免费...
  • 出现“high definition audio...
  • 全国计算机一级考试试题...
  • MQ 服务器错误代码2035
  • bat脚本设置dns
  • 点击记录常用的windows命令...
  • Win7下共享网络连接至WLAN的批...
  • WinProc窗口过程定义函数-【学...
给主人留下些什么吧!~~
原创粉丝点击