31 questions
Hello, everyone I have a question because there was a slight error in writing the c++ and stl codes.The code with the error first is as follows. An error occurs in the annotated area is processed.temp...
How do I declare the same type of it in the for statement in the code below?It doesn't come out properly even if I use typeid My prediction is std::deque::iterator, is that right?#include <iostream...
Creating the biggest square find problem board[i][j] = min({board[i-1][j], board[i][j-1] , board[i-1][j-1]})+1;I don't understand the codeOriginally, I know that the min function brings the minimum va...
Create a class and there is a member function in it.This member function must return 'array'.By example code class class_df {public : class_df(); void initialize(); float class_df::calculate(int, floa...
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; ...
It's the same as the question.Can the code compiled by C++03 and C++11 produce different results?Not if it doesn't work on one side. Is there a case where both are executed, but the results are differ...
I would like to know the difference between std::unique_ptr and std::auto_ptr that occurred from C++11. I think the two of you use the same method, but what's the difference exactly?
In c++, how do you output a variable type?I checked it using type() in Python, but I am asking because I think there will be such a method in C++. What is the function that functions typeof(a) in the ...
I want to change my C++03 compiler to C++11 compiler in Ubuntu 12.04I looked it up and it said to give the option -std=c++0x or -std=gnu++0xThere was an error on my computer.I don't know exactly how t...
#include stdafx.h#include <iostream>using namespace std;class foam{public: int temp_c ; foam() { temp_a = 10; temp_b = 20; } int temp_a ; int temp_b ; void printdata() { cout << temp_...
« | - 3 - | » |
© 2024 OneMinuteCode. All rights reserved.