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

Reputation: 1168 Grandmaster
Group:
Expert
Active Posts:
4,800 (1.91 per day)
Joined:
09-June 09
Profile Views:
32,507
Last Active:
User is offline Mar 15 2016 05:25 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Mac
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
XBox
Your Car:
Toyota
Dream Kudos:
500

Latest Visitors

Icon   jjl meow

Posts I've Made

  1. In Topic: Pointers - I don't get them

    Posted 24 Feb 2016

    Everything in Java is essentially a pointer (reference), except for the primitive types. This makes it easy for Java to do all the pointer work behind the scenes.
  2. In Topic: Exception handling - how to catch a stack overflow?

    Posted 22 Feb 2016

    A stack overflow will usually cause a seg-fault and will crash without throwing an exception.
  3. In Topic: Can a char type be used like an array of bits?

    Posted 18 Feb 2016

    Typical way of extracting bits is the following. You AND the data with a 1 left shifted by the desired bit position.

    uint8_t data = 0x5;
    
    int bit0 = data & (1 << 0);
    int bit1 = data & (1 << 1);
    int bit2 = data & (1 << 2);
    int bit3 = data & (1 << 3); 
    //etc...
    
    
  4. In Topic: break out of for loop early?

    Posted 10 Feb 2016

    Typically, you would put the break declaration in the for loop conditional.

    
    bool leave = false;
    for (int i = 0; !file.eof() && !leave; i++)
    {
    	file >> programmers[i] >> LoCode[i] >> LoComment[i];
    	leave = compute(programmers, LoCode, LoComment, ++size);
    }
    file.close();
    
    
  5. In Topic: Counting Matching Elements in a Large Array - result is too large!

    Posted 9 Feb 2016

    Your code current counts the number of duplicates for every number in the array. You should create a frequency table to count the frequency of the elements in the array.

    i.e.
    int arr[5] = {1, 2, 1, 4, 6};
    int frequency[6]; // Make this the size of the max possible number in arr
    
    frequency[arr[0]]++;
    frequency[arr[1]]++;
    frequency[arr[2]]++;
    //etc...
    
    
    

My Information

Member Title:
Engineer
Age:
26 years old
Birthday:
February 9, 1990
Gender:
Location:
California
Years Programming:
10
Programming Languages:
C/C++

Contact Information

E-mail:
Private
Website URL:
Website URL  http://

Comments

  • (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 [email protected] as soon as possible
  13. Photo

    reem alflaa Icon

    14 Apr 2010 - 00:16
    pleas help me for program
    [email protected]
  14. Photo

    pari-pari Icon

    11 Apr 2010 - 19:03
    hello..
    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 :
    1+(rand()%6);
    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