|
What are you trying to accomplish with this message?
|
|
|
|
|
It's a closed spam account.
More to the point, what are you trying to accomplish with your message?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
|
Possibly. As Greg said, he's had a lot of other non-trolling posts. Maybe it just needs Sean to have a word about some of his latest posts?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
i want send bulk of messages using SMPP protocol with c#
|
|
|
|
|
I want to win the lottery.
|
|
|
|
|
Well go ahead - you have our permission to try.
Feel free to come back when you have an actual question.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
|
I know I'm going way, way back here, but maybe someone here has done this a long time ago.... I have a multiplatform project I support - the older platforms use EVC++ 4.0 to build the application, the newer platform uses VS2008 Professional.
In VS2008, I can create a folder, add many subprojects into it, and compile all of them by simply right mouse clicking on the folder and select Build. In effect, the folder is a dummy target, and VS2008 just knows how to build the proper dependency tree.
I'd like to do the same in EVC++, but it has no folder option at the project / workspace level. I can create a simple project and establish dependencies to the subprojects, but EVC++ insists on having an output target of some type.
Anyone know how to fake out EVC++? I know I'm grasping here If I were back in Unix land, I'd just edit my make file and create the dummy target manually. Hmmm, possibilities here.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
I am looking for a solution to this problem please
Write a calculation function allowing to perform an operation on two numbers according to a given operator.
In addition to the two numbers it will be necessary to pass a 3rd parameter defining the type of operation to be done: + (addition), - (subtraction), * (multiplication), / (division)
|
|
|
|
|
No you are looking for someone to do your schoolwork for you. Try to do it first and ask specific question if you get stuck.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
ok really thank you for answering me. I am a real beginner in programming. the concern the will is there but not easy. So that's what I did.
import 'dart:io';
import 'dart:math';
main() {
print(somme(1, 2));
print(multiplication(1, 2));
print(division(1, 2));
print(soustraction(1, 2));
}
int somme(int a, int b) {
int result = a + b;
return result;
}
int multiplication(int a, int b) {
int result = a * b;
return result;
}
int division(int a, int b) {
int result = a ~/ b;
return result;
}
int soustraction(int a, int b) {
int result = a - b;
return result;
}
|
|
|
|
|
OK, so now what is the question?
|
|
|
|
|
really thank you for answering me the question is: Write a function calculates allowing to perform an operation on two numbers according to a given operator.
|
|
|
|
|
No, that's not a question. That's your homework assignment.
Nobody here is going to do your homework for you.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Well you have still not explained what is wrong with the code you have already written.
|
|
|
|
|
From my vantage point, this does not satisfy the "according to a given operator" requirement. I think your instructor is looking for a routine that could handle inputs like:
print(foo(1, 2, "+"));
print(foo(6, 3, "/"));
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Really thank you for answering me. but my instructor had already given me this indication. but like I told you I really can't. if you can give me more details that would do me a lot of good. Thank you for answering me.
|
|
|
|
|
olivier Dakouri wrote: ...but like I told you I really can't. Really can't what?
Take the code you've (supposedly) written, merge the four functions into one, and in that single function, separate each operation with a series of if/elseif statements. The third argument of this function is what the if/elseif statements will key off of.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
hello I tried myself but I can not add the other calculations (multiplication, subtraction, division). like i said i am really a beginner. Really thank you for answering me.
void main() {
print(calcul(12, 10));
}
int calcul(int a, int b) {
return a + b;
}
|
|
|
|
|
To repeat what you has already been suggested, you need a third parameter to your function which specifies the type of calculation.
int calculate(int param1, int param2, char operator)
{
int result = 0;
if (operator == '+')
result = param1 + param2;
else if (operator == '-')
return result
}
int sum = calculate(10, 23, '+');
So you just need to write the code for the other operations.
|
|
|
|
|
Really thank you for your help I didn't know where to start. If you have any documentation that can help me understand better I am willing to study it thank you again.
|
|
|
|
|
You seem to be following a model that many people follow these days, which is trying to run before you can walk. If you do not understand the basics then you will always struggle. Go to Dart programming language | Dart[^] and follow some of the tutorials.
|
|
|
|
|
Good evening
Write a numberElementsPairs function that returns the number of even elements in a list of integers.
Example
var list = [1, 2, 3, 5, 7, 8]
var result = numberElementsPairs (list)
here is my solution
void main() {
nombreElementsPairs(List) {
var list = [1, 2, 3, 5, 7, 8];
var nombreElementsPairs = 0;
var a;
var resultat = 0;
for (a in (list)) {
if (a % 2 == 0) {
resultat = a % 2;
}
}
return resultat;
}
print('le nombre pair est $nombreElementsPairs(List)');
}
but it does not pass
|
|
|
|
|
olivier Dakouri wrote: ...returns the number of... I take this to mean the "count" of something.
olivier Dakouri wrote: if (a % 2 == 0) { While this is indeed checking the "even-ness" of a number...
olivier Dakouri wrote: resultat = a % 2; This is not counting anything. You should be incrementing a counter-type variable with each even number found.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|