c++ tag

886 questions


3 answers
35 views
0
The mac cannot compile c/c++.

I wrote the following C/C++ code on my mac, but I cannot compile it because of the error below.intarray.cpp#include<stddef.h># include <stdlib.h># include <stdio.h>US>struct IntArray...

c++
2 years ago

1 answers
34 views
0
How to change the upper left coordinate reference and center coordinate reference of the drawn figure

I am writing programming in the dx library to the specifications shown in the image, but I am not sure that pressing this space key changes the coordinate criteria.My goal is to press the space once a...

c++
2 years ago

1 answers
132 views
0
Compilation error in qt

Attempted to 'Hello World' with Qt for Beginners-Qt Wiki using c++ in vscode on docker.The main.cpp is as follows:#include<QApplication># include <QPushButton>int main (int argv, char**arg...

2 years ago

1 answers
72 views
0
I want picojson to read hierarchical json files

I tried to load the json file with picojson in VisualStudio 2012 C++, but I couldn't load the json file as intended.(The data I want most is the array in the polygonList array in the json file (pointI...


3 answers
114 views
0
Is it possible to implement width-first search using recursive functions without using queues?

QuestionIs it possible to implement width-first search for graph structures using recursive functions?For depth-first exploration, you can implement it using a stack or recursive function.On the other...

2 years ago

3 answers
39 views
0
Why is this code TLE?

The code below is the answer to the competition programming problem baton relay game.I put the sample using the list.In the same test case, the sample code was 0.03s memory time, while my code was ove...

2 years ago

2 answers
30 views
0
How to use the c++ map

When solving AtCoder problem, I have a question about the following solution using map.Question detailsI don't know what pair map<int,int> is connected to. I think mp.first is 2,3,5,7 in input e...

c++
2 years ago

1 answers
132 views
0
Open External Symbols Occurred in relation to SOIL.lib

I'm in big trouble https://github.com/gameprogcpp/codeEven though I tried to copy chapter07 in to opengl's software called SOIL, I made the necessary entries for additional dependent files and additio...


1 answers
43 views
0
AtCoder Beginner Contest 180 Takahashi Unevolved D Problem

D-Takahashi Unevolved Description Linkhttps://atcoder.jp/contests/abc180/editorial/219With the answer code listed above, ans+(y-1-x)//bThere is a part of , but I didn't understand the reason for doing...

2 years ago

1 answers
37 views
0
Program stops after exception handling

The program stops after making an exception.Specifically, the exception is to assume that try{}catch{} attempts to take the leading value from an empty concatenated list (head of concatenated list poi...

c++
2 years ago
« - 26 - »

© 2024 OneMinuteCode. All rights reserved.