874 questions
using namespace std;class Student_info{private:char s_name[10];int s_age = 0;char s_university[100];char s_major[100];public:Student_info();Student_info(char* name, int age, char* univ, char* major);b...
classBaseClass{ // member variable // member function};class FirstClass:public BaseClass {};classSecondClass:publicBaseClass{};classThirdClass:publicBaseClass{};void func(){ autoptr=std::make_shared&l...
https://atcoder.jp/contests/abc083/tasks/abc083_bThe output result will be 0 in the code below, but I do not know which part to correct, so I would appreciate it if you could let me know.entering20 2 ...
https://atcoder.jp/contests/abc058/tasks/abc058_bIn the code section below, environment dependent characters? will be displayed.Why do environment-dependent characters appear?I would appreciate it if ...
using namespace std;class My_string {private:char* str;public:My_string(char *a) { str = a; };~My_string() { };int my_strlen() {int b = 0;while (1) {if (str[b] == NULL){break; } b++; } return b;};vo...
I would like to get the number of elements in the array of non-static members of the class as a constant expression within the non-static member function, but using the std::size function results in a...
https://atcoder.jp/contests/abc068/tasks/abc068_bIn the excerpt code below, I would like to display the index in max, but the data stored in the array will be displayed instead of the index.How should...
Currently, I am thinking of using the FreeRTOS library to make it multi-threaded with SPRESENSE's Arduino compatible.However, when I did the verification, the following error occurred and I cannot use...
The size of the array is determined at compile time, so to declare an array of dynamic sizes int size;scanf(%d, &size);int* arr = (int*)malloc(sizeof(int) * size); I was taught to do this, but eve...
We are currently running ALDS1_8_A.It's a two-minute search tree.The answer codes are as follows:In the insert function, x is the current comparison node, y is the parent node, and z is inserted.I thi...
- 1 - | » |
© 2023 OneMinuteCode. All rights reserved.