⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 button2.cpp

📁 matlab的可执行程序
💻 CPP
字号:
//
// MATLAB Compiler: 3.0
// Date: Wed Jul 14 12:15:03 2004
// Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on"
// "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O"
// "array_indexing:on" "-O" "optimize_conditionals:on" "-B" "sglcpp" "-p" "-W"
// "main" "-L" "Cpp" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "-W" "mainhg"
// "libmwsglm.mlib" "QQchabu.m" 
//
#include "button2.hpp"
#include "chabujicunchu.hpp"
#include "libmatlbm.hpp"

static mxChar _array1_[6] = { 'd', 'a', 't', 'a', 'c', '1' };
static mwArray _mxarray0_ = mclInitializeString(6, _array1_);

static mxChar _array3_[6] = { 'd', 'a', 't', 'a', 'c', '2' };
static mwArray _mxarray2_ = mclInitializeString(6, _array3_);

static mxChar _array5_[6] = { 'd', 'a', 't', 'a', 'l', '2' };
static mwArray _mxarray4_ = mclInitializeString(6, _array5_);
static mwArray _mxarray6_ = mclInitializeDouble(1.0);

static mxChar _array8_[10] = { 'c', 'o', 'n', 't', 'e',
                               'n', 't', 's', '=', '1' };
static mwArray _mxarray7_ = mclInitializeString(10, _array8_);
static mwArray _mxarray9_ = mclInitializeDouble(2.0);

static mxChar _array11_[10] = { 'c', 'o', 'n', 't', 'e',
                                'n', 't', 's', '=', '2' };
static mwArray _mxarray10_ = mclInitializeString(10, _array11_);

static mxChar _array13_[31] = { 'E', ':', 0x005c, 'm', 'a', 't', 'l', 'a',
                                'b', '6', '.', '5', 0x005c, 'w', 'o', 'r',
                                'k', 0x005c, 'm', 'y', 'w', 'o', 'r', 'k',
                                0x005c, 'a', '1', '.', 't', 'x', 't' };
static mwArray _mxarray12_ = mclInitializeString(31, _array13_);

static mxChar _array15_[2] = { '%', 'c' };
static mwArray _mxarray14_ = mclInitializeString(2, _array15_);
static double _ieee_plusinf_ = mclGetInf();
static mwArray _mxarray16_ = mclInitializeDouble(_ieee_plusinf_);

static mxChar _array18_[8] = { 's', 't', 'r', 'i', 'n', 'g', 'a', 'b' };
static mwArray _mxarray17_ = mclInitializeString(8, _array18_);

void InitializeModule_button2() {
}

void TerminateModule_button2() {
}

static void Mbutton2();

_mexLocalFunctionTable _local_function_table_button2
  = { 0, (mexFunctionTableEntry *)NULL };

//
// The function "button2" contains the normal interface for the "button2"
// M-function from file "e:\matlab6.5\work\qqmywork\button2.m" (lines 1-37).
// This function processes any input arguments and passes them to the
// implementation version of the function, appearing above.
//
void button2() {
    Mbutton2();
}

//
// The function "mlxButton2" contains the feval interface for the "button2"
// M-function from file "e:\matlab6.5\work\qqmywork\button2.m" (lines 1-37).
// The feval function calls the implementation version of button2 through this
// function. This function processes any input arguments and passes them to the
// implementation version of the function, appearing above.
//
void mlxButton2(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) {
    MW_BEGIN_MLX();
    {
        if (nlhs > 0) {
            error(
              mwVarargin(
                mwArray(
                  "Run-time Error: File: button2 Line: 1 Column: "
                  "1 The function \"button2\" was called with mor"
                  "e than the declared number of outputs (0).")));
        }
        if (nrhs > 0) {
            error(
              mwVarargin(
                mwArray(
                  "Run-time Error: File: button2 Line: 1 Column: "
                  "1 The function \"button2\" was called with mor"
                  "e than the declared number of inputs (0).")));
        }
        Mbutton2();
    }
    MW_END_MLX();
}

//
// The function "Mbutton2" is the implementation version of the "button2"
// M-function from file "e:\matlab6.5\work\qqmywork\button2.m" (lines 1-37). It
// contains the actual compiled code for that M-function. It is a static
// function and must only be called from one of the interface functions,
// appearing below.
//
//
// function button2
//
static void Mbutton2() {
    mwLocalFunctionTable save_local_function_table_
      = &_local_function_table_button2;
    mwArray chahouneirong = mwArray::UNDEFINED;
    mwArray fidc2 = mwArray::UNDEFINED;
    mwArray stringb = mwArray::UNDEFINED;
    mwArray stringab = mwArray::UNDEFINED;
    mwArray check2 = mwArray::UNDEFINED;
    mwArray a1neirong = mwArray::UNDEFINED;
    mwArray fidc1 = mwArray::UNDEFINED;
    mwArray check1 = mwArray::UNDEFINED;
    mwArray list2 = mwArray::UNDEFINED;
    mwArray datal2 = mwArray::UNDEFINED;
    mwArray datac2 = mwArray::UNDEFINED;
    mwArray ans = mwArray::UNDEFINED;
    mwArray datac1 = mwArray::UNDEFINED;
    //
    // load datac1 
    //
    loadc_(
      _mxarray0_,
      "a1neirong",
      &a1neirong,
      "ans",
      &ans,
      "chahouneirong",
      &chahouneirong,
      "check1",
      &check1,
      "check2",
      &check2,
      "datac1",
      &datac1,
      "datac2",
      &datac2,
      "datal2",
      &datal2,
      "fidc1",
      &fidc1,
      "fidc2",
      &fidc2,
      "list2",
      &list2,
      "stringab",
      &stringab,
      "stringb",
      &stringb,
      NULL);
    //
    // load datac2
    //
    loadc_(
      _mxarray2_,
      "a1neirong",
      &a1neirong,
      "ans",
      &ans,
      "chahouneirong",
      &chahouneirong,
      "check1",
      &check1,
      "check2",
      &check2,
      "datac1",
      &datac1,
      "datac2",
      &datac2,
      "datal2",
      &datal2,
      "fidc1",
      &fidc1,
      "fidc2",
      &fidc2,
      "list2",
      &list2,
      "stringab",
      &stringab,
      "stringb",
      &stringb,
      NULL);
    //
    // load datal2
    //
    loadc_(
      _mxarray4_,
      "a1neirong",
      &a1neirong,
      "ans",
      &ans,
      "chahouneirong",
      &chahouneirong,
      "check1",
      &check1,
      "check2",
      &check2,
      "datac1",
      &datac1,
      "datac2",
      &datac2,
      "datal2",
      &datal2,
      "fidc1",
      &fidc1,
      "fidc2",
      &fidc2,
      "list2",
      &list2,
      "stringab",
      &stringab,
      "stringb",
      &stringb,
      NULL);
    //
    // 
    // if list2==1
    //
    if (mclEqBool(mwVv(list2, "list2"), _mxarray6_)) {
        //
        // chabujicunchu
        //
        chabujicunchu();
        //
        // %注释前可以加上对于test1.txt需要的插补算法产生的插文件即可
        // fprintf('contents=1');
        //
        ans.EqAns(Nfprintf(0, _mxarray7_, mwVarargin()));
    //
    // end
    //
    }
    //
    // 
    // if list2==2
    //
    if (mclEqBool(mwVv(list2, "list2"), _mxarray9_)) {
        //
        // 
        // %注释前可以加上对于test2.txt需要的插补算法和产生的插文件即可
        // fprintf('contents=2');
        //
        ans.EqAns(Nfprintf(0, _mxarray10_, mwVarargin()));
    //
    // end
    //
    }
    //
    // 
    // if check1==1
    //
    if (mclEqBool(mwVv(check1, "check1"), _mxarray6_)) {
        //
        // 
        // 
        // %fprintf('afdsdf');
        // fidc1=fopen('E:\matlab6.5\work\mywork\a1.txt');
        //
        fidc1 = fopen(_mxarray12_);
        //
        // a1neirong=fscanf(fidc1,'%c',inf)
        //
        a1neirong = fscanf(mwVv(fidc1, "fidc1"), _mxarray14_, _mxarray16_);
        mwVv(a1neirong, "a1neirong").Print("a1neirong");
        //
        // fclose(fidc1);
        //
        ans.EqAns(fclose(mwVv(fidc1, "fidc1")));
    //
    // 
    // % open('E:\matlab6.5\work\mywork\a1.txt');
    // end 
    //
    }
    //
    // if check2==1
    //
    if (mclEqBool(mwVv(check2, "check2"), _mxarray6_)) {
        //
        // 
        // %fprintf('ggggggg');
        // load stringab  
        //
        loadc_(
          _mxarray17_,
          "a1neirong",
          &a1neirong,
          "ans",
          &ans,
          "chahouneirong",
          &chahouneirong,
          "check1",
          &check1,
          "check2",
          &check2,
          "datac1",
          &datac1,
          "datac2",
          &datac2,
          "datal2",
          &datal2,
          "fidc1",
          &fidc1,
          "fidc2",
          &fidc2,
          "list2",
          &list2,
          "stringab",
          &stringab,
          "stringb",
          &stringb,
          NULL);
        //
        // fidc2=fopen(stringb);
        //
        fidc2 = fopen(mwVv(stringb, "stringb"));
        //
        // chahouneirong=fscanf(fidc2,'%c',inf)
        //
        chahouneirong = fscanf(mwVv(fidc2, "fidc2"), _mxarray14_, _mxarray16_);
        mwVv(chahouneirong, "chahouneirong").Print("chahouneirong");
        //
        // fclose(fidc2);
        //
        ans.EqAns(fclose(mwVv(fidc2, "fidc2")));
    //
    // 
    // %open(stringb);
    // end
    //
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -