RError.com

RError.com Logo RError.com Logo

RError.com Navigation

  • 主页

Mobile menu

Close
  • 主页
  • 系统&网络
    • 热门问题
    • 最新问题
    • 标签
  • Ubuntu
    • 热门问题
    • 最新问题
    • 标签
  • 帮助
主页 / user-320985

Ivan's questions

Martin Hope
Ivan
Asked: 2020-12-01 00:38:34 +0000 UTC

在网站上用手写笔签署文件

  • 2

您需要在您的网站上添加一些“协议签名”框,用于手写笔或触摸屏文档。请告诉我如何做到这一点。如果有人遇到同样的问题,请告诉我你是如何解决的?

谢谢))

javascript
  • 2 个回答
  • 10 Views
Martin Hope
Ivan
Asked: 2020-06-25 21:17:34 +0000 UTC

Latex:tikzpicture 编译问题

  • 0

我知道代码可以正常工作,但它在我的笔记本电脑上不起作用。告诉我,pzhl,可能出了什么问题。

\begin{tikzpicture}[scale=2]
% alpha = (0.924,22.5), beta = (0.383,-22.5)

% alpha and beta complex items values

\def\arho{0.924}
\def\aphi{22.5}
\def\brho{0.383}
\def\bphi{-22.5}

% draw axes
\draw [-latex] (-1.2,0) -- (1.2,0);
\draw [-latex] (0,-1.2) -- (0,1.2);
% draw unit circle
\draw (0,0) circ

le (1cm);
% drav axes descriptions
\draw (-1.0,   0) node[anchor=south east] {$-1$};
\draw ( 1.0,   0) node[anchor=south west] {$1$};
\draw (   0,-1.0) node[anchor=north west] {$-i$};
\draw (   0, 1.0) node[anchor=south west] {$i$};

%% DRAWING alpha an beta
% angles
\filldraw[gray,opacity=0.2] (0,0) -- (\arho,0) arc (0:\aphi:\arho cm);
\filldraw[gray,opacity=0.2] (0,0) -- (\brho,0) arc (0:\bphi:\brho cm);
\draw (\arho,0) arc (0:\aphi:\arho cm);
\draw (\brho,0) arc (0:\bphi:\brho cm);
% radial circles
\draw [dotted] (0,0) circle (\arho cm);
\draw [dotted] (0,0) circle (\brho cm);
% vectors
\draw [thick,-latex] (0,0) -- (xyz polar cs:angle=\aphi,radius=\arho);
\draw (xyz polar cs:angle=\aphi,radius={\arho +0.1}) node {$\alpha$};
\draw [thick,-latex] (0,0) -- (xyz polar cs:angle=\bphi,radius=\brho);
\draw (xyz polar cs:angle=\bphi,radius={\brho +0.1}) node {$\beta$};

\end{tikzpicture}

给出这些错误: 给出这样的错误

latex
  • 1 个回答
  • 10 Views
Martin Hope
Ivan
Asked: 2020-03-12 03:20:16 +0000 UTC

不输出矩阵和向量。C++ [关闭]

  • 0
关闭 这个问题是题外话。目前不接受回复。

寻求调试帮助的问题(“为什么这段代码不起作用? ”)应该包括期望的行为、具体的问题或错误,以及在问题中重现它的最少代码。没有明确描述问题的问题对其他访问者毫无用处。请参阅如何创建一个最小的、独立的和可重现的示例。

3年前关闭。

改进问题

我不明白是什么原因。它应该输出一个矩阵和一个具有您自己设置的维度的向量。请告诉我错误。

// Function for simple initialization of matrix and vector elements
void DummyDataInitialization(double* pMatrix, double* pVector, int Size)
{
int i, j; // Loop variables 
for (i = 0; i < Size; i++)
{
pVector[i] = 1;
for (j = 0; j < Size; j++)
pMatrix[i * Size + j] = i;
}
}
// Function for memory allocation and data initialization
void ProcessInitialization(double* &pMatrix, double* &pVector, double* 
&pResultVector, int Size) {
// Setting the size of initial matrix and vector
do
{
printf("\nEnter size of the initial objects: ");
scanf("%d", &Size); 
printf("\nChosen objects size = %d", Size); 
if (Size <= 0)   
printf("\nSize of objects must be greater than 0!\n"); 
}
while (Size <= 0);

// Memory allocation
pMatrix = new double [Size * Size];
pVector = new double [Size];
pResultVector = new double [Size];



// Initialization of matrix and vector elements
DummyDataInitialization(pMatrix, pVector, Size);
}

// Function for formatted matrix output
void PrintMatrix(double* pMatrix, int RowCount, int ColCount)
{
int i, j; // Loop variables
for (i = 0; i < RowCount; i++)
{
 for (j = 0; j < ColCount; j++)
 printf("%7.4f ", pMatrix[i * ColCount + j]);
 printf("\n");
}
}


// Function for formatted vector output
void PrintVector(double* pVector, int Size)
{
 int i;
 for (i = 0; i < Size; i++)
 printf("%7.4f ", pVector[i]);
 printf("\n");
}

int main(int argc, char *argv[]) { 
double *pMatrix=NULL, *pVector=NULL,  *pResultVector=NULL;
int Size=0, RowCount=0, ColCount=0;

// Memory allocation and data initialization
ProcessInitialization(pMatrix, pVector, pResultVector, Size);
PrintMatrix( pMatrix, RowCount, ColCount);
PrintVector(pVector, Size);



 // Matrix and vector output   
 printf("Initial Matrix: \n");  
 PrintMatrix(pMatrix, Size, Size);   
 printf("Initial Vector: \n"); 
 PrintVector(pVector, Size);

 _getch();



  system("pause");
}

当我运行程序时,我可以输入维度,但它不会输出矩阵和向量。在此处输入图像描述

c++
  • 2 个回答
  • 10 Views
Martin Hope
Ivan
Asked: 2020-12-19 19:51:05 +0000 UTC

Webgl,three.js,如何使模型在按钮单击时向前、向后或从右向左移动?

  • 4

请告诉我,我需要通过按“右”、“左”、“前进”和“后退”按钮来移动我的抽屉柜。怎么做? 有两个按钮

这是html部分:

<button onclick="choose_sofa('bt_forward')" class="picture">Move forward</button>
<button onclick="choose_sofa('bt_back')" class="picture">Move back</button>

在js中,模型的名字是commode。

例如,使用这段代码,我改变了沙发的颜色,但我不知道如何移动对象(

function choose_sofe(color) {
   switch (color) {
       case 'bt_organge':
           var orange = sofa.material.color.set("orange");
           break;
       case 'bt_grey':
           var grey = sofa.material.color.set("grey");
           break;
       case 'bt_green':
           var green = sofa.material.color.set("green");
           break;
    }
}
three.js
  • 1 个回答
  • 10 Views

Sidebar

Stats

  • 问题 10021
  • Answers 30001
  • 最佳答案 8000
  • 用户 6900
  • 常问
  • 回答
  • Marko Smith

    我看不懂措辞

    • 1 个回答
  • Marko Smith

    请求的模块“del”不提供名为“default”的导出

    • 3 个回答
  • Marko Smith

    "!+tab" 在 HTML 的 vs 代码中不起作用

    • 5 个回答
  • Marko Smith

    我正在尝试解决“猜词”的问题。Python

    • 2 个回答
  • Marko Smith

    可以使用哪些命令将当前指针移动到指定的提交而不更改工作目录中的文件?

    • 1 个回答
  • Marko Smith

    Python解析野莓

    • 1 个回答
  • Marko Smith

    问题:“警告:检查最新版本的 pip 时出错。”

    • 2 个回答
  • Marko Smith

    帮助编写一个用值填充变量的循环。解决这个问题

    • 2 个回答
  • Marko Smith

    尽管依赖数组为空,但在渲染上调用了 2 次 useEffect

    • 2 个回答
  • Marko Smith

    数据不通过 Telegram.WebApp.sendData 发送

    • 1 个回答
  • Martin Hope
    Alexandr_TT 2020年新年大赛! 2020-12-20 18:20:21 +0000 UTC
  • Martin Hope
    Alexandr_TT 圣诞树动画 2020-12-23 00:38:08 +0000 UTC
  • Martin Hope
    Air 究竟是什么标识了网站访问者? 2020-11-03 15:49:20 +0000 UTC
  • Martin Hope
    Qwertiy 号码显示 9223372036854775807 2020-07-11 18:16:49 +0000 UTC
  • Martin Hope
    user216109 如何为黑客设下陷阱,或充分击退攻击? 2020-05-10 02:22:52 +0000 UTC
  • Martin Hope
    Qwertiy 并变成3个无穷大 2020-11-06 07:15:57 +0000 UTC
  • Martin Hope
    koks_rs 什么是样板代码? 2020-10-27 15:43:19 +0000 UTC
  • Martin Hope
    Sirop4ik 向 git 提交发布的正确方法是什么? 2020-10-05 00:02:00 +0000 UTC
  • Martin Hope
    faoxis 为什么在这么多示例中函数都称为 foo? 2020-08-15 04:42:49 +0000 UTC
  • Martin Hope
    Pavel Mayorov 如何从事件或回调函数中返回值?或者至少等他们完成。 2020-08-11 16:49:28 +0000 UTC

热门标签

javascript python java php c# c++ html android jquery mysql

Explore

  • 主页
  • 问题
    • 热门问题
    • 最新问题
  • 标签
  • 帮助

Footer

RError.com

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

帮助

© 2023 RError.com All Rights Reserve   沪ICP备12040472号-5