jjl's Profile User Rating: *****

Reputation: 1046 Grandmaster
Active Posts:
4,449 (2.51 per day)
09-June 09
Profile Views:
Last Active:
User is offline Today, 01:36 AM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Favorite Gaming Platform:
Your Car:
Dream Kudos:

Latest Visitors

Icon   jjl meow

Posts I've Made

  1. In Topic: Change Calculator with Breakdown of the Change

    Posted 15 Apr 2014

    You have floating point variable which contains the total change. You need to find a way to break down that change into a sum of different quantities (500, 200, 100, ... .25, etc...).

    Forget the program for a second. And answer me this,

    If I gave you a check for $1020, and said go to the bank and give me the cash in the largest bills possible, how would you determine how many $100 dollar bills to give me? How many $50 dollar bills? How many $20 dollar bills?

    What math operation did you do in your head to figure this out?
  2. In Topic: Ever tried to build your own PC(CPU) from scratch

    Posted 15 Apr 2014

    Its actually pretty simple to implement a CPU onto an FPGA. You just develop all the components separately (program counter, ALU, memory, control unit, etc..) in VHDL (or Verilog), then you just hook it all together and pray it works.
  3. In Topic: dynamic memory allocation help

    Posted 15 Apr 2014


    you are also using a "Reference operator" & in your functions declaration for size, shouldn't be needed.

    You must pass pointers by reference (or pass a double pointer) if you plan on changing where the pointer points, therefore the & is necessary. Remember, pointers are passed by value.


    Do some searching around on google to get a better idea on how dynamic memory works and what reference operators are actually needed.

    I recommend taking your own advice :)

    One major problem I see is that you never initialize your size variable. Be sure you initialize it to zero at the start of your program.
  4. In Topic: Returning two numbers of a function in c.

    Posted 14 Apr 2014

    If for some reason you can't pass a pointer as an argument, you could use bitwise operators to encapsulate both return values into a single integer.
  5. In Topic: Ever tried to build your own PC(CPU) from scratch

    Posted 13 Apr 2014

    No, that sounds awful.

    However, I once wrote my own soft core CPU on an FPGA. Then wrote the game snake in the assembly interpreted by the soft core CPU

My Information

Member Title:
24 years old
January 9, 1990
Years Programming:
Programming Languages:
C/C++, Java, MIPS assembly, VHDL, AVR C

Contact Information

Website URL:
Website URL  http://


  • (2 Pages)
  • +
  • 1
  • 2
  1. Photo

    tarmizi_adam2005 Icon

    05 Feb 2014 - 07:11
    999 reps, that's a nice number jjl !
  2. Photo

    CODER IT Icon

    04 Dec 2013 - 00:54
    HI . may i ask something ? please do message me .We are assign to do a thesis and were going to choose 1 out of this 3 systems .
    -- Pharmacy Automation System
    -- Online voting system
    -- Internet Cafe System
    but the problem is , we doesnt know how to make programs in making this systems.
  3. Photo

    thekooiman Icon

    27 Mar 2013 - 18:08
    Thank you for all the help and insightful explanations!
  4. Photo

    osu1 Icon

    04 Mar 2013 - 17:26
    thank you for your help!
  5. Photo

    Xupicor Icon

    23 Nov 2012 - 02:08
    666 rep, you are now officially hell of an expert. ;)
  6. Photo

    Tom_Leonardsson Icon

    26 Apr 2012 - 01:19
    http://www.dreamincode.net/forums/topic/276888-sdl-problem-the-bmp-enemy-wont-show/page__p__1609097__fromsearch__1&#entry1609097 help...please!
  7. Photo

    Dogstopper Icon

    01 Jan 2011 - 21:18
    Sorry about the accidental downrep!
  8. Photo

    Atty Icon

    03 Dec 2010 - 09:17
    Hi there.. I saw one of your posts regarding Opengl On PictureBox Toolbox In Visual Studio 2008.Net, can you help me on how should I do it?
  9. Photo

    skyhawk133 Icon

    24 May 2010 - 09:54
    Congrats on your promotion to Expert!
  10. Photo

    teetaaa222 Icon

    01 May 2010 - 09:10
    hi i want to ask u a question please
  11. Photo

    sweetcuty Icon

    28 Apr 2010 - 08:57
    hi ..i have send code of knapsack problem by dynamic programming approach..plz help to find out the memory used by this program..
  12. Photo

    esu20032001 Icon

    19 Apr 2010 - 04:03
    I need help please help me in changing this code to C language
    int balance;
    cout << "Balance : " << setw(15)<< setprecision(2)<< setiosflags(ios::left)<< setiosflags(ios::showpoint)<< setiosflags(ios::fixed)<<balance;
    pls send it to me esu20032001@gmail.com as soon as possible
  13. Photo

    reem alflaa Icon

    14 Apr 2010 - 00:16
    pleas help me for program
  14. Photo

    pari-pari Icon

    11 Apr 2010 - 19:03
    can i ask u something??
    i've learned in my c programming class,
    but i still don't understand,
    what is the meaning by this statement :
    thank you..
  15. Photo

    najlala Icon

    09 Apr 2010 - 00:36
    ive post something and i need ur help mind checking whats my mistake?
  • (2 Pages)
  • +
  • 1
  • 2