您需要在您的网站上添加一些“协议签名”框,用于手写笔或触摸屏文档。请告诉我如何做到这一点。如果有人遇到同样的问题,请告诉我你是如何解决的?
谢谢))
您需要在您的网站上添加一些“协议签名”框,用于手写笔或触摸屏文档。请告诉我如何做到这一点。如果有人遇到同样的问题,请告诉我你是如何解决的?
谢谢))
我知道代码可以正常工作,但它在我的笔记本电脑上不起作用。告诉我,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}
我不明白是什么原因。它应该输出一个矩阵和一个具有您自己设置的维度的向量。请告诉我错误。
// 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");
}
请告诉我,我需要通过按“右”、“左”、“前进”和“后退”按钮来移动我的抽屉柜。怎么做?
这是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;
}
}