C++ 如何使用c+;打开excel查看器文件+;? #包括 #包括 #包括 #包括 #包括 main(){ int i,k=0; //而(1){ char prova[9]=“20:00:00”; char-timeStr[9]; _strtime(timeStr); //printf(“当前时间为%s\n”,timeStr); 对于(i=0;i

C++ 如何使用c+;打开excel查看器文件+;? #包括 #包括 #包括 #包括 #包括 main(){ int i,k=0; //而(1){ char prova[9]=“20:00:00”; char-timeStr[9]; _strtime(timeStr); //printf(“当前时间为%s\n”,timeStr); 对于(i=0;i,c++,C++,而不是“C:>start”使用“start”或程序文件的完整路径。“C:>”是命令提示符。而不是“C:>start”使用“start”或程序文件的完整路径。“C:>”是命令提示符。英语句子以大写开头。英语句子以大写开头。 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <iostream> #include <fstream> main(){

而不是“C:>start”使用“start”或程序文件的完整路径。“C:>”是命令提示符。

而不是“C:>start”使用“start”或程序文件的完整路径。“C:>”是命令提示符。

英语句子以大写开头。英语句子以大写开头。
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <iostream>
#include <fstream>

main(){

    int i, k=0;
    //while(1){

    char prova[9]="20:00:00";
    char timeStr [9];
    _strtime( timeStr );
    //printf( "The current time is %s \n", timeStr);

    for(i=0;i<9;i++){
    if(prova[i]!=timeStr[i])
        k=1;
    }

   if(k=1){

    system("C:\>tskill xlview");
    system("C:\>start "" Programas\\Microsoft Office\\Office12\\xlview.exe" "c:\teste.xls");
   }
   //main();
}