c++ tag

886 questions


1 answers
99 views
0
program does not work on gdb

Running to debug with gdb (gdb)breakmainBreakpoint 1 at 0x100000f3f: file hello world.c, line 4.(gdb)runStarting program: /Users/RS/Desktop/prog/a.out New Thread 0x1903 of process 28784New Thread 0x1c...

2 years ago

1 answers
31 views
0
MessagePack - RPC for C++ make error

CentOS 6.6gcc 4.9.2 The mpio and msgpack-c were successfully installed, but the MessagePack-RPC for C++ make error.The error can be found in exception.cc: In the function 'void msgpack::rpc::throw_exc...

c++
2 years ago

1 answers
136 views
0
I want to extend CFileDialog on MFC

Thank you for your help.on MFCCFileDialoghttps://msdn.microsoft.com/ja-jp/library/dk77e5e7.aspxIn , you can create dialogs to open common Windows files.When using the screen on Windows tabs, I would l...

2 years ago

1 answers
29 views
0
Constructor Initialization List Coding Style

If there are many member variables, you may want to write a new line and a vertical line when you write an initialization list.In that case, I was wondering how to write the initialization list, so I ...

c++
2 years ago

2 answers
110 views
0
Questions about how to manage your own classes [closed]

Do you want to improve this question?Update your question, Edit this post to be answered with facts and quotes.Closed 4 years ago.4 years agoC++, Python, etc. are classified to make it easy for you to...


3 answers
39 views
0
Should I narrow down the scope of the variable as much as possible even if I put it in for?

This is a rudimentary question. Suppose you have the following code. for (inti=0;i<100;++i){ inta=i; std::cout<<a<<std::endl;}Here, a is only used in for, but I don't think it's efficie...

2 years ago

1 answers
100 views
0
I want to make sure that I don't break the line by complementing the parentheses of vscode.

I am currently using C++ in vscode.The current state is as followsOS:ubuntu 18.04 LTSvscode: 1.44.2C++: g++ 7.5.0Yes.in the extension of vscodeC/C++, C++ IntellisenseWe are both installing the latest ...

2 years ago

1 answers
30 views
0
Displaying the Consolidated Lists

I'm studying the consolidated list, but it doesn't work well.If anyone understands, please let me know what's wrong.The purpose of Activity::append is to create the first node in the concatenated list...

c++
2 years ago

1 answers
55 views
0
I want to surround the outline with circles and squares.

opencv C++ I can make an outline, but I don't know how to surround it with circles or squares.#include stdafx.h # include <vector> # include <strstream> void run() { cv::Match; // Main l...

2 years ago

1 answers
69 views
0
I want to output the minimum value from the distance information obtained from the depth sensor.

Is there any good way?cout<<min(depth[i])<endl;I tried it in , but it didn't work.#include stdafx.h # include <vector># include <algorithm>using namespace std;NUI_LOCKED_RECT dep...

2 years ago
« - 21 - »

© 2024 OneMinuteCode. All rights reserved.