Find Jobs
Hire Freelancers

MikroC Array Code

$10-30 USD

Ακυρώθηκε
Αναρτήθηκε περίπου 6 χρόνια πριν

$10-30 USD

Πληρωμή κατά την παράδοση
I've been trying to figure out how to store these array values into a single line of code. char PRK[5]={0,0,0,0,0}; // initialize the array. Within the program, I would like to save different values at the same time, I currently save them individually like so PRK[1]=1; PRK[2]=0; PRK[3]=1; PRK[4]=0; Is there a shorter version of this within a single line? I tried the code below but I cannot make it working. My compiler is MirkoC , thank you for your assistance! PRK[]="01010";
Ταυτότητα εργασίας: 17279458

Σχετικά με την εργασία

12 προτάσεις
Απομακρυσμένη Εργασία
Ενεργός/ή 6 χρόνια πριν

Ψάχνεις τρόπο για να κερδίσεις μερικά χρήματα;

Πλεονεκτήματα πλειοδοσίας στο Freelancer

Καθόρισε τον προϋπολογισμό σου και το χρονοδιάγραμμα
Πληρώσου για τη δουλειά σου
Περίγραψε την πρόταση σου
Η εγγραφή και η πλειοδοσία σε εργασίες είναι δωρεάν
12 freelancers δίνουν μια μέση προσφορά $23 USD για αυτή τη δουλειά
Avatar Χρήστη
hi! consider this job done, I'm expert in C and mikroC, it is binary data that you are trying to store in array? or it can be 2, 4, 9 etc as well? PRK[]="01010" this is wrong because it will save a string instead of 0 1 and also it will make array of 6 characters ending with NULL.
$25 USD σε 0 ημέρα
4,9 (37 αξιολογήσεις)
5,8
5,8
Avatar Χρήστη
Hello Sir I am an expert of MicroC. I think I can help u. Using hex is the best way I think. I hope we can discuss via chat. regards YanYing.D
$30 USD σε 1 ημέρα
5,0 (4 αξιολογήσεις)
3,8
3,8
Avatar Χρήστη
Hi, i am good in MikroC, i have go through your requirement and i am willing to do it. please check my profile. Thank you
$25 USD σε 1 ημέρα
4,7 (4 αξιολογήσεις)
3,4
3,4
Avatar Χρήστη
Hey, I think there is pretty easy fix for this. I have quite a good bit of experience with C/C++ and with microcontrollers. I should be able to help you with this right away. Cheers, Fahd
$10 USD σε 0 ημέρα
5,0 (3 αξιολογήσεις)
2,3
2,3
Avatar Χρήστη
Hi you can do it using below example int PRK[5] = {0,0,0,0,0}; .
$25 USD σε 1 ημέρα
0,0 (0 αξιολογήσεις)
0,0
0,0
Avatar Χρήστη
I have build many applications with arrays and as an example a xmas tree with a microcontroller and 8 different colors leds flashing (on/off). Thank you.
$25 USD σε 1 ημέρα
0,0 (0 αξιολογήσεις)
0,0
0,0
Avatar Χρήστη
You code is closer to be correct than you think. You just made a minor coding error, that require a minor explanation. I downloaded the demo and tried my version out. It's only 1 line of code with about 15 lines of comments to give you your solution. I was awake at 2 A.M. when I took 5 minutes to type in, and compile the code. I'm looking more for good rating rather than the dollars. I can upload code after work in evenings.
$10 USD σε 1 ημέρα
0,0 (0 αξιολογήσεις)
0,0
0,0

Σχετικά με τον πελάτη

Σημαία της UNITED STATES
Alamo, United States
5,0
38
Επαληθευμένη μέθοδος πληρωμής
Μέλος από Οκτ 9, 2015

Επαλήθευση Πελάτη

Ευχαριστούμε! Σου έχουμε στείλει ένα email με ένα σύνδεσμο για να διεκδικήσεις τη δωρεάν πίστωση σου.
Κάτι πήγε στραβά κατά την προσπάθεια αποστολής του email σου. Παρακαλούμε δοκίμασε ξανά.
Εγγεγραμμένοι Χρήστες Συνολικές Αναρτημένες Δουλειές
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Φόρτωση προεπισκόπησης
Δόθηκε πρόσβαση για Geolocation.
Η σύνδεση σου έχει λήξει και τώρα έχεις αποσυνδεθεί. Παρακαλούμε συνδέσου ξανά.