Jump to content

Ximalas

Member
  • Posts

    5
  • Joined

  • Last visited

Awards

This user doesn't have any awards

Profile Information

  • Gender
    Male
  • Location
    Norway
  • Interests
    Computing, networking, programming (C, C++, Un*x shell, Python, Erlang, C#), music, astronomy, science fiction, free software, open source, Un*x, *BSD (mostly FreeBSD), ZFS
  • Biography
    U.S. born dude with dual citizenships living in Norway
  • Occupation
    System administrator

Ximalas's Achievements

  1. I received some LTT apparel this evening. I'll try to be a good ambassador while wearing this stuff.

  2. My bad. I forgot to check the date.
  3. Yes and no, but mostly no. The variable M is declared at the beginning of a new block. C has allowed this for a long time. C++ allows variables to be declared when needed, and in fact encourages this style. The variable M is only needed within the scope of the while loop.
  4. When you find what your looking for, you never set found to true. M should be changed to: int M = (L + R) / 2; Next, your last else should really be: else if (val > array[M])
  5. Maybe I'm just "oldskool", but I suggest you start learning the basics of any system programming language: variables, constants, conditionals (if and else), loops, functions/procedures/methods, and aggregate datatypes (struct/record/class). I fear diving into pure event driven programming (languages) will hide vital knowledge any programmer should know.
  6. In fact, this header file in its current state doesn't need to include any header files at all.
  7. Just keep at it, Aphexis. You are doing great as far as I can tell. Sadly, I have lost my old habits of rising early in the morning, 5:30 am, even in the weekends, walking to work using an excessive long route lasting close to one hour since I live only a ten minutes walk away from work, then do another long walk after work, and going early to bed, 9:30 pm-ish. It's time to return to those healthy habits. The rest of the community should wish both Aphexis and myself good luck.
×