c++报错:invalid conversion from int to int

错误已表明位置,初学求轻喷...
做一个计步软件求每周的步数最大值最小值以及平均值,要求输入多组数据并在最开始输入数据的组数T
#include
#include

using namespace std;
class Step
{
public:
Step(int a[7]);
Step(const Step &c);
~Step(){}
int getMax();
int getMin();
float getAverage();
void showAnswer();
private:
static float Averstep;
int Maxstep,Minstep;
int step[7];
};
Step::Step(int a[7])
{
for(int i=0;i {
step[i]=a[i];
}
}
Step::Step(const Step &c)
{
for(int i=0;i {
step[i]=c.step[i];
}
}
float Step::getAverage()
{
for(int i=0;i Averstep=(Averstep+step[i])/7;
return Averstep;
}
int Step::getMax()
{
int Maxstep=step[0];
for (int i=1;i {
if (step[i]>Maxstep) {
Maxstep=step[i];
}
}
return Maxstep;
}
int Step::getMin()
{
int Minstep=step[0];
for (int i=1;i<=6;i++)
if (step[i] Minstep=step[i];
}
return Minstep;
}
void Step::showAnswer()
{
cout }
float Step::Averstep=0.0;
int main()
{
int T;
int step[7];
cin>>T;
while(cin>>step[0]>>step[1]>>step[2]>>step[3]>>step[4]>>step[5]>>step[6])
{
Step x(step[7]); *****(错误位置)*****
x.showAnswer();
}
return 0;
}


c++

1个回答

step【7】是一个int数,而你的step是0-6的,它越界了
应该传过去一个数组,所以用
Step x(step);

代码里for循环都不完整 我这也调试不了
//*************************

1.实例化的时候只调用了构造函数,没有用他的方法,也就是没有计算最大最小值(可以在计算最大最小的函数里打个断点),我在构造函数里执行了计算的函数所以输出是正常的
2.输入的数据组数没用,这个简单,自己改吧

#include "stdio.h"
#include "iostream"

using namespace std;

class Step
{
public:
    Step(int a[7]);
    Step(const Step &c);
    ~Step(){}
    int getMax();
    int getMin();
    float getAverage();
    void showAnswer();
private:
    static float Averstep;
    int Maxstep, Minstep;
    int step[7];
};
Step::Step(int a[7])
{
    for (int i = 0; i<7; i++) 
    {
        step[i] = a[i];
    }
    Maxstep = getMax();
    Minstep = getMin();
    Averstep = getAverage();
}
Step::Step(const Step &c)
{
    for (int i = 0; i<7; i++)
    {
        step[i] = c.step[i];
    }
}
float Step::getAverage()
{
    for (int i = 0; i<7; i++)
        Averstep = (Averstep + step[i]) / 7;
    return Averstep;
}
int Step::getMax()
{
    int Maxstep = step[0];
    for (int i = 0; i<7; i++)
    {
        if (step[i]>Maxstep) 
        {
            Maxstep = step[i];
        }
    }
    return Maxstep;
}
int Step::getMin()
{
    int Minstep = step[0];
    for (int i = 1; i <= 6; i++)
    {
        if (step[i] < Minstep)
            Minstep = step[i];
    }
return Minstep;
}
void Step::showAnswer()
{
    cout << "max" << Maxstep << endl;
    cout << "min" << Minstep << endl;
    cout << "ave" << Averstep << endl;
}


float Step::Averstep = 0.0;
int main()
{
    int T;
    int step[7];
    cin >> T;
    while (cin >> step[0] >> step[1] >> step[2] >> step[3] >> step[4] >> step[5] >> step[6])
    {
        Step x(step); 

        x.showAnswer();
    }
    system("pause");
    return 0;
}

图片说明

qq_31762199
豆丷 回复Josie0625: 之前不是cin了个T么,用个for循环,输入多组for(int i=0;i<T;i++) cin>>.....
12 个月之前 回复
Josie0625
Josie0625 这个需要多组输入输出的应该怎么修改啊
12 个月之前 回复
Josie0625
Josie0625 回复豆丷: Step::Step(int a[7]) { for(int i=0;i<7;i++) { step[i]=a[i]; } } Step::Step(const Step &c) { for(int i=0;i<7;i++) { step[i]=c.step[i]; } } 不好意思我写的是这样的 复制代码的时候没有粘贴好
12 个月之前 回复
qq_31762199
豆丷 回复Josie0625: Step::Step(int a[7]) { for(int i=0;i { step[i]=a[i]; } } Step::Step(const Step &c) { for(int i=0;i { step[i]=c.step[i]; } } 这里的for循环格式都不会 大括号也对不上
12 个月之前 回复
Josie0625
Josie0625 你好 step的问题我已经修改了 能不能帮助看看for循环哪里不完整 需要怎么改?非常感谢
12 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
c++报错:invalid conversion from int to int

错误已表明位置,初学求轻喷... 做一个计步软件求每周的步数最大值最小值以及平均值,要求输入多组数据并在最开始输入数据的组数T #include <iostream> #include <math.h> using namespace std; class Step { public: Step(int a[7]); Step(const Step &c); ~Step(){} int getMax(); int getMin(); float getAverage(); void showAnswer(); private: static float Averstep; int Maxstep,Minstep; int step[7]; }; Step::Step(int a[7]) { for(int i=0;i<7;i++) { step[i]=a[i]; } } Step::Step(const Step &c) { for(int i=0;i<7;i++) { step[i]=c.step[i]; } } float Step::getAverage() { for(int i=0;i<=6;i++) Averstep=(Averstep+step[i])/7; return Averstep; } int Step::getMax() { int Maxstep=step[0]; for (int i=1;i<=6;i++) { if (step[i]>Maxstep) { Maxstep=step[i]; } } return Maxstep; } int Step::getMin() { int Minstep=step[0]; for (int i=1;i<=6;i++) if (step[i]<Minstep) { Minstep=step[i]; } return Minstep; } void Step::showAnswer() { cout<<Maxstep<<endl<<Minstep<<endl<<floor(Averstep); } float Step::Averstep=0.0; int main() { int T; int step[7]; cin>>T; while(cin>>step[0]>>step[1]>>step[2]>>step[3]>>step[4]>>step[5]>>step[6]) { **_Step x(step[7]);_** *****(错误位置)***** x.showAnswer(); } return 0; } ``` ```

C语言编译时,提示invalid conversion from ‘char’ to ‘char*’ [-fpermissive]错误,请问哪里问题?

编译环境: Armbian(arm嵌入式linux)64位系统,基于Ubuntu Bionic 18.04 LTS 4.19内核 错误提示: ![图片说明](https://img-ask.csdn.net/upload/201902/21/1550707793_4777.png) tools.c:63:13: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive] *pout = '\0'; ^~~~ 部分代码内容: 这是图片: ![图片说明](https://img-ask.csdn.net/upload/201902/21/1550707811_128009.png) 以下是文字代码: int code_convert(char *from_charset, char *to_charset, char *inbuf, size_t inlen, char *outbuf, size_t outlen) { iconv_t cd; char **pin = &inbuf; char **pout = &outbuf; cd = iconv_open(to_charset, from_charset); if (cd == 0) return -1; memset(outbuf, 0, outlen); if (iconv(cd, pin, &inlen, pout, &outlen) == -1) return -1; iconv_close(cd); *pout = '\0'; return 0; }

invalid conversion from 'char**' to 'const char**

``` #include <iostream> using namespace std; int main() { char* a="AAAA"; char* b="BBBB"; char* c="CCCC"; const char*x=a; //二维 char *y[3]= {a,b,c}; const char** z=y; } ``` 最后一行 ``` const char** z=y; ``` 错误,求指教

warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data 具体问题在哪里呢?怎么改

#include<stdio.h> #include<math.h> int main(void){ float x1,y1,x2,y2,x3,y3; float p,a,b,c,S; printf("input three coordinates to calculate the area of the triangle:"); scanf("%f%f%f%f%f%f",&x1,&y1,&x2,&y2,&x3,&y3); a=sqrtf((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)); b=sqrtf((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3)); c=sqrtf((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3)); if(a>b) {t=a;a=b;b=t;} if(a>c) {t=a;a=c;c=t;} if(b>c) {t=b;b=c;c=t;} if(c=a+b) {printf("These three line segments can't be combined to be a triangle")} else if(c>a+b) { p=(a+b+c)/(2.0); S=sqrtf(p*(p-a)*(p-b)*(p-c)); printf("The area of the triangle is:%.2f",S); } return 0; }

go运行时无法编译

<div class="post-text" itemprop="text"> <p>I am just wondering why would go runtime fail to build. How do we pass flags (-fpermissive in this case) to the c compiler which golang compiler is using to build the runtime. I am using gcc-4.6.2 on ubuntu 12.04</p> <pre><code>../../../thirdparty/go1.4.2/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/src/runtime/cgo/gcc_linux_amd64.c: In function ‘void _cgo_sys_thread_start(ThreadStart*)’: ../../../thirdparty/go1.4.2/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/src/runtime/cgo/gcc_linux_amd64.c:45:41: error: invalid conversion from ‘void*’ to ‘__sigset_t*’ [-fpermissive] </code></pre> <p>A sample program written also fails to compile, it seems the nil defined in the go code is the problem, i wonder how others are working, when does the golang compiler compiles this runtime code ? </p> <pre><code>gcc t.c -lpthread -o t t.c: In function ‘void* hello_world(void*)’: t.c:12:41: error: invalid conversion from ‘void*’ to ‘__sigset_t*’ [-fpermissive] /usr/include/x86_64-linux-gnu/bits/sigthread.h:31:12: error: initializing argument 3 of ‘int pthread_sigmask(int, const __sigset_t*, __sigset_t*)’ [-fpermissive] rk@rk-VirtualBox:~$ gcc -fpermissive t.c -lpthread -o t t.c: In function ‘void* hello_world(void*)’: t.c:12:41: warning: invalid conversion from ‘void*’ to ‘__sigset_t*’ [-fpermissive] rk@rk-VirtualBox:~$ cat t.c #include&lt;pthread.h&gt; #include&lt;stdio.h&gt; #include&lt;signal.h&gt; #define nil ((void*)0) static void* hello_world(void *vptr) { sigset_t set; sigemptyset(&amp;set); pthread_sigmask(SIG_BLOCK, &amp;set, nil); printf("hello world"); return NULL; } int main(int ac, char **av) { pthread_t t; pthread_create(&amp;t, NULL, hello_world, NULL); pthread_join(t, NULL); return 0; } /usr/include/x86_64-linux-gnu/bits/sigthread.h:31:12: error: initializing argument 3 of ‘int pthread_sigmask(int, const __sigset_t*, __sigset_t*)’ [-fpermissive] make: *** [rulemanager] Error 2 </code></pre> </div>

关于C语言的指针类型转换问题?

#include <stdio.h> int main() { unsigned int a = 0; unsigned char *p = (char *)&a;//有错 p[0] = 123; p[1] = 111; p[2] = 168; p[3] = 192; printf("%u\n", a); return 0; } 结果报错:error: invalid conversion from 'char*' to 'unsigned char*' [-fpermissive]| 我在想这样为什么不可以转换呢,

c++ 这个报错是什么原因?如何解决?

以下代码在编译时报错: ``` #include<iostream> using namespace std; string type_get, str_empty, str_num1, str_num2; string to_do = "+-*/"; int empty, i, operator_num, num1, num2; int flag = 1;//flag=1:运行,flag=0:退出 int plus(int num1,int num2) { int result; result = num1 + num2; return result; } int minus(int num1,int num2) { int result; result = num1 - num2; return result; } int multiply(int num1,int num2) { int result; result = num1 * num2; return result; } int divide(int num1,int num2) { int result; result = num1 / num2; return result; } int main() { while(flag) { cin >> type_get; if (type_get == "exit") { flag = 0; } else { operator_num = type_get.find_first_of(to_do); char array_type_get[type_get.length()]; for (i = 0; i < type_get.length(); i++) { array_type_get[i] = type_get[i]; } for (i = 0; i < operator_num; i++) { str_num1[i] = array_type_get[i]; } for (i = operator_num + 1; i < sizeof(array_type_get); i++) { str_num2[i] = array_type_get[i]; } num1 = atoi(str_num1.c_str()); num2 = atoi(str_num2.c_str()); switch (array_type_get[operator_num]) { case "+" : plus(num1,num2); break; case "-" : minus(num1,num2); break; case "*" : multiply(num1,num2); break; case "/" : divide(num1,num2); break; default : cout << "请输入一个运算符!" << endl; break; } } } return 0; } ``` 报错信息如下: ``` calculator.cpp: In function 'int main()': calculator.cpp:73:10: error: invalid conversion from 'const char*' to 'int' [-fpermissive] case "+" : ^~~ calculator.cpp:73:10: error: conversion from pointer type 'const char (*)[2]' to arithmetic type 'int' in a constant expression calculator.cpp:74:6: error: reference to 'plus' is ambiguous plus(num1,num2); ^~~~ In file included from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\string:48, from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\locale_classes.h:40, from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\ios_base.h:41, from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\ios:42, from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\ostream:38, from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\iostream:39, from calculator.cpp:1: c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\stl_function.h:147:12: note: candidates are: 'template<class _Tp> struct std::plus' struct plus; ^~~~ calculator.cpp:8:5: note: 'int plus(int, int)' int plus(int num1,int num2) ^~~~ calculator.cpp:77:10: error: invalid conversion from 'const char*' to 'int' [-fpermissive] case "-" : ^~~ calculator.cpp:77:10: error: conversion from pointer type 'const char (*)[2]' to arithmetic type 'int' in a constant expression calculator.cpp:78:6: error: reference to 'minus' is ambiguous minus(num1,num2); ^~~~~ In file included from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\string:48, from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\locale_classes.h:40, from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\ios_base.h:41, from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\ios:42, from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\ostream:38, from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\iostream:39, from calculator.cpp:1: c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\stl_function.h:150:12: note: candidates are: 'template<class _Tp> struct std::minus' struct minus; ^~~~~ calculator.cpp:15:5: note: 'int minus(int, int)' int minus(int num1,int num2) ^~~~~ calculator.cpp:81:10: error: invalid conversion from 'const char*' to 'int' [-fpermissive] case "*" : ^~~ calculator.cpp:81:10: error: conversion from pointer type 'const char (*)[2]' to arithmetic type 'int' in a constant expression calculator.cpp:85:10: error: invalid conversion from 'const char*' to 'int' [-fpermissive] case "/" : ^~~ calculator.cpp:85:10: error: conversion from pointer type 'const char (*)[2]' to arithmetic type 'int' in a constant expression ``` **_在这上面卡了好几天了,求各位大神解答!_**

如何连接 std: : string 和 int?

<div class="post-text" itemprop="text"> <p>I thought this would be really simple but it's presenting some difficulties. If I have</p> <pre><code>std::string name = "John"; int age = 21; </code></pre> <p>How do I combine them to get a single string <code>"John21"</code>?</p> </div> <p>转载于:https://stackoverflow.com/questions/191757/how-to-concatenate-a-stdstring-and-an-int</p>

Go无法调用C ++函数

<div class="post-text" itemprop="text"> <p>I have been using cgo to interface between Go and C. However, when trying to do the same for Go and C++, I get a compile error every time I attempt to call a function. Using <code>go build .</code> from the code's directory, I get the following errors:</p> <pre><code>./main.go: In function 'void _cgo_3612c872201c_Cfunc_getint(void*)': ./main.go:48:53: error: invalid conversion from 'void*' to '_cgo_3612c872201c_Cfunc_getint(void*)::&lt;anonymous struct&gt;*' [-fpermissive] ./main.go:54:4: error: invalid conversion from 'void*' to '_cgo_3612c872201c_Cfunc_getint(void*)::&lt;anonymous struct&gt;*' [-fpermissive] </code></pre> <p>I've put a super simple example below which shows the problem.</p> <p>main.go:</p> <pre><code>package main /* #cgo CFLAGS: -x c++ int getint() { return 1; } */ import "C" import ( "fmt" ) func main() { fmt.Println(C.getint()) } </code></pre> <p>Does anyone know if this is a bug in cgo, or something wrong with how I wrote the code? According to the <a href="https://golang.org/cmd/cgo/" rel="nofollow noreferrer">cgo documentation</a>, C++ is supported. I'm using Go version 1.7.5 for linux/amd64.</p> <p>Thanks so much!</p> </div>

linux c++ sds库 提示 undefined reference to `sdsempty()'

> 报错: > /tmp/cc3R3ayZ.o: In function 'main' > c.cpp:(.text+0x9): undefined reference to 'sdsempty()' > collect2: error: ld returned 1 exit status** ``` #include <iostream> #include <unistd.h> #include <sds.h> using namespace std; int main(){ sds s= sdsempty(); return 0; } ``` 我更新了sds文件,然后: ``` [root@localhost c4]# g++ -std=c++11 -o test -I/wgs/sds c.cpp In file included from c.cpp:3:0: /wgs/sds/sds.h: In function ‘size_t sdsavail(sds)’: /wgs/sds/sds.h:83:87: error: invalid conversion from ‘void*’ to ‘sdshdr8*’ [-fpermissive] #define SDS_HDR_VAR(T,s) struct sdshdr##T *sh = (void*)((s)-(sizeof(struct sdshdr##T))); ^ /wgs/sds/sds.h:111:13: note: in expansion of macro ‘SDS_HDR_VAR’ SDS_HDR_VAR(8,s); ^ /wgs/sds/sds.h:83:87: error: invalid conversion from ‘void*’ to ‘sdshdr16*’ [-fpermissive] #define SDS_HDR_VAR(T,s) struct sdshdr##T *sh = (void*)((s)-(sizeof(struct sdshdr##T))); ^ /wgs/sds/sds.h:115:13: note: in expansion of macro ‘SDS_HDR_VAR’ SDS_HDR_VAR(16,s); ^ /wgs/sds/sds.h:83:87: error: invalid conversion from ‘void*’ to ‘sdshdr32*’ [-fpermissive] #define SDS_HDR_VAR(T,s) struct sdshdr##T *sh = (void*)((s)-(sizeof(struct sdshdr##T))); ^ /wgs/sds/sds.h:119:13: note: in expansion of macro ‘SDS_HDR_VAR’ SDS_HDR_VAR(32,s); ^ /wgs/sds/sds.h:83:87: error: invalid conversion from ‘void*’ to ‘sdshdr64*’ [-fpermissive] #define SDS_HDR_VAR(T,s) struct sdshdr##T *sh = (void*)((s)-(sizeof(struct sdshdr##T))); ^ /wgs/sds/sds.h:123:13: note: in expansion of macro ‘SDS_HDR_VAR’ SDS_HDR_VAR(64,s); ^ ``` 这个是啥原因啊?

救救孩子???指针数组

#include<stdio.h> int perimeter(int x,int y); int area(int x,int y); int solution(int x,int y,int(*ptr)()); int main() { int a,b; printf(" 请输入A和B的值:"); scanf("%d%d",&a,&b); printf(" Perimeter of a rectangle:"); solution(a,b,perimeter); printf(" Area of a rectangle:"); solution(a,b,area); } int perimeter(int x,int y) { return (2*(x+y)); } int area(int x,int y) { return x*y; } int solution(int x,int y,int(*ptr)()) { int result; result=(*ptr)(x,y); printf("%d\n",result); } [Error] C:\Users\H\Documents\C-Free\Temp\未命名1.cpp:11: error: invalid conversion from `int (*)(int, int)' to `int (*)()'

初学c++ 这个求最大值的哪里错了? :)

![图片说明](https://img-ask.csdn.net/upload/201909/29/1569761105_402677.png) 这个求最大值的哪里错了? :)

opencv的 FastFeatureDetector fast(40)怎么用不了

#include <QCoreApplication> #include <opencv2/core/core.hpp> #include <opencv2/features2d/features2d.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> using namespace cv; int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); Mat image; image = imread("1.jpg"); // 存储为关键点 std::vector<KeyPoint> keyPoints; // 定义特征检测 FastFeatureDetector fast(40); // 检测的阈值为40 “cv::FastFeatureDetector”: 不能实例化抽象类 // 特征点检测 fast.detect(image,keyPoints); drawKeypoints(image, keyPoints, image, Scalar::all(255), DrawMatchesFlags::DRAW_OVER_OUTIMG); imshow("FAST feature", image); waitKey(0); return a.exec(); } error: C2259: “cv::FastFeatureDetector”: 不能实例化抽象类 error: C2664: “cv::FastFeatureDetector::FastFeatureDetector(cv::FastFeatureDetector &&)”: 无法将参数 1 从“int”转换为“const cv::FastFeatureDetector &”

如何在arduino IDE中解析json数组

<div class="post-text" itemprop="text"> <p>I am trying to parse a JSON array on a Pi server via wifi. I want to parse the following:</p> <blockquote> <p>[{"Device":"Curtain","Value":"1"},{"Device":"Fan","Value":"1"},{"Device":"Blinds","Value":"0"},{"Device":"Relay","Value":"0"}]</p> </blockquote> <p>Those are copied from the webpage:<a href="http://pi.access.com/states.php" rel="nofollow">http://pi.access.com/states.php</a></p> <p>the following are my Arduino code.</p> <pre><code>#include &lt;ArduinoJson.h&gt; void setup() { Serial.begin(9600); while (!Serial) { // wait serial port initialization } StaticJsonBuffer&lt;200&gt; jsonBuffer; char json[] = "[{\"Device\":\"Curtain\",\"Value\":\"1\"},{\"Device\":\"Fan\",\"Value\":\"1\"}]"; JsonArray&amp; root = jsonBuffer.parseArray(json); // Test if parsing succeeds. if (!root.success()) { Serial.println("parseObject() failed"); return; } // Fetch values. const char* device[] = root["Device"]; int value[] = root["Value"]; // Print values. Serial.println(device); Serial.println(value); } </code></pre> <p>Then I got a bunch of errors...</p> <pre><code>JsonParseExample.ino: In function 'void setup()': JsonParseExample:54: error: invalid conversion from 'const char*' to 'size_t {aka unsigned int}' [-fpermissive] In file included from /Users/Wei0928/Documents/Arduino/libraries/ArduinoJson/src/../include/ArduinoJson/JsonArray.hpp:181:0, from /Users/Wei0928/Documents/Arduino/libraries/ArduinoJson/src/../include/ArduinoJson.h:9, from /Users/Wei0928/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson.h:14, from JsonParseExample.ino:8: /Users/Wei0928/Documents/Arduino/libraries/ArduinoJson/src/../include/ArduinoJson/JsonArray.ipp:16:27: error: initializing argument 1 of 'ArduinoJson::JsonArraySubscript ArduinoJson::JsonArray::operator[](size_t)' [-fpermissive] inline JsonArraySubscript JsonArray::operator[](size_t index) { ^ JsonParseExample:54: error: initializer fails to determine size of 'device' JsonParseExample:54: error: array must be initialized with a brace-enclosed initializer JsonParseExample:58: error: call of overloaded 'println(const char* [1])' is ambiguous JsonParseExample.ino:58:24: note: candidates are: In file included from /Users/Wei0928/Documents/Arduino/libraries/ArduinoJson/src/../include/ArduinoJson/Internals/../Internals/../Arduino/Print.hpp:87:0, from /Users/Wei0928/Documents/Arduino/libraries/ArduinoJson/src/../include/ArduinoJson/Internals/../Internals/DummyPrint.hpp:10, from /Users/Wei0928/Documents/Arduino/libraries/ArduinoJson/src/../include/ArduinoJson/Internals/../Internals/JsonPrintable.hpp:11, from /Users/Wei0928/Documents/Arduino/libraries/ArduinoJson/src/../include/ArduinoJson/Internals/../JsonVariant.hpp:13, from /Users/Wei0928/Documents/Arduino/libraries/ArduinoJson/src/../include/ArduinoJson/Internals/../JsonBuffer.hpp:15, from /Users/Wei0928/Documents/Arduino/libraries/ArduinoJson/src/../include/ArduinoJson/Internals/BlockJsonBuffer.hpp:10, from /Users/Wei0928/Documents/Arduino/libraries/ArduinoJson/src/../include/ArduinoJson/DynamicJsonBuffer.hpp:10, from /Users/Wei0928/Documents/Arduino/libraries/ArduinoJson/src/../include/ArduinoJson.h:8, from /Users/Wei0928/Documents/Arduino/libraries/ArduinoJson/src/ArduinoJson.h:14, from JsonParseExample.ino:8: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:73:12: note: size_t Print::println(char) &lt;near match&gt; size_t println(char); ^ /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:73:12: note: no known conversion for argument 1 from 'const char* [1]' to 'char' /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:74:12: note: size_t Print::println(unsigned char, int) &lt;near match&gt; size_t println(unsigned char, int = DEC); ^ /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:74:12: note: no known conversion for argument 1 from 'const char* [1]' to 'unsigned char' /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:75:12: note: size_t Print::println(int, int) &lt;near match&gt; size_t println(int, int = DEC); ^ /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:75:12: note: no known conversion for argument 1 from 'const char* [1]' to 'int' /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:76:12: note: size_t Print::println(unsigned int, int) &lt;near match&gt; size_t println(unsigned int, int = DEC); ^ /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:76:12: note: no known conversion for argument 1 from 'const char* [1]' to 'unsigned int' /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:77:12: note: size_t Print::println(long int, int) &lt;near match&gt; size_t println(long, int = DEC); ^ /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:77:12: note: no known conversion for argument 1 from 'const char* [1]' to 'long int' /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:78:12: note: size_t Print::println(long unsigned int, int) &lt;near match&gt; size_t println(unsigned long, int = DEC); ^ /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Print.h:78:12: note: no known conversion for argument 1 from 'const char* [1]' to 'long unsigned int' JsonParseExample:59: error: 'value' was not declared in this scope invalid conversion from 'const char*' to 'size_t {aka unsigned int}' [-fpermissive] </code></pre> <p>Top of that I still haven't figured out how to read the array individually. Any advice is appreciated.</p> </div>

函数转换时碰到问题,未破,求助各位朋友,非常感谢!!!

**编译时的错误提示:** pmd/pmdEDU.cpp: In function ‘int (* getEntryFuncByType(EDU_TYPES))(pmdEDUCB*, void*)’: pmd/pmdEDU.cpp:94:4: error: invalid conversion from ‘int (*)(pmdEDUCB, void*)’ to ‘pmdEntryPoint {aka int (*)(pmdEDUCB*, void*)}’ [-fpermissive] } ; **其中函数的声明及实现如下:** 头文件中声明: pmdEDU.hpp typedef int (*pmdEntryPoint) ( pmdEDUCB *, void * ) ; pmdEntryPoint getEntryFuncByType ( EDU_TYPES type ) ; int pmdAgentEntryPoint ( pmdEDUCB *cb, void *arg ) ; pmdEDU.cpp文件中实现代码如下: struct _eduEntryInfo { EDU_TYPES type ; int regResult ; pmdEntryPoint entryFunc ; } ; define ON_EDUTYPE_TO_ENTRY1(type,system,entry,desp) \ { type, registerEDUName(type,desp,system), entry } pmdEntryPoint getEntryFuncByType ( EDU_TYPES type ) { pmdEntryPoint rt = NULL ; static const _eduEntryInfo entry[] = { ON_EDUTYPE_TO_ENTRY1 ( EDU_TYPE_AGENT, false, pmdAgentEntryPoint, "Agent" ), ON_EDUTYPE_TO_ENTRY1 ( EDU_TYPE_TCPLISTENER, true, pmdTcpListenerEntryPoint, "TCPListener" ), ON_EDUTYPE_TO_ENTRY1 ( EDU_TYPE_MAXIMUM, false, NULL, "Unknown" ) } ; static const unsigned int number = sizeof ( entry ) / sizeof ( _eduEntryInfo ) ; unsigned int index = 0 ; for ( ; index < number; ++index ) { if ( entry[index].type == type ) { rt = entry[index].entryFunc ; goto done ; } } done : return rt ; } 编译环境:debian sid g++4.8.2 我没发现问题出现在哪儿,烦劳各位了

Linux下编程遇到的转换错误,要如何修改?

main.cc:118:43: error: invalid conversion from ‘void*’ to ‘_u32* {aka unsigned int*}’ [-fpermissive] cache->addr_list = realloc(cache->addr_list, cache->addr_list_size * sizeof(_u32)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cc: In function ‘void reset_cache_sim(cache_sim*, int, int)’: main.cc:179:42: error: invalid conversion from ‘void*’ to ‘_u8* {aka unsigned char*}’ [-fpermissive] cache->cache_buf = malloc(cache->cache_size); ~~~~~~^~~~~~~~~~~~~~~~~~~ main.cc:189:31: error: invalid conversion from ‘void*’ to ‘cache_item*’ [-fpermissive] cache->caches = malloc(sizeof(struct cache_item) * cache->cache_item_num); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cc: In function ‘void load_trace(cache_sim*, char*)’: main.cc:361:51: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] do_cache_op(cache, (void*)addr, 1); ^~~~ main.cc:364:51: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] do_cache_op(cache, (void*)addr, 0); ^~~~ main.cc: At global scope: main.cc:411:55: error: ISO C++ forbids declaration of ‘do_test’ with no type [-fpermissive] static do_test(struct cache_sim* cache, char* filename) ^ main.cc: In function ‘int main(int, char**)’: main.cc:429:94: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] st_cases[] = {"gcc.trace","gzip.trace","mcf.trace","swim.trace","twolf.trace"}; ^ main.cc:429:94: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cc:429:94: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cc:429:94: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cc:429:94: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 错误描述是这样的,求大神解答

关于Vector<>和interator中的无效转换问题.

本人在使用GEANT4模拟,以下为部分相关程序.目的是获得次级粒子的能量等信息,当gamma被kill或stop后,开始追踪次级粒子,并加以筛选获得输出文件.然而在编译的时候出现了以下报错:**error: invalid conversion from ‘const G4TrackVector* {aka const std::vector<G4Track*>*}’ to ‘G4TrackVector* {aka std::vector<G4Track*>*}’ [-fpermissive] G4TrackVector* fpTrackVector = fStep->GetSecondary(); ** ^ 求各位帮我看看,感激不尽呀,由于金币不足,待日后补齐各位热心人.**** //do the calculation of energy deposition G4TrackVector* fpTrackVector = fStep->GetSecondary(); G4TrackStatus TrackStatus = fTrack->GetTrackStatus(); if ( particle == "neutron" && TrackStatus == fStopAndKill ){ G4int i; vector <G4Track*>::const_iterator itr; G4int tv_size = fpTrackVector->size (); itr = fpTrackVector->begin (); if( tv_size ) { for ( i=0;i<tv_size;i++){ //why not "<="? G4Track* secondaryTrack = *(itr+i); G4double sec_x = secondaryTrack->GetPosition().x()/mm; G4double sec_y = secondaryTrack->GetPosition().y()/mm; G4double sec_z = secondaryTrack->GetPosition().z()/mm; G4String sec_name = secondaryTrack->GetDefinition()->GetParticleName(); G4String sec_volume = secondaryTrack->GetVolume()->GetName(); G4double sec_kineticEnergy = secondaryTrack->GetKineticEnergy()/MeV; G4double sec_totalEnergy = secondaryTrack->GetTotalEnergy()/MeV; G4String sec_process = secondaryTrack->GetProcessName(); if( sec_volume == "Scatter" && sec_name == "alpha" ){ G4int SL = sec_name.size( ); //fUserDataFile->func(); fUserDataFile->AddElectronInitial ( eventNum, SL, sec_name, sec_x, sec_y, sec_z, sec_kineticEnergy ); //fUserDataFile->func(); //G4cout << "step!" << G4endl; */ } } } }

Windows 系统编程:cannot convert from 'LPTSTR []' to 'LPCTSTR *'

小弟在学习系统编程(所用书籍Windows系统编程,第四版,WIN7,VS2010),在运行书上给的样板程序时出现了这个问题。 int _tmain (int argc, LPTSTR argv[]){ ... iFirstFile = Options (argc, argv, _T("s"), &dashS, NULL); ... } 其中: DWORD Options(int,LPCTSTR *,...) 请问各位大虾这种问题应该怎么解决?

如何在 Python 中将字符串解析为 float 或 int?

<div class="post-text" itemprop="text"> <p>In Python, how can I parse a numeric string like <code>"545.2222"</code> to its corresponding float value, <code>542.2222</code>? Or parse the string <code>"31"</code> to an integer, <code>31</code>?</p> <p>I just want to know how to parse a <em>float</em> <code>string</code> to a <code>float</code>, and (separately) an <em>int</em> <code>string</code> to an <code>int</code>.</p> </div> <p>转载于:https://stackoverflow.com/questions/379906/how-do-i-parse-a-string-to-a-float-or-int-in-python</p>

数组指针的应用??????

#include<stdio.h> int perimeter(int x,int y); int area(int x,int y); int solution(int x,int y,int(*ptr)()); int main() { int a,b; printf(" 请输入A和B的值:"); scanf("%d%d",&a,&b); printf(" Perimeter of a rectangle:"); solution(a,b,perimeter); printf(" Area of a rectangle:"); solution(a,b,area); } int perimeter(int x,int y) { return (2*(x+y)); } int area(int x,int y) { return x*y; } int solution(int x,int y,int(*ptr)()) { int result; result=(*ptr)(x,y); printf("%d\n",result); } [Error] C:\Users\H\Documents\C-Free\Temp\未命名1.cpp:11: error: invalid conversion from `int (*)(int, int)' to `int (*)()'

如果能重来,我不会选择北漂——初见北京

一个人走的路

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

我说我不会算法,阿里把我挂了。

不说了,字节跳动也反手把我挂了。

2020年大厂Java面试前复习的正确姿势(800+面试题答案解析)

前言 个人觉得面试也像是一场全新的征程,失败和胜利都是平常之事。所以,劝各位不要因为面试失败而灰心、 丧失斗志。也不要因为面试通过而沾沾自喜,等待你的将是更美好的未来,继续加油! 本篇分享的面试题内容包括:Java、MyBatis、ZooKeeper、Dubbo、Elasticsearch、Redis、MySQL、Spring、SpringBoot、SpringCloud、RabbitMQ...

抖音上很火的时钟效果

反正,我的抖音没人看,别人都有几十万个赞什么的。 发到CSDN上来,大家交流下~ 主要用到原生态的 JS+CSS3。 具体不解释了,看注释: &lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="UTF-8"&gt; &lt;title&gt;Title&lt;/tit...

记录下入职中软一个月(外包华为)

我在年前从上一家公司离职,没想到过年期间疫情爆发,我也被困在家里,在家呆着的日子让人很焦躁,于是我疯狂的投简历,看面试题,希望可以进大公司去看看。 我也有幸面试了我觉得还挺大的公司的(虽然不是bat之类的大厂,但是作为一名二本计算机专业刚毕业的大学生bat那些大厂我连投简历的勇气都没有),最后选择了中软,我知道这是一家外包公司,待遇各方面甚至不如我的上一家公司,但是对我而言这可是外包华为,能...

又出事了?网站被攻击了?高中生?

北京时间2020年3月27日9点整,如往常一样来到公司,带开电脑,正准备打开Github网站看一会源代码,再开始手头的工作。哟吼,一直打不开,一直出现如下页面: 我想很多网友也尝到了甜头,各大技术群炸开了锅,据网友反馈有攻击者正在发起大规模的中间人挟持,京东和Github等网站等网站都受到了影响。 什么是中间中间人挟持呢? 简而言之,就是攻击者在数据网络传输的过程中,截获传输过程中的数据并篡改...

培训班出来的人后来都怎么样了?(二)

接着上回说,培训班学习生涯结束了。后面每天就是无休止的背面试题,不是没有头脑的背,培训公司还是有方法的,现在回想当时背的面试题好像都用上了,也被问到了。回头找找面试题,当时都是打印下来天天看,天天背。 不理解呢也要背,面试造飞机,上班拧螺丝。班里的同学开始四处投简历面试了,很快就有面试成功的,刚开始一个,然后越来越多。不知道是什么原因,尝到胜利果实的童鞋,不满足于自己通过的公司,嫌薪水要少了,选择...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

工作八年,月薪60K,裸辞两个月,投简历投到怀疑人生!

近日,有网友在某职场社交平台吐槽,自己裸辞两个月了,但是找工作却让自己的心态都要崩溃了,全部无果,不是已查看无回音,就是已查看不符合。 “工作八年,两年一跳,裸辞两个月了,之前月薪60K,最近找工作找的心态崩了!所有招聘工具都用了,全部无果,不是已查看无回音,就是已查看不符合。进头条,滴滴之类的大厂很难吗???!!!投简历投的开始怀疑人生了!希望 可以收到大厂offer” 先来看看网...

我把华为小米年报放一起,发现华为才是真·手机公司,小米确实不靠卖手机赚钱...

郭一璞 发自 凹非寺量子位 报道 | 公众号 QbitAI国产手机界的两大玩家,华为&amp;小米,昨天在同一天前后脚发布了2019年财报。同行冤家,发财报也碰在了同一天。那我们就对比...

大牛都会用的IDEA调试技巧!!!

导读 前天面试了一个985高校的实习生,问了他平时用什么开发工具,他想也没想的说IDEA,于是我抛砖引玉的问了一下IDEA的调试用过吧,你说说怎么设置断点...

97年世界黑客编程大赛冠军作品(大小仅为16KB),惊艳世界的编程巨作

这是世界编程大赛第一名作品(97年Mekka ’97 4K Intro比赛)汇编语言所写。 整个文件只有4095个字节, 大小仅仅为16KB! 不仅实现了3D动画的效果!还有一段震撼人心的背景音乐!!! 内容无法以言语形容,实在太强大! 下面是代码,具体操作看最后! @echo off more +1 %~s0|debug e100 33 f6 bf 0 20 b5 10 f3 a5...

不要再到处使用 === 了

我们知道现在的开发人员都使用 === 来代替 ==,为什么呢?我在网上看到的大多数教程都认为,要预测 JavaScript 强制转换是如何工作这太复杂了,因此建议总是使用===。这些都...

什么是a站、b站、c站、d站、e站、f站、g站、h站、i站、j站、k站、l站、m站、n站?00后的世界我不懂!

A站 AcFun弹幕视频网,简称“A站”,成立于2007年6月,取意于Anime Comic Fun,是中国大陆第一家弹幕视频网站。A站以视频为载体,逐步发展出基于原生内容二次创作的完整生态,拥有高质量互动弹幕,是中国弹幕文化的发源地;拥有大量超粘性的用户群体,产生输出了金坷垃、鬼畜全明星、我的滑板鞋、小苹果等大量网络流行文化,也是中国二次元文化的发源地。 B站 全称“哔哩哔哩(bilibili...

十个摸鱼,哦,不对,是炫酷(可以玩一整天)的网站!!!

文章目录前言正文**1、Kaspersky Cyberthreat real-time map****2、Finding Home****3、Silk – Interactive Generative Art****4、Liquid Particles 3D****5、WINDOWS93****6、Staggering Beauty****7、Ostagram图片生成器网址****8、全历史网址*...

终于,月薪过5万了!

来看几个问题想不想月薪超过5万?想不想进入公司架构组?想不想成为项目组的负责人?想不想成为spring的高手,超越99%的对手?那么本文内容是你必须要掌握的。本文主要详解bean的生命...

毕业5年,我熬夜整理出了这50个优质的电子书网站,吐血推荐!

大家好,我是武哥,最近经常有小伙伴问我要电子书,都什么年代了,还找不到电子书吗?如果要说原因,那就是你还没遇到武哥我(手动滑稽~)!我今天把这么多年我经常看的电子书网站整理一下给大家,基本上能解决大家的需求。不管是在校生还是已经工作了,相信肯定对你有所帮助! 1.鸠摩搜书 首先给大家推荐的网站是:鸠摩搜书 地址:https://www.jiumodiary.com/ 这个网上非常棒,上面有很多优质...

MySQL性能优化(五):为什么查询速度这么慢

前期回顾: MySQL性能优化(一):MySQL架构与核心问题 MySQL性能优化(二):选择优化的数据类型 MySQL性能优化(三):深入理解索引的这点事 MySQL性能优化(四):如何高效正确的使用索引 前面章节我们介绍了如何选择优化的数据类型、如何高效的使用索引,这些对于高性能的MySQL来说是必不可少的。但这些还完全不够,还需要合理的设计查询。如果查询写的很糟糕,即使表结构再合理、索引再...

大厂的 404 页面都长啥样?最后一个笑了...

每天浏览各大网站,难免会碰到404页面啊。你注意过404页面么?猿妹搜罗来了下面这些知名网站的404页面,以供大家欣赏,看看哪个网站更有创意: 正在上传…重新上传取消 腾讯 正在上传…重新上传取消 网易 淘宝 百度 新浪微博 正在上传…重新上传取消 新浪 京东 优酷 腾讯视频 搜...

自从喜欢上了B站这12个UP主,我越来越觉得自己是个废柴了!

不怕告诉你,我自从喜欢上了这12个UP主,哔哩哔哩成为了我手机上最耗电的软件,几乎每天都会看,可是吧,看的越多,我就越觉得自己是个废柴,唉,老天不公啊,不信你看看…… 间接性踌躇满志,持续性混吃等死,都是因为你们……但是,自己的学习力在慢慢变强,这是不容忽视的,推荐给你们! 都说B站是个宝,可是有人不会挖啊,没事,今天咱挖好的送你一箩筐,首先啊,我在B站上最喜欢看这个家伙的视频了,为啥 ,咱撇...

代码注释如此沙雕,会玩还是你们程序员!

某站后端代码被“开源”,同时刷遍全网的,还有代码里的那些神注释。 我们这才知道,原来程序员个个都是段子手;这么多年来,我们也走过了他们的无数套路… 首先,产品经理,是永远永远吐槽不完的!网友的评论也非常扎心,说看这些代码就像在阅读程序员的日记,每一页都写满了对产品经理的恨。 然后,也要发出直击灵魂的质问:你是尊贵的付费大会员吗? 这不禁让人想起之前某音乐app的穷逼Vip,果然,穷逼在哪里都是...

总结了Mybatis,原来知识点也没多少嘛

看完这篇Mybatis,感觉你三天就会用了。

爬虫(101)爬点重口味的

小弟最近在学校无聊的很哪,浏览网页突然看到一张图片,都快流鼻血。。。然后小弟冥思苦想,得干一点有趣的事情python 爬虫库安装https://s.taobao.com/api?_ks...

疫情后北上广深租房价格跌了吗? | Alfred数据室

去年3月份我们发布了《北上广深租房图鉴》(点击阅读),细数了北上广深租房的各种因素对租房价格的影响。一年过去了,在面临新冠疫情的后续影响、城市尚未完全恢复正常运转、学校还没开学等情况下...

面试官给我挖坑:a[i][j] 和 a[j][i] 有什么区别?

点击上方“朱小厮的博客”,选择“设为星标”后台回复&#34;1024&#34;领取公众号专属资料本文以一个简单的程序开头——数组赋值:int LEN = 10000; int[][] ...

在拼多多上班,是一种什么样的体验?我心态崩了呀!

之前有很多读者咨询我:武哥,在拼多多上班是一种什么样的体验?由于一直很忙,没抽出时间来和大家分享。上周末特地花点时间来写了一篇文章,跟大家分享一下拼多多的日常。 1. 倒时差的作息 可能很多小伙伴都听说了,拼多多加班很严重。这怎么说呢?作息上确实和其他公司有点区别,大家知道 996,那么自然也就能理解拼多多的“11 11 6”了。 所以当很多小伙伴早上出门时,他们是这样的: 我们是这样的: 当...

相关热词 c# cad插入影像 c#设计思想 c#正则表达式 转换 c#form复制 c#写web c# 柱形图 c# wcf 服务库 c#应用程序管理器 c#数组如何赋值给数组 c#序列化应用目的博客园
立即提问