c++ tag

886 questions


1 answers
85 views
0
C++에서 printf랑 cout은 무슨 차이가 있나요?

What is the difference between printf and cout in C++?Well, printf has to use a separate format designator, so it's annoying...What's the difference other than this?

2 years ago

1 answers
21 views
0
I have a question about c++ Please, monsters

#include <iostream>#include <string>using namespace std;class StringNode {private: string elem; StringNode* next;friend class StringLinkedList;};class StringLikedList {public: StringLikedL...

c++
2 years ago

1 answers
111 views
0
How do I get the current date and time in C++?

I want to know the current time and date regardless of the platform.Help me

2 years ago

1 answers
89 views
0
Is the size of the pointer always 4?

On my computer,sizeof(char*) = 4sizeof(int*) = 4sizeof(long long*) = 4Then does the pointer size have to be 4?

2 years ago

1 answers
78 views
0
Why does a C++ JNI_CreateJavaVM() call cause an exception?

I am using Visual Studio 2015 and I am using JNI API to use jar library in C++ code.#include<jni.h>...int main() { JavaVM *jvm; JNIEnv *env; JavaVMInitArgs vm_args; JavaVMOption *options = new J...

2 years ago

1 answers
27 views
0
Question about parent-child class OUTPUT in C++. I would really appreciate it if you could explain how output flows.

It is the Answer. A()B(int)C(int) ~C() ~B() ~A()But I don't know why this answer came out.class A {public: A() { cout << “A()\n”; } ~A() { cout << “~A()\n”; }}class B : public A { public: ...

c++
2 years ago

1 answers
97 views
0
How to initialize private static members

How do I initialize private static member?There is an error in the way I did itld: 1 duplicate symbol for architecture x86_64clang: error: linker command failed with exit code 1 (use -v to see invocat...


1 answers
107 views
0
Fastest way to write binary files

You need to write about 80GB of data on an SSD.My code is about 20MB/s when I turned it on Windows 7 and Visual 2010As far as I know, file transfer between SSDs is possible from 150 to 200 MB, so I th...

2 years ago

1 answers
78 views
0
Difference between foo(void) and foo() in C/C++

How are these two different?If the two are the same, why is there a void factor?

2 years ago

1 answers
51 views
0
How do I enter binary numbers?

const x = 00010000;Like the octal and hexadecimal numbers start with 0x, Is there a function to specify binary numbers?

2 years ago
« - 54 - »

© 2024 OneMinuteCode. All rights reserved.