Recent content by coalquay404

  1. C

    C/++/# Jumping straight into C++ without programming knowledge

    I'm asking how you handle creation of objects at runtime without using pointers.
  2. C

    C/++/# Jumping straight into C++ without programming knowledge

    Just out of interest, what do you do when you need to allocate an object on the heap?
  3. C

    Java Java noob - help setting up eclipse

    Your code compiles and runs fine here. My guess is that when you made your new project in Eclipse, you probably selected the wrong project type. Typically, you'll want to use New Project -> Java Project, *not* any others since this may introduce dependencies that you haven't satisfied. By the...
  4. C

    Python Python, scientific computing, and supercomputers

    Unless you give specific examples, discussions such as this are pointless. Python will be fine for lots of use cases; for others it will be utterly horrible. A case in point is the sort of code that one is likely to put on hardware that qualifies as a supercomputer. Python is *horrible* at...
  5. C

    Graduate Studies in the UK

    It's very, very common not to be funded by your university when doing graduate studies in the UK. Most UK residents seek funding from EPSRC directly or enter a programme for which funding has already been secured from a body external to the university. Some universities, however, are wealthy...
  6. C

    Evaluating high-degree polynomials

    First off, that file isn't from the Mathworks; it's a user submission to the Matlab File Exchange. As you've learned, anything you get from there should be treated with suspicion until it's known to be good. You're also correct that this is a precision issue. The first few terms in the...
  7. C

    MATLAB Matlab help! User defined function!

    Works fine for me. What is the precise command that you're using to test the function?
  8. C

    Automatic pattern recognition and data modeling

    A computer can't do that for precisely the same reason that a human can't: it's impossible to unambiguously identify that as evidence of a linear relationship unless you supply more information to constrain the model selection. In fact, if you try to fit functions to that particular set of data...
  9. C

    Schools King's College London Maths/physics presitge

    Congratulations on the offer. King's is a very, very good university and their mathematics department is particularly good. In my opinion they're clearly in the top five in the UK in terms of their undergraduate mathematics and physics degrees.
  10. C

    Parsing HTML and Searching Text

    It's a pity you're not using Python. This is something that could be solved trivially using a combination of Python, regular expressions, and Beautiful Soup.
  11. C

    What is the Security Clearance in the UK?

    You'll typically be dealing with either SC or DV clearance in the United Kingdom. You don't apply for clearance; your prospective employer applies to the government - typically to either the Foreign Office, the Met, or the DBS NSV - on your behalf. Some positions require clearance directly from...
  12. C

    C/++/# C++ is crazy difficult.

    Such as? There are several reasons why references are a good idea. Here's two off the top of my head: For safety reasons, when using pointers you need to be obsessive about checking for nulls; references are guaranteed to always be non-null. References give you a straightforward way of...
  13. C

    C/++/# C++ is crazy difficult.

    Here's a strange pointer-related "feature" of C++. Suppose we define a five-element array of ints, a, to store the integers from 0 to 4. Everyone knows that the following prints '4' to stdout: std::cout << a[4] << std::endl; If you want to mess with someone's head, the same result can be...
  14. C

    C/++/# C++ is crazy difficult.

    This has always mystified me since Java has pointers too: Java references are, in fact, just pointers. In my experience there are a couple of things in particular that seem to blow Java programmers minds when they come to programming in C++: the lack of a garbage collector and the...
  15. C

    MATLAB Time Sync MATLAB

    One data set is measured over the time interval [3400, 8200] whereas the other is over the interval [38000, 38600]. Why would you expect them to be synchronized?
Top