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";
プロジェクト ID: 17279458

プロジェクトについて

12個の提案
リモートプロジェクト
アクティブ 6年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
この仕事に12人のフリーランサーが、平均$23 USDで入札しています
ユーザーアバター
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
ユーザーアバター
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
ユーザーアバター
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
ユーザーアバター
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
ユーザーアバター
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
ユーザーアバター
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
ユーザーアバター
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
お支払い方法確認済み
メンバー登録日:10月 9, 2015

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。