Click here to Skip to main content
15,849,032 members
Home / Discussions / Mobile
   

Mobile

 
QuestionRe: programming dart Pin
David Crow5-Oct-21 10:35
David Crow5-Oct-21 10:35 
AnswerRe: programming dart Pin
olivier Dakouri12-Oct-21 5:17
olivier Dakouri12-Oct-21 5:17 
GeneralRe: programming dart Pin
Richard MacCutchan12-Oct-21 5:50
mveRichard MacCutchan12-Oct-21 5:50 
GeneralRe: programming dart Pin
olivier Dakouri12-Oct-21 12:52
olivier Dakouri12-Oct-21 12:52 
GeneralRe: programming dart Pin
Richard MacCutchan12-Oct-21 22:54
mveRichard MacCutchan12-Oct-21 22:54 
GeneralRe: programming dart Pin
olivier Dakouri14-Oct-21 8:07
olivier Dakouri14-Oct-21 8:07 
GeneralRe: programming dart Pin
David Crow14-Oct-21 8:49
David Crow14-Oct-21 8:49 
GeneralRe: programming dart Pin
Richard MacCutchan14-Oct-21 22:04
mveRichard MacCutchan14-Oct-21 22:04 
There are a number of things wrong.
1. The nombreElementsPairs function is inside the main function; it should be a separate block.
2. The list of numbers is supposed to be a parameter passed in to the function, but you ignore that and create a new local list.
3. You create the counter nombreElementsPairs but never refer to it again.
4. You test every element of the list to see if it is even, and if it is you set the resultat variable to zero. Note, that you previously initialised resultat to zero, so if all elements of the list are odd, it will still be zero at the end.
5. The return value of the function is resultat which will always be zero, which is not the count of anything.
6. The print statement does nothing useful.

As I already suggested, you should go to the Dart website and work through the tutorials, so you get to understand how to structure your program logically.
GeneralHow to permanently set location for Android 1Weather? Pin
swampwiz18-Jul-21 12:35
swampwiz18-Jul-21 12:35 
QuestionRe: How to permanently set location for Android 1Weather? Pin
David Crow30-Aug-21 3:19
David Crow30-Aug-21 3:19 
QuestionWhy is there a difference between the page style in split view and simulated window (in Xamain)? Pin
Alex Dunlop18-Jun-21 21:03
Alex Dunlop18-Jun-21 21:03 
QuestiondataTable react native Pin
Member 1478297927-Apr-21 23:05
Member 1478297927-Apr-21 23:05 
AnswerRe: dataTable react native Pin
TUF Gaming8-Jun-21 9:58
TUF Gaming8-Jun-21 9:58 
AnswerRe: dataTable react native Pin
Richard Deeming8-Jun-21 22:33
mveRichard Deeming8-Jun-21 22:33 
GeneralRe: dataTable react native Pin
Richard MacCutchan8-Jun-21 22:53
mveRichard MacCutchan8-Jun-21 22:53 
QuestionHow to get data from GSM module to android studio without including the server? Pin
Rocking Kapil21-Mar-21 1:05
Rocking Kapil21-Mar-21 1:05 
AnswerRe: How to get data from GSM module to android studio without including the server? Pin
Richard MacCutchan21-Mar-21 1:33
mveRichard MacCutchan21-Mar-21 1:33 
QuestionHow much does it cost to develop Clubhouse-like application? Pin
Clarence Kennedy17-Mar-21 6:09
Clarence Kennedy17-Mar-21 6:09 
AnswerRe: How much does it cost to develop Clubhouse-like application? Pin
OriginalGriff17-Mar-21 6:12
mveOriginalGriff17-Mar-21 6:12 
QuestionHybrid App Development Pin
KEEPREADING7-Mar-21 20:47
KEEPREADING7-Mar-21 20:47 
QuestionHybrid App Development Pin
KEEPREADING7-Mar-21 20:47
KEEPREADING7-Mar-21 20:47 
Questionmessage removed Pin
Member 150388016-Jan-21 1:02
Member 150388016-Jan-21 1:02 
Rant[REPOST] creation of login page in android studio.Android Studio 4.1.1 Pin
Richard Deeming6-Jan-21 1:25
mveRichard Deeming6-Jan-21 1:25 
GeneralRe: [REPOST] creation of login page in android studio.Android Studio 4.1.1 Pin
moshestrugano20-Jan-21 2:12
moshestrugano20-Jan-21 2:12 
AnswerRe: creation of login page in android studio.Android Studio 4.1.1 Pin
Richard MacCutchan6-Jan-21 1:26
mveRichard MacCutchan6-Jan-21 1:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.