Thread: C programming - pls pls help me

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    5

    Smile C programming - pls pls help me

    help me please my boy friend thinks im a 'dumb bird' and couldnt write in 'c' ok maybe he is write but will look like a fool!!! sum1 pls help b4 he gets home????
    Translate the following pseudocode into a working c programme?

    begin
    read port 0 and set its value to a varrible k:
    while k <0fh DO
    turn channel 8 on and off continuously
    write the value of k into port2
    end while;
    if channel2 is on and channel5 is off THEN
    Repeat;
    read channel 25 and writes its value in2 port 2;
    insert delay if necessary;
    while channel 0 is ON DO
    turn on and off alll even channels 1 from left to right
    insert delay if necessary;
    end while;
    untill channel 6 is on;
    else
    read channel 3 of a/d converter;
    if data read from a/d is less than 55h then exit;
    else
    print the message greater than 55h on the screen;
    end;

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Wow!! You date a lecturer????

    And anyway.....this would be fooling your "boyfriend" right??

    If he treats you like that you should dump him.....

  3. #3
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    Um... What OS is this for? What compiler are you using? Have you even tried? Did you really expect a full program?

  4. #4
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    Your friend is a showoff gloatbucket. Tell him to take his C and shove it up his ass. I don't know how to translate that because I don't know what you mean by port (printer port? tcp/ip port?) or channel (bbc? cnn?).
    Is that code BASIC?
    Last edited by Brian; 01-15-2002 at 10:27 AM.

  5. #5
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    It looks like code for the Electronic Toaster platform.

    #define BURNT "yukky and black"

    ...

    if(toast != BURNT)
    cook();
    else
    eject(toast);

    ...

  6. #6
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Hell....I know of lots of arguments in relationships, but a domestic over who can code in C????

    LOL!!!!!

    If he calls you a dumb bird again, cut up all his underwear and go to your mothers......that'll teach him
    Last edited by Fordy; 01-15-2002 at 10:30 AM.

  7. #7
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    First, you have a very very strange boyfriend. This pseudocode is quite straightforward, since you're not able to implement this in C I guess you don't know almost anything about C, do you?

  8. #8
    Registered User
    Join Date
    Dec 2001
    Posts
    421
    Fordy: that post cracked me up!!!
    Quidquid latine dictum sit, altum sonatur.
    Whatever is said in Latin sounds profound.

  9. #9
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    > help me please my boy friend thinks im a 'dumb bird' and
    > couldnt write in 'c' ok maybe he is write but will look like a
    > fool!!! sum1 pls help b4 he gets home????

    Maybe if you learned to type, read, spell, and use correct punctuation, he wouldn't think you were such a 'dumb bird'. At least try and be readable.

    Quzah.
    Hope is the first step on the road to disappointment.

  10. #10
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    i think she hasn't even replied yet.

  11. #11
    Registered User breed's Avatar
    Join Date
    Oct 2001
    Posts
    91
    Brian you must like burnt toast!


    >define BURNT "yukky and black"

    >...

    >if(toast != BURNT)
    then burn it


    I think that sally should start with the "HELLO" "WORLD" prog LOL

    Before you judge a man, walk a mile in his
    shoes. After that, who cares.. He's a mile away and you've got
    his shoes.
    ************William Connoly

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Basic port scanner code .. pls help ???
    By intruder in forum C Programming
    Replies: 18
    Last Post: 03-13-2003, 08:47 AM
  2. i dont know what to do. pls. help!!!!
    By Unregistered in forum C++ Programming
    Replies: 14
    Last Post: 03-14-2002, 03:24 PM
  3. help me pls..... :(
    By mocha_frap024 in forum C++ Programming
    Replies: 2
    Last Post: 02-22-2002, 10:46 AM
  4. pls help me!!
    By hanseler in forum C++ Programming
    Replies: 1
    Last Post: 12-05-2001, 08:46 PM
  5. Pls Help Me In This Question!!!
    By Joanna in forum Windows Programming
    Replies: 1
    Last Post: 10-20-2001, 02:05 PM