Thread: Guideline Needed!!

  1. #1
    whizzgal
    Guest

    Question Guideline Needed!!

    Hi.. i need help on how to start my programming assignment.

    Write a program that takes a character x and two integers n and p both less than 8 and their total must not be greater than 9. It should then replace n bits starting from position p in x with their one's complement - which is 1 to be replace by 0 and vice versa. The new character so formed should then be displayed as new x.

    Thanks..

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Well, start by posting what you've done so far, and telling us which bit you're having trouble with.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. free needed or not?
    By quantt in forum Linux Programming
    Replies: 3
    Last Post: 06-25-2009, 09:32 AM
  2. C Programmers needed for Direct Hire positions
    By canefan in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 09-24-2008, 11:55 AM
  3. C++ help needed
    By Enkindu in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 08-31-2004, 11:24 PM
  4. Help Needed With Windows GUI
    By edselman in forum Windows Programming
    Replies: 5
    Last Post: 08-22-2002, 09:38 PM