886 questions
T *p; int p_size = 5; p = new T[p_size]; if(cnt>p_size-1) multi(p, p_size); void multi(T *x, int p_size) { T *temp; temp = new T[p_size * 2]; for(int i = 0; i< p_size; i++) { temp[i] = x...
They told me to look for SIP for video communication.Once you look at the server level, there is also a SIP servlet in the Java basic API. I wonder what other ways there are.How to implement with a C+...
#include <iostream> using namespace std; class Point { private: float X; float Y; static int count; public: Point() {}; Point(float a) : X(a), Y(a) { ++count; } Point(const Point& a);...
Receive a two-dimensional array as a function void myFunction(double** myArray){ myArray[x][y] = 5; etc...}There's a function like thisdouble anArray[10][10];myFunction(anArray)I'm getting an error ...
In many projects, Look at the embedded statements, such as #include <abcd/efg.h>.I think this means get me the abcd or efg header file ... which means I don't know the role of the / in the enclo...
Source to clear if a simple link list has duplicate data.IsEmpty() is a boolean function that asks if the list is zeroLength() is a function that checks the length of the list.The Delete (int Position...
Is there a way to call a member function of a parent class in a child class?How can I implement call_print_in_Base below?class Base{public: void print() { cout << i'm base! << endl; }};cla...
#include <iostream>#include <string>using std::cout;using std::cin;using std::endl;decltype(auto) getFunc(){ return [](int n1, int n2) { return n1 + n2; };}decltype(auto) getFuncPtr(){ aut...
I'm making a simple game, and someone said I need headers He made a comprehensive header file including etc. Just pick up the header files you need and include themWhat are the advantages and disadvan...
::Configuration * tmpCo = m_configurationDB;//pointer to current dbI saw this chordI don't know what the hell :: is doing.If you clear :::declaration of tmpCo as a pointer to an object of the class Co...
« | - 63 - | » |
© 2024 OneMinuteCode. All rights reserved.