c++ tag

886 questions


1 answers
81 views
0
The color cannot be printed as desired by OpenGL.

Hello, I am a student studying OpenGL alone. It's nothing but OpenGL right nowI'm creating an object using an array of vertices, but I can't get those two sides colored like in the picture.GLfloat ver...

2 years ago

2 answers
82 views
0
To view the assembled results in gcc

I received a task to analyze the results of the compiled code, but I'm not used to gcc yet, so I don't know what options to give. How do I view the assembly code of C/C++ in gcc?

2 years ago

1 answers
53 views
0
C++ template lambda function cannot be passed to the factor.

//// // main.cpp// // test//// // Created by bodguy on 2016. 8. 22..// Copyright © 2016 bodguy. All rights reserved.//#include <iostream>#include <functional>#include <type_traits>te...

2 years ago

2 answers
67 views
0
Arduino, C++ error

I don't know if it's because I didn't learn C++, so I get this error.Help me (Crying)

2 years ago

1 answers
24 views
0
I want to know how to make a variable array with C++ dynamically.

// The number of ifstream userInfoFile[number] increases or decreases.// Is there a way to dynamically make that part into a variable arrangement...? // The number in the 'number' part is equal to use...

c++
2 years ago

2 answers
137 views
0
How to redirect stdin to a file while passing a factor in gdb

I usually./a.out arg1 arg2 <fileI'd like to use gdb to debug the program together.How do I give commands or options?

2 years ago

1 answers
131 views
0
Why is there still no super in C++?

Personally, like the next chord, I am writing super with typedef <Base> super; and there is no problem.You can also call the constructor of the parent class with super()You can write namespace l...

2 years ago

1 answers
128 views
0
I need a code to find out if I'm using the C++ compiler during runtime

Not using #ifdefCan you make a function that returns 0 when using C compiler and 1 when using C++ compiler?For example, int isCPP(){ return sizeof(char) == sizeof 'c';}//orint isCPP(){ typedef int T; ...


1 answers
32 views
0
I wonder what happens to the next code execution.

package jpastart.reserve.application;import java.util.Optional;import javax.persistence.EntityManager;import jpastart.jpa.EMF;import jpastart.reserve.model.User;public class UserService { public UserS...

2 years ago

1 answers
61 views
0
When is reinterpret_cast used?

I'm confused when to write reinterpret_cast and static_cast.As far as I know, if you decide on type when compile, you use static castreinterpret_cast is in the case ofI know it's a feature that you sh...

2 years ago
« - 59 - »

© 2024 OneMinuteCode. All rights reserved.