status_t SysWatcher::setWVer() {
    fstream myfile;
    myfile.open("/data/w_version", ios::out);
    if(myfile){
        printf("ssssssssssssssssssbbbbbbbbbbbbbbbbbbbbb");
        /*char *p="wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww";
        myfile.write(p, strlen(p));
        myfile.close();*/
    }
    else{
        printf("why????????????");
    }
    return true;

 

 

这样使用才能进入 ssssssssssssssssssbbbbbbbbbbbbbbbbbbbbb

要是     myfile.open("/data/w_version", ios::out | ios::in), 则只会进入 why????????????

相关文章:

  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2021-05-09
  • 2021-12-05
  • 2022-02-14
猜你喜欢
  • 2022-12-23
  • 2021-05-23
  • 2021-11-28
  • 2021-08-27
  • 2022-02-22
  • 2022-12-23
  • 2021-12-25
相关资源
相似解决方案