c++ tag

886 questions


1 answers
82 views
0
c++) Problems that are automatically deleted and not returned when returning an object in the operator function

I'm writing a linked list. I wrote +=, = operator and checked that it works properly.After that, write the + operator. unvlist unvlist::operator+(const unvlist &ul){ unvlist *list = new unvlist();...

2 years ago

1 answers
25 views
0
C++ for statement question. I'm a beginner.

I'm a student who reads books and teaches himself.With a book using namespace std;int main(){ int sum = 0;for (int i = 1;i <= 10;++i){ if (5 == i) continue; sum += i;} cout << The current va...

c++
2 years ago

1 answers
107 views
0
What are some GUI development tools that include Fortran code?

Hi, how are you?I am a student who is currently working on numerical analysis.Generally, in the field of numerical analysis, the calculation speed is It is known to be the fastest, so we are developin...

2 years ago

1 answers
127 views
0
Type specifier for double in printf

How should I write the format specifier for double in printf?Is it correct to use %f or %lf?#include <stdio.h>int main(){ double d =1.4; printf(%lf, d); //is this wrong?}

2 years ago

1 answers
116 views
0
Function to determine whether std::string ends with a specific character

In Python, string.endwith could be inspected.Does C++ also have a function that determines whether std::string ends with a specific character or not?

2 years ago

1 answers
49 views
0
Where is the logical operator xor?

Where is the logical operator xor?// Return 1 when either A or B is 5return (A==5) ^^ (B==5);I want to write it like this, but there is no ^^ operator, but there is only a bit operator ^.There are &am...


1 answers
25 views
0
What is the size of int and long type?

I'd like to know the type and size of C++. I know it depends on the compiler or architecture (16, 32, 64 bit)Is there a standard in C++?When I turned to Visual Studio 2008 on a 32-bit architecture, it...

c++
2 years ago

1 answers
141 views
0
To view C/C++ code after preprocessing in Visual Studio?

I have a C++ code with a lot of preprocessor instructions.I want to see how this was handled, where can I see it in the visual studio?


1 answers
84 views
0

2 answers
124 views
0
To determine if two squares overlap

We are making a program that determines whether squares overlap each other by receiving rectangular information (x-pos, y-pos, height .All inputs are int type, and only rectangles will be entered. I t...

« - 51 - »

© 2024 OneMinuteCode. All rights reserved.