or tag

453 questions


1 answers
139 views
0
I want to run 2 or 3 For statements at the same time, what should I do?

for n in [2,0,-2]: f = int(440*pow(2.,n/12.)+0.5) freq_of_tones = np.append(freq_of_tones, alone_tone(freq=f,dur=0.3)) for n in [0,2,5]: j = int(440*pow(2.,n/12.)+0.5) if n==0: j=0 freq_of_tones =...

2 years ago

1 answers
56 views
0
A message appears that there is no default constructor.

Point class, which stores coordinates of points, andRectangle class that inherits Shape.#include <iostream>#include <vector>#include <string>using std::cout;using std::endl;class Poi...

2 years ago

1 answers
87 views
0
Raspberry and Arduino communication question!

I am communicating with Raspberry Pi by attaching a fingerprint recognition sensor to Arduino.While coding, I didn't receive the value of the fingerprint recognition sensor from Raspberry Pi, so I'm a...


1 answers
121 views
0
Shallow copy process of C++ copy constructor?

//#include stdafx.h#include <iostream>using namespace std;class MyClass{public: MyClass() { pnumber = new int(5); } ~MyClass() { delete pnumber; } int number = 0; int *pnumber = nullptr;};int ...

2 years ago

1 answers
73 views
0
Can I use "delete this"?

Can I write delete this; when I delete an instance of the class I created with new at the end?Write it like this. void doStuff(){ // This object is a working module // When you want to switch to anoth...


1 answers
87 views
0
[Java] I ran the example in the book while I was studying, and I got an error. java.lang.NoSuchMethodError

Below is the code that was moved as it was in the book.----------------------------------------------------------------------------------------------------------class FruitSeller { int numOfApple; int...


1 answers
64 views
0
How do I print out the for statement horizontal?

def divider(file,n): for i in range(0,len(file),n): yield file[i:i+n]for i in range(3):if i==0: name=open('first.txt','r')elif i==1: name=open('second.txt','r')elif i==2: name=open('last.txt','r')inf...

2 years ago

1 answers
81 views
0
To call a parent class constructor

How does C++ call the constructor of a parent class (even a parent's parent) in a child class?In Java, we could have called the parent class constructor on the first lineWhat should I do with C++


2 answers
142 views
0
How do I make APK files in Eclipse?

Eclipse is developing a project, and it's running an app with an amulet But II want to install the app on my device, is there a separate tool like that? What should I do?


1 answers
107 views
0
How to change the screen mode (vertical view, horizontal view) in the Android emulator

How do I change the direction of my Android screen to landscape or portrait view?

« - 31 - »

© 2024 OneMinuteCode. All rights reserved.