• Register

Recent questions tagged parameters

0 votes
1 answer 5 views
Problem: invalid parameter number: parameter was not defined
asked Feb 14 Shovo210 2.2k points
0 votes
1 answer 8 views
Problem: Would the following code be correct? class Person { private: string name; bool sex; int age; public: Person (); bool getSexo (); int getAge (); Person play (string s); }Hope someone could help me out?
asked Jan 25 sasha 8.4k points
0 votes
1 answer 15 views
Problem: I want to implement a kind of console (function menu_principal), where the user can go to different menus according to their choice. One of these options is to enter a directory (function dir_manager, accessed with the number 1). Once the user wants to end the execution, he must type the ... * option1 = 1; // <---- THIS IS THE ERROR return; } else if (* option1 == 9) { return; } } }
asked Jan 1 sasha 8.4k points
0 votes
1 answer 14 views
Problem: I want to write a function that receives two pointers to functions and returns a pointer to the function composicion. Is it possible to do that? This was my idea: typedef int (* integerFunction) (int); integer function composition (integer function f1, integer function f2) { return f1 (f2); }
asked Jan 1 sasha 8.4k points
0 votes
1 answer 4 views
Problem: I am looking for a way to pass a method by reference. I understand that Java does not pass methods as parameters, however, I would like to get an alternative. I've been told interfaces are the alternative to passing methods as parameters ... with the same parameters. What I would like to accomplish is something similar to this: public void setAllComponents(Component[] myComponentArray, Me
asked Dec 3, 2020 Mashhoodch 9.1k points
0 votes
1 answer 42 views
Problem: Hi there! I am new to the world of programming. My programming teacher gave me an assignment in which I have to write a program in which there would be a function that will take two strings as input from user and will compare the size of both strings ... the larger string of the two. I have no clue how to do that. Please provide me with the sample program with proper description. Thanks
asked Nov 25, 2020 Code Learner 5.7k points
0 votes
1 answer 14 views
Problem: I am new to the world of programming and I am learning functions in C#. While working with functions, a question popped in my mind that whether I can pass function to another function as parameter or not? I tried doing so, but nothing worked. So, my question is: can I pass a function to another function as a parameter? If yes, how? if not, why?
asked Oct 22, 2020 Code Learner 5.7k points
0 votes
1 answer 30 views
asked Oct 14, 2020 softwere engineer
0 votes
1 answer 13 views
0 votes
2 answers 149 views
Problem: I want to execute the subsequent command by using command line: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe Send-MailMessage -from "mail.me" -to "mail.me" -Subject "PS test !" -Body "Hi this is a power shell mail test" -SmtpServer ... SendMailMessage My main problem is that the same above command works really well when I directly execute it in PowerShell, but without a path.
asked Aug 22, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 120 views
I start programming recently and I love to do programming but every day I'm facing new problems. I wrote a java code where I can easily take two int input from a user and I'm able to print the smallest value. But I'm doing all things in the main method. I don't want to do ... smallest; if(a>b){ smallest = b; }else{ smallest = a; } System.out.println("Smallest is: "+smallest); } Here is my code.
asked May 3, 2020 samhaz 5k points
0 votes
1 answer 95 views
I started programming recently, I have learned some basic programming topics like loops, array and many more. But they are not enough to implement my concept in java. I can write a void method that can take 2 or more parameters and print the summation of all parameters. But now I want to ... * @param a * @param b */ public static void add(int a, int b){ int sum = a+b; System.out.println(sum); }
asked May 3, 2020 samhaz 5k points
0 votes
2 answers 124 views
I'm new in java programming, I know how to find out the largest or smallest number from an array. But I'm facing problem when I'm trying to find out smallest staring in 3 string. Please help me write a method min that has three string parameters and returns the smallest.
asked May 2, 2020 samhaz 5k points
0 votes
2 answers 308 views
Problem: I am new to programming, so need query to get query to return max number from 3 integer? Write the definition of a method max that has three int parameters and returns the largest? Can anyone guide with correct code?
asked Feb 17, 2020 maddi86 5.4k points
0 votes
1 answer 147 views
Problems: I need help in programming to solve my issue. Is there anyone who can help me ? Write a complete main method that prints Hello, world to the screen?
asked Feb 13, 2020 maddi86 5.4k points
0 votes
1 answer 465 views
Problem : I have the very unique question from the programming background. They want me to write the function which should multiply (a) and (b) but not writing it like below one: multiplyfunc(a,b){ return a*b; } They want me to do a math with below approach multiplyfunc(a)(b) Is it possible to do it?
asked Jan 14, 2020 alecxe 7.5k points
To see more, click for the full list of questions or popular tags.