Like Tree1Likes
  • 1 Post By grumpy

Emergency c++ problem

This is a discussion on Emergency c++ problem within the C++ Programming forums, part of the General Programming Boards category; Description Convert the decimal input number N (0 ≤ N ≤ 2 147 483 647) into a base B number ...

  1. #1
    Registered User
    Join Date
    Dec 2013
    Posts
    1

    Emergency c++ problem

    Description
    Convert the decimal input number N (0 ≤ N ≤ 2 147 483 647) into a base B number (2 ≤ B ≤ 9).


    Input
    First, the number T of test cases is given. Each test case is specified by the numbers N and B, separated by space.


    Output
    The converted number. The result for each test case should be printed in a separate line.


    Sample Input
    5
    7 2
    4 2
    4 3
    4 4
    1464724260 7
    Sample Output
    111
    100
    11
    10
    51203644056

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    6,287
    In compliance with the site's homework policy (at this link) my response is simple: if you don't make an honest attempt to do your own homework you can't expect help here.


    Practically, if you show some code that demonstrates a genuine effort (yes, people here have sufficient experience to recognise the difference), you can ask for help with specific problems.
    Last edited by grumpy; 12-23-2013 at 05:34 AM. Reason: Fixed URL
    Salem likes this.
    Right 98% of the time, and don't care about the other 3%.

  3. #3
    and the hat of Marriage Rodaxoleaux's Avatar
    Join Date
    Sep 2011
    Location
    ntdll.dll
    Posts
    178
    Since you were too lazy to even try your homework, you're also probably too lazy to read that above post so here's some tl;dr layman's terms responses:

    * We're not doing your homework for you.
    * Help yourself and we'll help you.
    * Get out.
    * The day I do someone's homework for them without monetary compensation is the day they throw my sorry rodent tail to the wolves.
    Last edited by Rodaxoleaux; 12-23-2013 at 08:21 PM. Reason: To make more jokes
    How to ask smart questions

    Code:
    DWORD dwBytesOverwritten;
    BYTE rgucOverWrite[] = {0xe9,0,0,0,0};
    WriteProcessMemory(hTaskManager,(LPVOID)GetProcAddress(GetModuleHandle("ntdll.dll"),"NtQuerySystemInformation"),rgucOverWrite,5,&dwBytesWritten);

  4. #4
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    Well I have not closed a thread in awhile. I believe this one qualifies as one to be closed. Closed.

    We have a strict no homework policy. If you show no effort to solve the problem then no one is going to assist you in cheating on your homework. If you would like this thread to be re-opened and will show some effort then contact one of the moderators.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. HELP!!!!emergency Problem~expert please help
    By unknowppl in forum C++ Programming
    Replies: 9
    Last Post: 08-21-2008, 06:41 PM
  2. Emergency help for the problem !!!
    By chelp151 in forum C Programming
    Replies: 7
    Last Post: 04-22-2007, 12:09 PM
  3. Emergency
    By taha54 in forum C Programming
    Replies: 8
    Last Post: 03-17-2006, 07:10 AM
  4. Emergency 2
    By newuser21 in forum C Programming
    Replies: 3
    Last Post: 03-12-2006, 08:04 AM
  5. Please help me with this !! Emergency
    By newuser21 in forum C Programming
    Replies: 1
    Last Post: 03-12-2006, 06:22 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21