第26行的等号处提示:不能将 “int” 类型的值分配到 “POLAR_V”类型的实体
这是什么原因?反复看了好多遍也没找到 “int” 类型
#include<stdio.h>
#include<math.h>
#define RAD_TO_DEG (180/(4*atan(1)))
……继续阅读 »
9年前 (2016-04-08) 969浏览
0个赞
/* accquire the packet and adjudge whether the packet is mine */
pkptr = op_pk_get(op_intrpt_strm());
/* get the type field of the instream packet */
op_pk_nfd_access(pkptr,"type"……继续阅读 »
9年前 (2016-04-08) 1946浏览
0个赞
int trimSpace(char *str,char *newstr)
{
char *p=str;
int ncount=0;
int i,j=0;
if(str==NULL||newstr==NULL)
{
return -1;
}
i=0;
j=strlen(p)-1;
while(isspace(p[i])&&p[i]!=R……继续阅读 »
9年前 (2016-04-08) 1062浏览
0个赞
/* @filename list.h */
#include<stdlib.h>
#include<malloc.h>
#include<stdio.h>
typedef struct queue 队列
{
int *arr;//数组arr地址
size_t cap;//容量
size_t front;//队首位……继续阅读 »
9年前 (2016-04-08) 1343浏览
0个赞
#ifndef _EMSTRUCT_H_
#define _EMSTRUCT_H_
struct clerk
{
char num[20]; //工号
char name[20]; //姓名
int iYear; //发放年份
int iMonth; //发放月份
float Post_salary;//岗位工资
float Class……继续阅读 »
9年前 (2016-04-08) 1698浏览
0个赞
如题,下面是本人的汇编程序:
1 .686p
2 .xmm
3 .model flat, stdcall
4 option casemap :none
5
6 .code
7 atestd proc
8 pushad
9 mov eax, 238
10 mov ecx, 287
11 movdqa XMM0, [eax]
12 movdqa……继续阅读 »
9年前 (2016-04-08) 1660浏览
0个赞
#include <stdio.h>
int main(void)
{
double a,b;
scanf(“%f”,&b);
a=2.54*b;
printf(“%f cm\n”,a);
}
本人用cfree编了这么一个制度转换的程序,调试完后,执行时却总显示是0.000000,不知有何错……继续阅读 »
9年前 (2016-04-08) 981浏览
0个赞
如下初始化一个栈;
}
typedef struct STACK
{
int *arr;//数组
int cap;//容量
int top;//栈顶元素
int size;//当前元素个数
} Stack;
void init_stack(Stack **stack, int cap)
{
*stack = (Stack*)malloc(cap*s……继续阅读 »
9年前 (2016-04-08) 1653浏览
0个赞
被一个文字游戏困住了,代码很简单:
int array[10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
int (*pa)[] = &array;
printf( “pa = %d\n”, pa );
printf( “&array = %d\n”, &a……继续阅读 »
9年前 (2016-04-08) 1377浏览
0个赞