c++ tag

886 questions


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
338 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

1 answers
391 views
0
I want to express the type std::chrono::steady_clock::time_point in milliseconds.

std::chrono::steady_clock::time_point now = std::chrono::steady_clock::now();I'd like to print the now represented by in milliseconds. How should I describe it? std::cout<<std::chrono::duration_...

c++
1 years ago

1 answers
215 views
0
Understanding the Output Method of Variables Using Smart Pointers

I want to print num1, num2 using std::cout.I have the following codes (1) and (2), but I don't know how to write a for statement in this case.structure Data{std::shared_ptr<std::array<SomeData, ...

c++
1 years ago

1 answers
386 views
0
How to write Cmake on Android Studio

I would like to introduce C source code using Cmake on Android Studio, but when I run, I get the following error.Java/Kotlin as a library would like to call main.cpp.I'm sorry for the rudimentary ques...

1 years ago

1 answers
472 views
0
How to write Cmake on Android Studio

I would like to introduce C source code using Cmake on Android Studio, but when I run, I get the following error.Java/Kotlin as a library would like to call main.cpp.I'm sorry for the rudimentary ques...

1 years ago

1 answers
226 views
0
I don't know the specification of the return value of the dgeqr function for lapack.

I am using lapack from openblas in c++.I have examined the dgeqr function as a routine for QR decomposition, but I do not understand the specification of the return value.The purpose is to obtain a di...

c++
1 years ago

2 answers
364 views
0
I would like to know the calculation amount when comparing C++ set/multiset with equivalent operators.

A set or multiset is a data structure that manages a prime set, but I wondered what would happen if I declared it as set A; and set B; and compared it as A==B.In vector A; and vector B; when A==B, I t...

c++
1 years ago

2 answers
304 views
0
Is there a way to set the memory limit to the value specified in C++?

The memory limit for competitive programming is 1024M, and I would like to prevent further memory usage. Please let me know if there is a compiler option that can do this.

c++
1 years ago

1 answers
417 views
0
The contents of the compilation error and how to resolve it.

The compilation is not working.I used a different computer, but when I set the same settings, the compilation stopped working.I read the error, but I didn't understand it well, so I asked a question.E...

1 years ago
« - 5 - »

© 2024 OneMinuteCode. All rights reserved.