c++ tag

886 questions


4 answers
155 views
0
g++glfw cannot link.

Regarding the presentation console screen, when I link to the library, I get a large amount of undecided errors.Why is this? As you can see in the answer, I looked up how to use the library link, but ...

2 years ago

1 answers
103 views
0
D3D11 debug layer does not get warning

The following warning statement appears in the output window:D3D11 WARNING:ID3D11DeviceContext::OMSetRenderTargets:Resource being set to OM RenderTarget slot0 is still bound on input![STATE_SETTING WA...

2 years ago

1 answers
59 views
0
fatal error: 'iostream' file not found when using vim-clang

As the title suggests, when using vim-clang, it displays fatal error: 'iostream' file not found, which is not complementary.It's my environment.ubuntu 14.04.5 LTSVIM-Vi IMproved 8.0 I also use neocomp...

2 years ago

1 answers
32 views
0
How to Capture Variables in a Lambda Formula

I'd like to copy variables into the lambda expression, but is there any good way to put variables into the lambda expression in the case of classes that create or copy instances with functions?Ta(T::c...

c++
2 years ago

1 answers
110 views
0
APPLICATION OF HOMOGRAPHY CONVERSION TO IMAGE IN OpenCV

I would like to apply the homography matrix to the input image by cv::warperspectiveTransform().A memory access violation occurs. I tried many things referring to OpenCV warpperspective, but it didn't...

2 years ago

1 answers
29 views
0
JOI 2007 A Problem, Half of the Test Cases Do Not Go Through Even though the Algorithm Looks Correct

I used the C++ queue to find the maximum value of the partial sum of the given sequence, but it does not AC.The test case at the original site shows the same output, but half of the atcoder shows WA.J...

c++
2 years ago

2 answers
70 views
0
Glfw3.h is no longer recognized after gcc version 5.5

The raw string literal on the mac got an error, so I thought it was not compatible with C++11. When I installed gcc5 using MacPorts, the glfw3 that I had previously installed on HomeBrew was no longer...

2 years ago

2 answers
41 views
0
Why is this code inefficient?

F-I challenged the snake JOI-kun, but it became TLE.But I don't understand why my code is inefficient.Could you please let me know the problem with the code?Below is my code.int N, M, X, T[10000];stru...

2 years ago

4 answers
52 views
0
C/C++ pointers for memory savings/acceleration

This is a rudimentary question.I learned that C/C++ saves memory and speeds by securing and delivering non-simple models (such as int and double) with a pointer.Should all self-made classes and struct...

2 years ago

2 answers
99 views
0
Trouble with double variable ddx_text on VC2015.

I am creating a win32 dialog-based app in the Visual Studio 2015 Community Edition MFC, and I am having trouble with the mysterious behavior of ddx_text in the release version.It looks normal in the D...

2 years ago
« - 30 - »

© 2024 OneMinuteCode. All rights reserved.