Quick Sign Magnitude Negation question.

Ok ive learned negation in Sign magnitude but I hit a bump in the road with one problem that seems to make the basic rules not work. So if someone would be so kind as to tell me how you subtract this sign magnitude problem out I would be very thankful.
01100100 (Which is 100) minus
00111100 (Which is 60) Seems very simple and I know all you have to do is
subtract but how do you subtract from 0? Where the 0's are above the 1's. In basic arithmetic that would be negative 1 but not in Sign magnitude. Anyone see what im saying?

Another way is called 2s complement addition. If you want to subtract 60 from 100 then you can add minus 60 to 100. In 2s complement the high order bit is the sign bit. To represent minus 60 in 2s complement binary notation you first write +60 in binary, then form the 1s complement (by inverting all the bits), and then add 1.
So,
0 0 1 1 1 1 0 0 = 60
1 1 0 0 0 0 1 1 = 1s complement. (-128 sign bit, + 64 + 2 + 1) = -61
1 + 1 to form the 2s complement
1 1 0 0 0 1 0 0 = 2s complement (-128 + 64 + 4) = -60
So, add minus 60 to 100, which is the same as 100 - 60.
0 1 1 0 0 1 0 0 =100
1 1 0 0 0 1 0 0 = -60
0 0 1 0 1 0 0 0 = 40
Notice that the carry from the left most column is ignored, because we are using 8 bit binary 2s complement addition. Also the sign bit in the answer is cleared, so the answer is positive.

Similar Messages

  • Hi. My Macbook Pro won't start, in the middle of the screen, there is a folder sign with a question mark blinking. Thanks a lot!

    Hi. My Macbook Pro won't start, in the middle of the screen, there is a folder sign with a question mark blinking. Thanks a lot!

    Here's a link to a Support page on the topic, which may be of help in finding resolution:
    •A flashing question mark or globe appears when you start your Mac
    There are a few known causes of this symptom, so you'd have to try some things to
    see if you can narrow down the cause; this often accomplished by finding success.
    Hopefully the info there helps.
    Good luck & happy computing!

  • Flashing folder sign with a question mark. Any Suggestion?

    I did reset my MacBook Air; then it is just giving me a flashing folder sign with a question mark. Any Suggestion?

    There are four general causes of this issue:
    1. The computer's PRAM no longer contains a valid startup disk setting when there aren't any problems with the disk itself. This can be checked for by pressing the Option key and seeing if the drive appears.
    2. The internal drive's directory structure has become damaged. This requires usage of an alternate bootable system to perform the repair.
    3. Critical system files have been deleted. This requires usage of an alternate bootable system to reinstall them.
    4. The internal drive has died or become unplugged. This is the most likely case if the computer took a sharp impact or there are unusual sounds coming from the hard drive's location.
    (67186)

  • Printing and Signing PDF Security Questions

    Hi,
    I noticed one of the PDF security features for Acrobat 8.0 is to set the printing permissions between "None", "150 DPI", and "High Resolution". However, when I print between two PDF's with 150 DPI and max resolution, I honestly can barely notice the difference between the two (the 150 DPI is "slightly" worst, i.e. letters are slightly more jaggedly). I was wondering is this normal, as I was hoping the lower setting would make the printout hard to read, not just a "quick-print" (I used a Laser Printer with 1200 DPI). I don't mean to make a big deal out of it, but I personally do not think this a very useful feature from a security standpoint.
    Secondly, I'm having trouble creating signable PDF's. I basically want the file to only allow a user to sign, and nothing else, so I set the "Changes allowed" to just "filling in forms and signing existing signature fields". But doesn't seem to work, because instead I have to set it to allow "any except extracting page". Only then can I sign the PDF, but then this also allows it to be changed (which I don't want). Is there something wrong with what I'm doing? Any help is appreciated!

    It's a very common question, and as Michael says there's not a lot you can do. Even doing the imposition yourself is unlikely to help, as most commercial raster image processors (RIPs - the software which turns your document with its fonts, graphics etc into the pattern of dots needed to physically generate the image on the printing drum) need unencrypted files.
    If the print shop has an ad-hoc workflow which supports encryption (such as printing direct from Acrobat in the way desktop users do), there are plugins for Acrobat to handle the page imposition; but it's not something native to the application and the printer will have to give you very precise directions as to what layout to create. Many print shops won't entertain that idea unless there's an overriding commercial reason, as it's too much hassle for them to deal with errors in the client plates. Worth asking, but I doubt they'll agree to it.
    Given the need to send unsecured files to an external contractor for printing, your "protection" is in the form of the contract, not digital encryption. The former can be settled in court if they break the terms, the latter can be bypassed in ten seconds and you'll probably never know. If the files are truly too sensitive to send to anyone, it's time to get yourself a laser printer - these days the machines many local print shops rely on are in essence a color photocopier, and you can rent them for about the same price.

  • My iMac won't start up (no entry sign/folder with question mark)

    Hello,
    I recently updated the mac software through the App Store and it is now unable to start up.
    When it starts up it has a white screen and a folder icon with a question mark in it. However, sometimes it has a 'no entry' sign instead.
    I've found a few solutions online involving using the installation disk and holding certain buttons and going through safe mode but I'm not sure whether the mac is picking up my wireless keyboard. I've replaced the batteries and tried the wireless keyboard from my other mac but nothing has worked.
    Can anyone help?
    According to the box it is an iMac 27"/3.06/2x2GB/1TB/4670
    And it's running Mountain Lion- I can't be too sure exactly which version because I can't get to the system information.
    Thanks
    James

    Have you tried booting into the Recovery HD and using Disk Utility to check/repair the drive- restart holding Command + r
    More info here: http://support.apple.com/kb/HT4718
    If your Bluetooth keyboard doesn't seem to be working, can you borrow a USB wired (any make) keyboard just to try and make progress.

  • Two quick gnome and KDE questions

    i dig gnome, wife and kids dig KDE we as a group only use one user account.
    so heres the deal...
    when i make a change to the KDE desktop ( different icons, device, etc..) it effects gnome also. is there a way i can seperate their config files so that whatever i do to one does not effect the other ?
    other question : i know that the Yahoo messenger thing has been fixed in the CVS version of Kopete. how can i make that happen ? can i find a PKGBUILD script for the cvs Kopete somewhere ? i think that it is just part of one of the KDE packages and i dont need to reinstall everything to get that going.
    ok, any suggestions would be much appreciated..
    Arch Rocks !

    -> is there some reason why you use only one user-account? i highly advice you to switch to a more-user way of using linux
    the icons on the desktop cannot be separated easily (kde<->gnome), as both use ~/Desktop/.. structure (what became also standard and is also good being), so the best way would be to have more than one user
    kde? gnome? try xfce4 :-)
    yahoo: kopete: hmm... earlier, kopete was a separate pkg (it was not part of the official kde-release), and it was very easy to rebuild only kopete on cvs --- now, things became a little more complicated: you need to rebuild kdenetwork (as far as i can remember), but as kde 3.3.beta1 (klassroom) is out, let's hope that some of the great users start a repository for it (some time ago someone from the comunity was running his/her own repository with the actual kde beta, but i was not able to find this thread - maybe deleted now)
    you can also play around with ABS (see docs) and build your own kde 3.3beta1 pkgs and install them, but if you are a newbie, it would be a time-consuming, but learning experience

  • HT5312 not getting the option to reset security questions when we sign into security questions

    we are not getting the option to resent security quesions when we are attempting to answer the questions.  We have a back up email saved but why are we not getting this option on the security question page?

    The reset link will only show if you have a rescue email address, which is not the same thing as an alternate/secondary email address. If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699

  • Sign in difficulties - Question

    Each time I try and sign in using my valid email and password, the screen "thinks" for a few seconds and then comes back with "You are now signed out".  Any ideas?

    I had the same problem and contacted technical support via chat.
    Here is what we did to fix the issue on a Windows 7 (64 bit) system).
    1. Quit your Creative Cloud app.
    2. Hold down the "Windows" key on your keyboard and press "r".
    3. Type in "appdata" in the run window and hit enter.
    4. Navigate to Local/Adobe/OOBE.
    5. Locate the "opm" database file and delete it.
    6. Start the Creative Cloud desktop app and sign in using your Adobe ID and password, then click on the Apps tab. It took a minute or two to sign in but everything came back to normal status.

  • Help Quick!  Action Script Question

    The following code lets me use buttons to switch music. The
    music loops until I switch it.
    How do I make it so that the previous music doesn't stop
    looping. So you can have more then one music going at once.
    That is all...
    // initialize starting track
    var soundNext:String = "beats01";
    // set up dynamic sound object
    var dynamicSound:Sound = new Sound(this);
    dynamicSound.attachSound(soundNext);
    dynamicSound.start(0, 1);
    nowPlaying.text = soundNext;
    beats01.onRelease =
    beats02.onRelease=beats03.onRelease=beats04.onRelease=beats05.onRelease=beats06.onRelease =beats07.onRelease=beats08.onRelease=function
    soundNext = this._name;
    nextTrack.text = soundNext;
    // NEXT SOUND
    dynamicSound.onSoundComplete = function() {
    dynamicSound.attachSound(soundNext);
    dynamicSound.start(0, 1);
    nowPlaying.text = soundNext;
    stop();

    Hi Dan,
    Welcome to Apple Discussions and the AppleWorks forum.
    Are you sure you're asking a database question? From your terminology (rows, columns) and your description, it seems more like you're using a spreadsheet.
    If this is a database, you will have two Number type fields, 'A' and 'B'. To show the product, define a Calculation type field, 'C', using either of the two formulas below:
    'A'*'B'
    or
    PRODUCT('A','B')
    To define the new field:
    Open the database document.
    Go Layout > Define fields
    In the Define fields dialogue that opens, you'll see a list of your current fields, including 'A' and 'B'
         -if 'A' and 'B' are not identified as "number" fields, click to select each in turn, change the Type to Number and click Modify.
          OK the warning (your data in these fields is all numbers, and will be retained).
    Type "C" (without the capitals) in the Field Name box, set the Field Type to Calculation, then click Create.
    Enter either of the formulas above into the Formula box, then click OK, then Done.
    If your document is actually a spreadsheet, with the numbers in columns A and B:
    Enter either of these formulas into cell C1:
    =PRODUCT(A1,B1)
    or
    =A1*B1
    Press Enter.
    Select the cells C1..Cn (where n is the last row in which you want to calculate the product of the numbers in columns A and B).
    Press command-D to fill the formula down the cells in column C
    Regards,
    Barry

  • Quick hard drive cleaning question?

    I'm going to sell some of my Macs, this iBook G4, included. I have tax returns, bank and credit card info, etc., on it. Without having to purchase software, can I simply clean-install its operating system to ensure that my data is no longer on the hard drive?

    Niel, thanks for such a quick response, I appreciate it. Someone told me that clean installing your operating system doesn't really erase your hard drive and that, if someone knew what they were doing, they could retrieve still retrieve your data. (As you can see, I'm not knowledgeable at all about these sorts of things.) Is there any truth at all to this? And thank you for this article, I'm going to print it out before I get ready to take the plunge.

  • Itunes redeem gift cards & sign in password question

    two questions:
    1) my kids have gathered multiple itunes gift cards. is it possible to just load all the card numbers into the itunes redeem section, and use those for some other date, or do you have to download items immediately after listing each card?
    2) got my new macbook pro. everytime i open itunes it asks me for my password, and most times, it asks me to type it twice. is there a way to just have itunes remember my password so i don't have to enter it EVERY TIME i open itunes. i don't see a "remember my password" icon when it asks me to enter it.
    thanks,
    anthony

    1) You can redeem as many iTunes Gift Cards to your account as you like, and spend the store credit from those cards at your leisure.
    2) For security reasons, the iTunes Store does not remember your Apple ID password. If it did, my kids might reak havock on my account and yours could too lol

  • When I turn it on it stays blank with a folder sign and a question mark?

    I need help to understand what to do and where to go!?

    A flashing question mark appears when you start your Mac
    Symptoms
    If you see a flashing question mark when you start your Mac, it's  probably because it can't find the system software it needs to start up.  Usually, all you have to do to get your Mac back up and running is  remind it where its software is.
    Resolution
    If your computer starts up normally after a brief delay, you probably  just need to reselect the startup disk in Startup Disk preferences.  It's normal to see the flashing question mark when a startup disk has  not been selected. In most cases, reselecting the startup disk is all  that is required to resolve the issue.
    Sometimes, your computer may not start beyond the flashing question mark.
    Tip: If your computer has a gray screen (with no flashing question mark) startup issue, see Mac OS X: Gray screen appears during startup.
    Check the mouse and keyboard
    This issue might occur if a mouse or trackpad button is pressed during startup. Make sure the button isn't pressed.
    If the issue persists, shut down your Mac with its power button,  disconnect any external mouse and keyboard, then turn on your Mac with  its power button. If the flashing question mark issue persists,  reconnect the keyboard and mouse.
    Additional steps
    If your Mac still starts to a flashing question mark, follow the  steps below. If any step resolves the issue, you don't need to continue  to the next one.
    Select your Mac OS X startup disk with Startup Manager by restarting and holding the Option key. After your Mac starts up,  restart again to verify that the flashing question mark does not appear.
    If the issue persists, insert your Mac OS X installation disc.  Be sure to either use the disc that came with your Mac, or, if you  installed a later Mac OS X version from disc, use the newer disc.
    MacBook Air note: On a MacBook Air, there are  two options for starting up from Mac OS X media: Either connect a  MacBook Air SuperDrive to  the MacBook Air via the  USB port and restart  the computer, holding down the C key during  startup, or use Remote Install Mac OS X to startup from a system  software  DVD that's located on a partner  computer. Once started up from Mac OS X media, skip to step 3.
    Restart the computer, then hold the C key during startup.
    From the Utilities menu, choose Disk Utility. Don't click Continue.
    Select your Mac OS X disk (named "Macintosh HD" by default) in the left side of the Disk Utility window.
    Click the First Aid tab.
    Click Repair Disk to verify and repair any issues with your Mac OS X startup disk.
    After repairing the disk, try to start up normally.
    Important: If Disk Utility finds issues it cannot repair, you may need to back up as much of your data as possible (or use Time Machine to back up to a different disk), then erase the disk and reinstall Mac  OS X. You should back up important files and data before erasing a  drive. Erasing deletes everything on the hard disk (including things on  your desktop). Also, you can install Mac OS X onto an external disk,  start from the external disk, and use Migration Assistant to transfer  items from your usual internal Mac OS X startup disk to the external  disk, then erase the internal disk and reinstall Mac OS X.
    If the issue persists, and Disk Utility didn't find any  irreparable issues, quit Disk Utility, quit the Installer, select your  disk when prompted, and restart.
    If the issue continues, reset PRAM. Note: After resetting PRAM, if the computer starts up normally, reselect the startup disk in the  Startup Disk preferences.
    If none of these steps resolve the issue, start up from the Mac OS X Installation disc and reinstall Mac OS X.

  • Outer Join Negation Question

    I'm retrofitting an existing plsql report into BusinessObjects. I have a question about
    the sql I'm looking at. There is an employee table and a case table. Employees have cases. There are two other tables...a case activity table and a case results table. There may or may not be activity and results for a given case. The query is this...
    select count(distinct case_id)
    employee.employee_id = case.employee_id
    and case.case_id = case_activity.case_id (+)
    and case.case_id = case_results.case_id (+)
    so far so good. The next part is
    and (case_activity.activity_date <= mm/dd/yyyy
    or case_results.activity_date <= mm/dd/yyyy)
    That cancels the outer join, right? I contend that there is no
    reason for the outer join symbols. He says they're needed. He thinks the OR is making a difference. It looks to me like you've lost the guarantee that all cases will be included. Can someone please splain this to me :-)
    Thanks so much!
    Cindy

    Cindy,
    I hope there's not too much of an arguement brewing on that query, but both of you are correct (to a degree). The OR in that second clause makes all the difference. I have some sql to show some test results based on your query. Basically remeber this, you always get one row back when making a query, if ALL conditions are met you get that record back. So even if the first part of the OR failes and the second one is true then u get the row back.
    Here's where that other fellow is having a problem though. The problem your going to have is when neither of thoes dates return ture then you get NO data back regardless of the outter joins. Thoes two table Activity and Results will become related if thought about like this. What I mean, is if there is a date in the Activity table that matches, then you will get the Result data as well, and vice-versa. However if there is neither Activity or Result date matches you loose the whole case record even though you have the outter join specified. UNLESS thats the whole point of that DATE range. If neither match then I dont want any case records back. I'm just assuming since your outter joining you want the case back the case regardless if there are matches or not in Activity and Results, but maybe this isn't so.
    Anyway, here some SQL for you and the data that produced it ...
    Tables (t1,t2,t3,t4) : t1is employee, t2 is case t3 is activity and t4 is result.
    Columns (c1,n1,d1) : varchar ID , number ID and a date
    All dates are set for today (Arpil 5, 2002)
    Data is the same in ALL the tables, only interested in C1= A and N1 = 1 from main table T1
    Table T1 has 1 record where C1= 'A' and N1= 1
    SQL> select c1,n1,d1 from t1 where c1='A' and n1=1;
    C1 N1 D1
    A 1 05-APR-02
    Case #1 (BOTH t3 and t4 have no matches)
    SQL> select DISTINCT
    2 t1.c1 "t1_c1",t1.n1 "t1_n1",
    3 t2.c1 "t2_c1",t2.d1 "t2_d1",t2.n1 "t2_n1",
    4 t3.c1 "t3_c1",t3.d1 "t3_d1",t3.n1 "t3_n1",
    5 t4.c1 "t4_c1",t4.d1 "t4_d1",t4.n1 "t4_n1"
    6 from t1,t2,t3,t4
    7 where
    8 (
    9 t1.C1 = t2.C1 and
    10 t2.c1 = t3.c1 (+) and
    11 t2.c1 = t4.c1 (+) and
    12 (T3.D1 <= to_date('2002/04/04','yyyy/mm/dd') or T4.D1 <= to_date('2002/04/04','yyyy/mm/dd'))
    13 )
    14 ;
    no rows selected
    This SQL produces no data as BOTH dates in t3 (Activity) and t4 (Results) have no matches since all D1 are set to today. Even though there is an outter join the whole [ ( date match t3 OR date match t4 ) ] fails so no records (or cases) get produced).
    The below Case #2 I changed the columns selected to a COUNT since this query would produce too much data to make of any sence in there. Besides, and I hope you oracle folks read this, the FONT makes any kind of query output impossible read. Ahhhhh I'm making something better at the moment for the public anyway.
    SQL> select DISTINCT
    2 count(t1.c1),count(t2.c1),count(t3.c1),count(t4.c1)
    3 from t1,t2,t3,t4
    4 where
    5 (
    6 t1.C1 = t2.C1 and
    7 t2.c1 = t3.c1 (+) and
    8 t2.c1 = t4.c1 (+) and
    9 (T3.D1 <= to_date('2002/04/04','yyyy/mm/dd') or T4.D1 <= to_date('2002/04/04','yyyy/mm/dd'))
    10 )
    11 AND t1.c1 ='A' AND T1.N1 = 1;
    COUNT(T1.C1) COUNT(T2.C1) COUNT(T3.C1) COUNT(T4.C1)
    0 0 0 0
    So as you can see with BOTH dates not having any matches you get no data back at all even with the outer joins. So yes in this case it does not matter if your outer joinning or not, the whole date clause falied and since it id ANDed to the whole where clause , the whole where clause fails and you get no data.
    Case #2 (table t3 has a date match but non in t4) : Only change to SQL was change the DAY from 04 to 05 ;being today). Bascially you get ALL the data from t1,t2,t3 AND t4. The record entries in T4 still show up even though there are no matches and the data from t4 shows up, it is not null.
    SQL> select DISTINCT
    2 count(t1.c1),count(t2.c1),count(t3.c1),count(t4.c1)
    3 from t1,t2,t3,t4
    4 where
    5 (
    6 t1.C1 = t2.C1 and
    7 t2.c1 = t3.c1 (+) and
    8 t2.c1 = t4.c1 (+) and
    9 (T3.D1 <= to_date('2002/04/05','yyyy/mm/dd') or T4.D1 <= to_date('2002/04/04','yyyy/mm/dd'))
    10 )
    11 AND t1.c1 ='A' AND T1.N1 = 1;
    COUNT(T1.C1) COUNT(T2.C1) COUNT(T3.C1) COUNT(T4.C1)
    8 8 8 8
    And no I didn't just chage the count numbers to 8. Notice though you still get t4 matches since the ID join is true, even though the dates are not. If you only wanted T3 records out then you would have to split out the t3 date and the t4 date from that OR clause. The same results occur if T4 has date mathces and T3 does not. Same result if BOTH have matches in t3 and t4.
    Case #3 : both t3 and t4 have no matches on date (both are set to yesterday, same as case #1) but you will want the data returned. Since the ID exists in both t3 and t4, but the dates do not, by adding another OR clause your OUTER joins will work ...
    SQL> select DISTINCT
    2 count(t1.c1),count(t2.c1),count(t3.c1),count(t4.c1)
    3 from t1,t2,t3,t4
    4 where
    5 (
    6 t1.C1 = t2.C1 and
    7 t2.c1 = t3.c1 (+) and
    8 t2.c1 = t4.c1 (+) and
    9 (T3.D1 <= to_date('2002/04/04','yyyy/mm/dd') or T4.D1 <= to_date('2002/04/04','yyyy/mm/dd'))
    10 )
    11 OR
    12 (
    13 t1.C1 = t2.C1 and
    14 t2.c1 = t3.c1 (+) and
    15 t2.c1 = t4.c1 (+)
    16 )
    17 AND t1.c1 ='A' AND T1.N1 = 1;
    COUNT(T1.C1) COUNT(T2.C1) COUNT(T3.C1) COUNT(T4.C1)
    8 8 8 8
    You can try this your self if you like, but overall if any part of and AND clause failes, no matter if part of it had 100 OR clauses in one set of brackets, it all fails, even if you have outer joins.
    Have a kick butt weekend and good luck with your sql, email if you need anything :)
    Tyler
    [email protected]

  • Quick C preprocessor format question

    Really 2 questions. I want to use the same macro name to generate a list of fields, a list of method declarations and the code for the needed methods. What I am not sure about is (1) how to enclose a parameter to the macro so it will appear in a string in one definition, and (2) as part of a concatenated method name.
    My example#define name(par1,par2) -(void)par1:(int)par2;
    name(Name,myPoint)Gives me:-(void)Name:myPoint;No problem. Simple.
    For (1) will:#define name(par1,par2) NSString par1 = @"par2";
    name(myName,myPoint)give meNSString myName = @"myPoint";
    or
    NSString Name = @"par2";
    From my understanding I think that will do what I want and give me @"myPoint".
    For (2) What I want is:#define name(par1,par2) -(void)makeSome'par1:(int)par2;
    name(Name,myPoint)and get
    -(void)makeSomeName:(int)myPoint;
    I haven't been defining macros in C for a long long time, and I know this is possible, just not what syntax to use to make it work. I used the quote character to show concatenation, which some other macro processors I have used use. Someone with experience here, point me to a reference on C preprocessor macros formatting would be good.
    A correct example on how to define the 2nd macro would also help
    There's really not much in my K&R C Programming language, circa 1978 2nd printing...

    There's a section on the preprocessor in the book Beginning Mac OS X Programming by Wrox, but it's all based around C, not Objective-C like the code in your examples, so I don't know if that would be helpful to you or not.
    I'm not a very experienced programmer, so I was hesitant to even reply, and I'll warn you now that I don't think this post will be of any help to you, but since you haven't gotten any other replies yet, I figured I'd try. Hopefully someone else around here will come along and actually help you.
    Anyways, let's say you had two functions defined in your program -- their declarations are:
    void PrintAddresses( );
    void PrintPhoneNumbers( );
    you could ideally use a macro as a way of calling the desired function. In C, the basic syntax for writing a macro like the one you wrote often uses the ternary operator. I don't know enough about Objective-C to know how that would fit in, but in C it would be simple enough:
    #define Macro(param1, param2) (condition ? PrintAddresses : PrintPhoneNumbers)
    the condition could be anything (param1 > param2 for example). Then, later, if you need to choose a method name based on the criteria passed to the macro, you would pass the appropriate arguments to the macro to get the ternary operator to return the desired value. The function call would be something like this:
    Macro(arg1, arg2)( );
    The compiler never sees the preprocessor directives. The preprocessor simply runs over your code before the compiler gets to it, replacing any macros with the values specified for them. So, if the arguments passed to the macro resulted in the condition in the ternary operator in the #define directive to be true, then the words "Macro(arg1, arg2)" would be replaced with "PrintAddresses" and your function call would now look like "PrintAddresses( );" and thus the function PrintAddresses( ) would be called. If the arguments passed to the macro resulted in the condition being false, then the words "Macro(arg1, arg2)" would be replaced with "PrintPhoneNumbers" and your function call would now look like "PrintPhoneNumbers( );" and thus the function PrintPhoneNumbers( ) would be called.
    Note that if you take out the word "Print" from the macro values and try to define the macro like this:
    #define Macro(param1, param2) (condition ? Addresses : PhoneNumbers)
    and call the function like this:
    PrintMacro(arg1,arg2)();
    it will not work like this (or at least I could not get it to work like this) -- I don't know why.
    Anyways, you probably already knew everything I just wrote, in which case maybe it can help someone else down the line searching through this thread. Or maybe I should just stick to asking questions on this forum. Anyways, hope the post wasn't a complete waste of time. Best of luck in solving your problem.
    Message was edited by: Tron55555

  • Quick and easy battery question

    I just got my iPhone yesterday and let it charge fully overnight. But my question is: if the battery is about half-full, is there any harm done in charging it fully from this state? Or do I need to let it die down fully/give me the low battery warning before charging it? And I know that I should do a full charge/discharge cycle once a month or so.
    Thank you for your help!
    Jay

    You can charge whenever you want, it has a Lithium Ion Battery that can be charged at any time without and harm done. It is good too let iPhone die every so often and then fully recharge.

Maybe you are looking for

  • Photoshop Elements 11 Editor has stopped working message

    Installed PSE 11. OS is Win 7.  Worked ok a short time then got message "PSE 11 stopped working".  I try to open file from Orginizer into Expert Editor and only get a blank screen now.  Tried all three ways of opening into Editor.  (Works ok in PSE 9

  • Future Mac owner seeking advice

    Hi! So I've been using a PC my whole life. Odds are with the new laptops I'm making the switch to try out the Apple brand. I've looked at the "Designing Airport Networks" pdf and just wanted to confirm I read it right and my idea for a home network w

  • Contact sorting and nicknames

    I am one of those people who has a well organized Address Book so if need be I can print out nice formal address slips or when needed I have all my friends listed by their nicknames. Am I not finding the right settings page or isn't it possible at al

  • Updating iPad from iOS 4.3.2 to current OS

    I have a set of ipad 2's for educational purposes. They haven't been updated in ages and are currently running iOS 4.3.2 (capacity says 29 GB with 28.7 available). I'm trying to update iOS, which requires connection to a computer. I'm using the iMac

  • Reporting Functionalities

    Hi all,             Iam working on 7BI reporting and i want to know which patches need to be updated to see each and every functionality in reporting.For example: am not able to see variable types and their processing types and drill down and drill a