GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 10-Feb-2016, 06:31
HelpF2 HelpF2 is offline
New Member
 
Join Date: Feb 2016
Posts: 1
HelpF2 is on a distinguished road

Problem with checking strings on display in C


Hi.

I need to check how many numbers in strings of 16 numbers is less than for an example 6.

I only need a main rutine..
Below is my part of code but doesnt work


Code:
byte a[16]={3,22,31,9,11,6,7,8,23,17,10,30,73,40,55,93}; byte b[16]={11,14,7,13,17,19,97,2,12,128,1,124,123,122,33,21}; byte c[16]={9,15,4,13,2,49,57,3,74,47,39,59,112,100,91,6}; byte d4[16]={33,58,68,66,21,19,97,3,1,2,5,12,27,9,15,11}; for (i=0;i<16;i++){ if(a[i]<6) count1++; display=count1 ; if(b[i]<6) count2++; display=count2; if(c[i]<6) count3++; display=count3; if(d[i]<6) count4++; display=count4; }

display is variable which is memory mapped (led display)

Maybe I need 4 FOR loop or?
Reply With Quote
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FLTK Not installing AJk101 FLTK Forum 1 05-Feb-2011 15:43
[Program/Tutorial] RandMouse aaroncohn C Programming Language 5 17-Dec-2004 20:22
Small Problem with Copying strings nkhambal C Programming Language 4 07-Nov-2004 17:35
Image display problem Griff Web Design Forum 1 23-Aug-2004 17:47
A Problem with Accessibility on MAC IE Melvin Lin Web Design Forum 1 19-May-2004 05:30

Network Sites: GIDNetwork · GIDApp · GIDBlog · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 18:27.


vBulletin, Copyright © 2000 - 2017, Jelsoft Enterprises Ltd.