Search results

  1. nightcrawler

    Object oriented programming mindset

    The simplest way that helped me back when I had made the transition was to categories things into sets and subsets, group all the common tasks (starting from the simplest) into one group etc.. This helped a lot. Also try to visualise things around you like that. It is more to do with changing...
  2. nightcrawler

    c program problem

    Didn't have time to check the code in detail. But correct me if I am wrong here. Don't you think your code above is a bit faulty? As from the looks of it it will run through the loop cause the condition cannot be met. (what you need is either clause). Also you need to have control in place if...
  3. nightcrawler

    Help on C

    Hey Please specify your exact problem so we can help you out. I just brushed through your code (haven't checked it in detail) and assuming that it is syntactically correct, what is the exact problem that you are facing?
  4. nightcrawler

    find sum of prime numbers till 2 Million..

    Agree to this one. Also if what I think instead of looking for Ceil(i/2) you should look at sqrt(i). Will give you even lesser iterations. Hope this helps
  5. nightcrawler

    Help adding numbers in C++

    I am sure you have missed putting using namespace std; at the top of your code. See what Turbo C++ does for you? Add the above bit and your code should work just fine in eclipse. Remember that Eclipse is just an IDE (Integrated Development Environment). It will follow the syntax grammer of that...
  6. nightcrawler

    Help adding numbers in C++

    That is a cause of concern then. The education, especially the IT education in India sucks big time. No scope for creativity and thinking out of the box, I remember the time when some of us tried coding in different ways, the faculty used to give less marks (sometimes 0) simply because it was...
  7. nightcrawler

    Help adding numbers in C++

    Stop using Turbo C++. It uses all non standard function calls. Why are you using conio.h? Stop using it. It is non-standard library. Also don't use clrscr(). Again Same non-standard function. Also I would not recommend using getch(), again a non standard function. While you may ask as to why...
  8. nightcrawler

    C/C++ Beginner's Guide and Post Basic Questions here

    No not directly. They give you a problem and ask you for the output. If it is correct you have solved the puzzle. I believe once that is done you could access the forum to get the answer or something. Although not sure. Not been on projecteuler for last 2 years or so.
  9. nightcrawler

    C/C++ Beginner's Guide and Post Basic Questions here

    Check out the MinGW wiki for First Time Users and the HOWTO guide on their site. It should solve all your problems and queries easily. Unless you are having problems in compiling itself.
  10. nightcrawler

    School management System C++ Source Code

    Hey I have pmed the code link to you along with some instructions :)
  11. nightcrawler

    School management System C++ Source Code

    Hey sorry, been busy for past couple of days. I have worked on the code. Though I haven't changed the code logic at all (and it is faulty logic anyway). I will post the code tonight mostly. You will have to port it to Code::Blocks though that shouldn't be an issue considering all the calls are...
  12. nightcrawler

    School management System C++ Source Code

    I don't use code blocks. I use Visual Studio. Will try to fix up any C++ related errors and post it. (Though don't rely on me as I will do it based on the free time at my disposal). Hopefully that should help you in getting it done. You could make it compliant with Code::Blocks later. I will try...
  13. nightcrawler

    SimCity

    Lol. I was lucky I choose a lot with max oil and got it. Now it is a oil drilling town of New Elm. Though I have been slightly unlucky with respect to align space ships (2 times), zombie invasion and meteor strike all in space of the 2 hrs or so that I played
  14. nightcrawler

    SimCity

    Agree the game is awesome. The concept is good. They f****d up in the execution. When it works, it is fun to play. The problem is it hardly works properly. I missed out on the free game that they were giving away for the mess that they made. Hoping to get another one caused by another such mess...
  15. nightcrawler

    Euler problem no 8

    Assuming it a 1 byte char (not unicode etc) Replace prod = prod * series[j]; with prod = prod * (series[j] - 48);
  16. nightcrawler

    SimCity

    Guys could anyone please send an invite to their region, I haven't received it yet, I think I have added most of you on Origin and within Simcity as well. I am playing on Asia Server as well.
  17. nightcrawler

    Programming book

    If you want in-depth understanding of C++ and especially pointers n references then go to the origin. Look no further than Bjarne Stroustrup. Although it is slightly dry compared to the other books mentioned, once you properly learn C++, you will want to have a copy of this one.
  18. nightcrawler

    C/C++ Beginner's Guide and Post Basic Questions here

    I suggest you grab a good C/C++ book out there. Get a free C/C++ compiler and start coding on your own. That is how I learnt it. Although I am an Engineer, the Engineering syllabus or the teaching here in India is very poor. Most of the engineers out there (I am talking about Computer & IT) do...
  19. nightcrawler

    SimCity

    Hey Guys! I have added a few of you on Origin. Please accept my request and plz invite to any region that you may be playing in. My Origin handle is pranavdes Regards
  20. nightcrawler

    Will Java & .NET KILL C & C++?

    my question...can you write an OS in java or .net ? No. All OSes are written in C and to some extent C++. And as someone said. The VMs of Java and .Net have been written in C/C++. Drivers are written in C for efficency and the direct access they give to h/w. So C/C++ will never be replaced...
Top Bottom