"定义" 搜索结果,为您找到约 2654 条结果
crazyfanruicrazyfanrui Ask a question 2022-11-04 18:03

Question About c++ definition rectangle class, to have the lower left corner and upper right corner coordinat es, find the circumference and area...

About c++ definition rectangle class, to have the lower left corner and upper right corner coordinat es, find the circumference and area...
This is the result anyway, I don't know what went wrong. Please correct it. Thank you!
adminadmin Ask a question 2022-11-05 14:53

Question 关于c++定义矩形类,要有左下角和右上角坐标,求周长和面积

有一个函数 foo() 能够返回 1~5的随机数,那么请使用 foo(),设计一个程序实现 1~n的随机数。要求输出的随机数足够随机,有机会取值1~n的任意数字。前几天面试遇到的,没看懂什么意思啊
diss33diss33 Ask a question 2022-11-05 17:07

Question python takes prime numbers from 1-100 and sums them

python takes prime numbers from 1-100 and sums them
python takes prime numbers from 1-100 and sums them
Why else is tied to the second for loop, and why do we define i, j equals 2, does it matter if we don't define it?
ecdysis3238ecdysis3238 Ask a question 2022-11-07 12:08

Question When a duplicate element was added and deleted after using the treeset custom comparator in java, th e element could not be deleted...

When a duplicate element was added and deleted after using the treeset custom comparator in java, th e element could not be deleted...
After using the treeset custom deduplicated comparator in java, an element was repeatedly added and then deleted, but the element could not be deleted. public static void main(String[] args) { TreeSet ts = new TreeSet(new Comparator() { @Override public int compare(Integer o1, Integer o2) { return o1==o2?0:1; } }); ts.add(3); ts.add(3); ts.add(3); ts.add(1); ts.add(2); ts.remove(3); for(int i:ts){ System.out.println(i); } } Running ...
drlowadrlowa Ask a question 2022-11-07 15:58

Question Function mgpath is not defined. How to solve this problem?

Function mgpath is not defined. How to solve this problem?
e,你们= 4,4 < br / >打印(“一条迷宫路径:”,结束= ")< br / >如果不是mgpath(xi,咦,xe,你们):< br / > < span >打印(“不存在迷宫路径”)< / span > < br / >为啥显示mgpath没有定义< br / >打印()< br / > < div class = " aw-list-img " >
eando2012eando2012 Ask a question 2022-11-07 16:11

Question Use a custom function to find max and min in n integers

Use a custom function to find max and min in n integers
Use a custom function to find max and min in n integers and use a global variable to complete max, min
stvotvcctvstvotvcctv Ask a question 2022-11-07 16:17

Question c++ find_if()函数查找自定义类型时返回的结束迭代器在for循环中不能结束循环?

c++ find_if()函数查找自<b class="text-danger">定义</b>类型时返回的结束迭代器在for循环中不能结束循环?
c++ find_if()函数查找自<b class="text-danger">定义</b>类型时返回的结束迭代器在for循环中不能结束循环?
问题遇到的现象和发生背景 c++ find_if()函数查找自定义类型时返回的结束迭代器在for循环中不能结束循环 用代码块功能插入代码,请勿粘贴截图 // 对于基本数据类型没有问题 for (vector::iterator it = v1.begin(); it != v1.end(); it++) { it = find_if(it, v1.end(), fi nd2X); // 返回符合的迭代器(2的倍数) if (it != v1.end()) { cout ...
donglin385donglin385 Ask a question 2022-11-07 16:19

Question 无法找到promise模块的声明文件

无法找到promise模块的声明文件
无法找到promise模块的声明文件
第二张图输出的是未定义 难道是这个接口的问题么我一直觉得是这个声明文件的问题
dengyijie12306dengyijie12306 Ask a question 2022-11-07 17:07

Question 这个哪里错了呀,函数定义的问题吗

#includeint main(){int a,b;scanf( "%d%d", &a, &b) ;printf("%d\n",sum(a+b));int sum(int a,b){sum=a+b;return sum;}return 0;}
cuibojasoncuibojason Ask a question 2022-11-07 17:10

Question c#. Define a circle class...

Define class Circle, including radius r, attribute R to determine the value of r is reasonable(r> 0). Including the method of calculating the Area of the Circle Area(). Derive Cylinder class from circle class, and add the high h attribute H of the cylinder to judge the value rationality of h(h > 0). Create a Cylinder object and output the ground radius, height, and volume of the object. ...
huaxin445944huaxin445944 Ask a question 2022-11-07 17:37

Question TypeError not caught(in promise) : Cannot read undefined properties(read "get, how to resolve this?

TypeError not caught(in promise) : Cannot read undefined properties(read "get, how to resolve this?
TypeError not caught(in promise) : Cannot read undefined properties(read "get, how to resolve this?
Not captured(in promise) TypeError: Cannot read undefined properties(read "get")
dgangddgangd Ask a question 2022-11-07 17:54

Question I've defined a subfunction why can't I compile and find an identifier

I've defined a subfunction why can't I compile and find an identifier
I use GCD LCM in the main function first and then define the subfunctions later. Why is this compiling problem
bizhixiangbizhixiang Ask a question 2022-11-07 22:04

Question Class redefined with #pragma once

Class redefined with #pragma once
constructor error showing class redefined As shown here, write A class in a header file(Point.h) and write the constructor . class CPoint { public: CPoint(void) { Lx = 16. 012; Ly = 79.963; Rx = -73.93; Ry = 78.705; X = 5083.205; Y = 5852.099; Z = 527.925; flag = true; }; ~CPoint(void) {}; Contains i n the B header file #pragma once #include "Point.h" gives an error indicating that the class has been redefined Even with #pragma once, doesn't solve the problem, wonder what t...
chengcyxchengcyx Ask a question 2022-11-07 23:03

Question c++定义数组无法使用define定义的变量?

c语言中定义一个数组时发生的错误 #define ORISIZE 256;#define test1 10; #include#includeint main() { int data[test1] = { 1,2,3,4,5,6,7,8,9,10 };//这里test1会报错为什么?} 报错是这两个严重性 代码 说明 项目 文件 行 禁止显示状态错 误(活动) E0029 应输入表达式 StackAndQueue D:\c 文件\沒什麼用的\StackAndQueue\sqStack.cpp 29严重性 代码 说明 项目 文件 行 禁止显示状态错误(活动) E0017 应输入“]” StackAndQueue D:\c 文件\沒什麼用的\StackAnd Queue\sqStack.cpp 29 vs编辑器推荐用 constexpr auto test = 10; 这种定义方法,但是我看到书上直接就是上面那样用的。想知道为什么会出错,还有没有其他解决办法? 展开全部 ...
inu1120inu1120 Ask a question 2022-11-08 10:04

Question Why does EM_MOUSE always display undefined identifiers when I program?

EM_MOUSE always displays undefined identifiers during programming, compiler error occurs

热门搜索