function tag

78 questions


2 answers
80 views
0
C++ Dynamic Assignment Structure Pointer, question for use with other functions

Hi, everyone.I made a simple code. I'd like to hear advice from experts who know the problem.#include <iostream>using namespace std;int CountPlayer;struct SUTDA{ char Name[20];};void Input(){ co...


2 answers
42 views
0
I have a question regarding the function in Python.

def income_sheet_Y(code): # Importing data fs_rpt_url = http://comp.fnguide.com/SVO2/ASP/SVD_Finance.asp?pGB=1&gicode=A{}&cID=&MenuYn=Y&ReportGB=&NewMenuID=103&stkGb=701.format...

2 years ago

1 answers
68 views
0
Is it impossible to transfer functions to Python3 class?

class PrintFuncNum: def __init__(self, func): self.func = func def check(self, test): answer = self.func(test)test1 = PrintFuncNum(func) # You can put test*3 in the answer in the check part# Or I wo...

2 years ago

1 answers
48 views
0
cLanguage array inverse output function question!

#define _crt_secure_no_warnings#include<stdio.h>void GetIntArray(int v[], int n);void ReverseIntArray(int v[], int n);void PrintIntArray(int v[], int n);int main(){ int tem[] = { 0 }; int n; Get...

2 years ago

1 answers
43 views
0
getMinMaxScore function that returns the maximum and minimum values

mus, fre, ger, phy = 95, 97, 45, 95def getMinMaxScore(mus, fre, ger, phy): # ?? return ??MaxScore, MinScore = ( )print(MaxScore, MinScore)Run Results: 97, 45Hello, guys. I found an example while study...

2 years ago

1 answers
55 views
0
String Specific Character Removal Function

#include<stdio.h>#include<ctype.h>#define size 100int main(){ char s[size] = Applea; char c = ; c = getchar(); int i, j; int n = 100; for (i = 0; i < n; i++) { if (s[i] == (char)c) { ...

2 years ago

1 answers
46 views
0
Creating a shopping list code

1. make a list called groceries with the values banana, orange, and apple.Define these two defaultdictionaries:stock = { banana: 6, apple: 0, orange: 32, pear: 15}prices = { banana: 4, apple: 2, orang...

2 years ago

1 answers
138 views
0
Python replace, I have a question!

b=2A= Oh, I really want to eat 'crunchy' \jeon\.B=A[5:9]C=B.replace(B), 'Brown'C=C.replace(B),'Yellow',b)print(C)When you print out a C, 'Yellow' 'Yellow' Shouldn't it come out as? I'm asking because ...


1 answers
44 views
0
I have a question while studying functions

I learned a function that receives multiple inputs, and then I realized that it was a def functionadd_many (1,2,3,4,5,6,7,8,9) is added and executedI'm curious about the reason why it's error if I use...

2 years ago

2 answers
49 views
0
C Questions about how to use the value of the language input variable in other functions as well

The selectAction function is a function that receives values of col, row, and direction from the user. You want to receive a value through scanf from this function.The three values you enter must also...

2 years ago
« - 7 - »

© 2024 OneMinuteCode. All rights reserved.