886 questions
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();...
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...
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...
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?}
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?
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...
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...
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?
int a[] = {1,2,3,4,5};Like this.
« | - 51 - | » |
© 2024 OneMinuteCode. All rights reserved.