c++ tag

886 questions


1 answers
126 views
0
The GCC compiler has an error even though the path is passing.

Here's the program.#include<stdio.h> int main(void){ printf(Hello world!); return 0;}  The error was long, so I put it here.https://pastebin.com/hbZcTR4tIt's not that I don't have a header file...

1 years ago

1 answers
56 views
0
Understanding Calling a Virtual Function During c++ Inheritance

I have a question about the virtual function of c++.Prepare a very simple base and inherited Derived as follows:#include<iostream>US>structure Base {virtual void f(){ std::cout<<Base<&l...

1 years ago

1 answers
32 views
0
REFERENCE DELIVERY OF STRUCTURE USING VECTOR

What should I do if I want to change the value of a vector structure in another class?Below is the current state of the code.Structure classst{ structure hoge { int score1; int score2; intsum; }}cl...

c++
1 years ago

2 answers
35 views
0
Understanding c++ Namespace Specifications

When executing the code below, you can use the function that should have been tied up in namespace as it is.Is it a name space specification?Depending on whether or not you are using the Vector2 struc...

c++
1 years ago

1 answers
37 views
0
Exception Handling Using Classes

If I write a function like this, how should I try and catch it with the main function?Thank you.The language is c++.I supplemented my class.Sorry for the insufficient explanation.  template <class ...

c++
1 years ago

1 answers
95 views
0
CREATION OF TRIANGULAR POLYGON MESH FROM POLYHYDROME VERTENS

I would like to draw a convex polyhedron with 3D graphics.A polyhedron is defined by a plane (no boundaries) surrounding it, so you can get all the vertices if you want, but I don't know how to create...

1 years ago

1 answers
85 views
0
Reasons why a for statement using a self-made bidirectional list is not spinning

Nice to meet you.This is my first time asking a question.I am currently working on making my own bi-directional lists using pointers in C++ without using STL.In the midst of this, I have written to th...

1 years ago

3 answers
81 views
0
C# Receives String from C++ DLL

I look forward to hearing from you.Write a function that returns a string (mixed alphanumeric) with char in C++ and I'm thinking of using that function from C# to receive a string.I looked it up and f...

1 years ago

1 answers
115 views
0
Make the window look inactive but still active

We are developing desktop apps on Linux and Qt.When a window is active, the title bar is colored.When deactivated, the title bar turns gray.activeinactiveThis behavior is common as an app, but even wh...

1 years ago

4 answers
44 views
0
Does it conform to the standard that the compiler that supports Shift_JIS regards circular symbols as backslashes?

Shift_JIS does not have a backslash symbol (so-called half-width) and A circular symbol exists at the assigned code position of the backslash in ASCII.The C/C++ compiler corresponding to the Shift_JIS...

c++ c
1 years ago
« - 12 - »

© 2024 OneMinuteCode. All rights reserved.