All Questions

19771 questions


2 answers
306 views
0
I want to use Rspec expect method around

I am writing a test code using Rspec, but I want to define it somewhere and define it for each it like a method.I'm in trouble because I can't find the same article as I thought.I wonder how dry they ...

1 years ago

1 answers
276 views
0
For each element of a combination, please tell us a program that takes any two numbers that are included and divides one by the other to determine the total number of combinations that do not become integers.

For example, we would like to find the total number of combinations selected from 1-4 to 3, in which the result of dividing any two numbers into each other is not an integer.If you choose [2, 3, 4], y...

1 years ago

1 answers
446 views
0
Processing of for statements in a program that converts a one-dimensional array into a two-dimensional array

I found an example of a program online that stores array_1 one-dimensional arrays as two-dimensional arrays in array_2.Source: Convert a one-dimensional array to a two-dimensional arrayRegarding the f...


1 answers
465 views
0
I want to generate a list of random numbers with the shortest possible code.

I'd like to use the list initialized with random numbers in Unity c#, but the current method will result in a long code as follows.For me, who has become Python, it's very troublesome to write like th...

1 years ago

1 answers
414 views
0
I want to import files under the directory in bulk in mysql.

I can't think of a way to import all the files under the db directory into mysql at once, so please let me know.For my part, I was wondering if I could get the file name list with ls-1db and do well, ...

1 years ago

1 answers
362 views
0
I want to output the average, maximum, and minimum values of the n number entered in Python.

I'd like to write a code for the average, maximum, and minimum values of the numbers I got from the input, but it doesn't work.How should I correct it?At this stage, we only write the code for the max...

1 years ago

1 answers
389 views
0
I want to create a matrix class object that meets certain conditions.

I would like to create a matrix class object in C++ that meets the following conditions:The number of columns for the object is SObjects have 0 or 1 as componentsThe sum of elements in each row of obj...

1 years ago

1 answers
219 views
0
I want to get an average of n in Python.

I'm working on Python code, and I'm writing code that finds the highest, lowest, and average value of my name, score, and score from the data I get.I can print the name, score, highest and lowest valu...

1 years ago

1 answers
420 views
0
I want to create a matrix class object that meets certain conditions.

I would like to create a matrix class object in C++ that meets the following conditions:The number of columns for the object is SObjects have 0 or 1 as componentsThe sum of elements in each row of obj...

1 years ago

1 answers
339 views
0
I want to know how to omit directory references in g++ static libraries.

I think I have to refer to the directory every time I re-link the static library in the Makefile below.If I have more than one static library, is there a way to specify a directory and then omit it?On...

c++
1 years ago
« - 49 - »

© 2024 OneMinuteCode. All rights reserved.