or tag

453 questions


1 answers
92 views
0
No suitable default constructor available

No suitable default constructor available Error appears This is one of the header files of the fruit-buying programThere's only one constructor error stuck here.class FruitSeller{private: const int AP...

2 years ago

1 answers
120 views
0
Add constructor to c++ inheritance class code error

This is the process of adding a constructor to an existing inheritance class code.Continue No instance of constructor MyFriendDetailInfo::MyFriendDetailInfo matching argument listMyFriendDetailInfo:::...


1 answers
103 views
0
I change the Python while statement to for statement, but I don't get the same execution value

###Global variable declaration part##i,k=0,0##Main code part ##i=0while i<9: if i<5: k=0 while k<4-i: print(' ', end='') k+=1 k=0 while k<i*2+1: print('\u2665', end='')###Global var...

2 years ago

1 answers
75 views
0
It's a simple code, please help me.

for i in range(2, 21): if i == 8: print() ####Source code #### print(i, end= ' ')Output value:2 3 4 5 6 7What code should be included in #### source code#### for the output to come out like this?i[0...

2 years ago

1 answers
49 views
0
Why is it different from putting a return value of a function directly in a c++ for statement conditional expression?

#include <iostream>using namespace std;#define MAXN (100000)int N;int sol[MAXN + 10];int wp, rp = 0;int que[MAXN + 10];void push(int d) { if (wp < MAXN) { que[wp] = d; ++wp; }}int front() {...

2 years ago

1 answers
82 views
0
I can't make a repeat Receive one row each in a data frame, perform an operation, and assign one to a new list

I'm going to take one line from the data frame, calculate it, and assign it to the new list one by one.If you look at it, only the number of rows 0 and 12 changes, but I don't know how to make it into...

2 years ago

1 answers
67 views
0
I want to collect Python crawling results into a data frame and save them as an Excel file with to_csv

while True: print(Getting page {}....format(page)) params[page] = page data = requests.post(url, json=params).json() # # uncomment to see all data: # # print(json.dumps(data, indent=4)) if not d...

2 years ago

1 answers
133 views
0
I am asking you a question because a SyntaxError occurred while coding related to KNN...

I am asking you a question because a SyntaxError occurred while coding related to KNN...How can I solve this problem?def compute_distance(self, X_test, dist_metric='dot'): if dist_metric=='dot': sim...

2 years ago

1 answers
78 views
0
Python coding question. I don't know what to do EOFError

Another error appears even though I modified the indentation just before.How do I solve this?

2 years ago

2 answers
87 views
0
The coding of the exchange rate calculator using for door and tuple is blocked, so please give me a hint!

mymoney = input (ex. $100:)mymoney_sep = mymoney.split()mymoney_flo = float(mymoney_sep[0])toexch = input (Types of currency to exchange (ex. dollar, yen, euro, yuan, won):)# exchange = {'usd': 1167, ...

2 years ago
« - 45 - »

© 2024 OneMinuteCode. All rights reserved.