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

📄 my_hello.cpp

📁 该程序为MATLAB对CDMA系统个部分的仿真
💻 CPP
字号:
//
// MATLAB Compiler: 2.2
// Date: Tue Jun 25 10:39:33 2002
// 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" "-p" "-W" "main" "-L"
// "Cpp" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "my_hello" 
//
#include "my_hello.hpp"
#include "libmatlbm.hpp"

static mxChar _array1_[134] = { 'R', 'u', 'n', '-', 't', 'i', 'm', 'e', ' ',
                                'E', 'r', 'r', 'o', 'r', ':', ' ', 'F', 'i',
                                'l', 'e', ':', ' ', 'm', 'y', '_', 'h', 'e',
                                'l', 'l', 'o', ' ', 'L', 'i', 'n', 'e', ':',
                                ' ', '1', ' ', 'C', 'o', 'l', 'u', 'm', 'n',
                                ':', ' ', '1', ' ', 'T', 'h', 'e', ' ', 'f',
                                'u', 'n', 'c', 't', 'i', 'o', 'n', ' ', '"',
                                'm', 'y', '_', 'h', 'e', 'l', 'l', 'o', '"',
                                ' ', 'w', 'a', 's', ' ', 'c', 'a', 'l', 'l',
                                'e', 'd', ' ', 'w', 'i', 't', 'h', ' ', 'm',
                                'o', 'r', 'e', ' ', 't', 'h', 'a', 'n', ' ',
                                't', 'h', 'e', ' ', 'd', 'e', 'c', 'l', 'a',
                                'r', 'e', 'd', ' ', 'n', 'u', 'm', 'b', 'e',
                                'r', ' ', 'o', 'f', ' ', 'o', 'u', 't', 'p',
                                'u', 't', 's', ' ', '(', '0', ')', '.' };
static mwArray _mxarray0_ = mclInitializeString(134, _array1_);

static mxChar _array3_[133] = { 'R', 'u', 'n', '-', 't', 'i', 'm', 'e', ' ',
                                'E', 'r', 'r', 'o', 'r', ':', ' ', 'F', 'i',
                                'l', 'e', ':', ' ', 'm', 'y', '_', 'h', 'e',
                                'l', 'l', 'o', ' ', 'L', 'i', 'n', 'e', ':',
                                ' ', '1', ' ', 'C', 'o', 'l', 'u', 'm', 'n',
                                ':', ' ', '1', ' ', 'T', 'h', 'e', ' ', 'f',
                                'u', 'n', 'c', 't', 'i', 'o', 'n', ' ', '"',
                                'm', 'y', '_', 'h', 'e', 'l', 'l', 'o', '"',
                                ' ', 'w', 'a', 's', ' ', 'c', 'a', 'l', 'l',
                                'e', 'd', ' ', 'w', 'i', 't', 'h', ' ', 'm',
                                'o', 'r', 'e', ' ', 't', 'h', 'a', 'n', ' ',
                                't', 'h', 'e', ' ', 'd', 'e', 'c', 'l', 'a',
                                'r', 'e', 'd', ' ', 'n', 'u', 'm', 'b', 'e',
                                'r', ' ', 'o', 'f', ' ', 'i', 'n', 'p', 'u',
                                't', 's', ' ', '(', '0', ')', '.' };
static mwArray _mxarray2_ = mclInitializeString(133, _array3_);
static mwArray _mxarray4_ = mclInitializeDouble(1.0);

static mxChar _array6_[14] = { 'H', 'e', 'l', 'l', 'o', ',', ' ', 'W',
                               'o', 'r', 'l', 'd', 0x005c, 'n' };
static mwArray _mxarray5_ = mclInitializeString(14, _array6_);

void InitializeModule_my_hello() {
}

void TerminateModule_my_hello() {
}

static void Mmy_hello();

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

//
// The function "my_hello" contains the normal interface for the "my_hello"
// M-function from file "D:\mywork\my_hello.m" (lines 1-7). This function
// processes any input arguments and passes them to the implementation version
// of the function, appearing above.
//
void my_hello() {
    Mmy_hello();
}

//
// The function "mlxMy_hello" contains the feval interface for the "my_hello"
// M-function from file "D:\mywork\my_hello.m" (lines 1-7). The feval function
// calls the implementation version of my_hello through this function. This
// function processes any input arguments and passes them to the implementation
// version of the function, appearing above.
//
void mlxMy_hello(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) {
    MW_BEGIN_MLX();
    {
        if (nlhs > 0) {
            error(_mxarray0_);
        }
        if (nrhs > 0) {
            error(_mxarray2_);
        }
        Mmy_hello();
    }
    MW_END_MLX();
}

//
// The function "Mmy_hello" is the implementation version of the "my_hello"
// M-function from file "D:\mywork\my_hello.m" (lines 1-7). 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 hello
//
static void Mmy_hello() {
    mwLocalFunctionTable save_local_function_table_
      (&_local_function_table_my_hello);
    mwArray ans(mclGetUninitializedArray());
    //
    // % This is the hello, world function written in M code
    // % $Revision: 1.1 $
    // %
    // fprintf(1,'Hello, World\n' );
    //
    ans.EqAns(Nfprintf(0, _mxarray4_, mwVarargin(_mxarray5_)));
    //
    // 
    //
}

⌨️ 快捷键说明

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