Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 131,485 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,856 people online right now. Registration is fast and FREE... Join Now!




array and flip?

 
Reply to this topicStart new topic

array and flip?

duygugvn
post 23 Dec, 2005 - 11:14 AM
Post #1


New D.I.C Head

*
Joined: 31 Oct, 2005
Posts: 36


My Contributions


/* each row identifies 24-bit binary numbers */
int arr1[50][24]={5};(why do we use five ???)
int arr2[50][24]={5};
int count=0;

/* Changes the value of selected bit, EITHER 1 to 0 OR 0 to 1 */
int flip(int bit)
{
if(bit==0)
return 1;
else
return 0;
}
why do we need these changes can anybody explain it for me???
User is offlineProfile CardPM

Go to the top of the page


Amadeus
post 23 Dec, 2005 - 12:21 PM
Post #2


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,158



Thanked 31 times

Dream Kudos: 25
My Contributions


We may be able to if you can provide some more information. What changes are you talking about? Can you post something that was changed? try posting the original code, then the code as it had been changed, and perhaps we can explain why the change ocurred.
User is offlineProfile CardPM

Go to the top of the page

supersloth
post 23 Dec, 2005 - 12:22 PM
Post #3


serial frotteur

Group Icon
Joined: 21 Mar, 2001
Posts: 19,493



Thanked 11 times

Dream Kudos: 2147483647

Expert In: being gentlemanly

My Contributions


well why are you doing it in the first place? if its for a skool assignment it may just be to see if you can do it or not, but with a little context we can help you out a little more.
User is online!Profile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/20/08 12:02AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month