- Strength to Increase Rep
- +11
- Strength to Decrease Rep
- -2
- Upvotes Received
- 202
- Posts with Upvotes
- 177
- Upvoting Members
- 108
- Downvotes Received
- 25
- Posts with Downvotes
- 22
- Downvoting Members
- 18
Hi I'm Phillip, I'm currently a student, who specialises in Signal Processing / Speech Analysis and Recognition. You can find me coding C++, PHP and Matlab really.
- Interests
- PHP/C#/C++/MatLab/jQuery/
Re: This is always a good project (http://en.wikipedia.org/wiki/P_%3D_NP_problem) .... Joke. @dean makes some valid points ;D | |
Re: >> university they would briefly cover each of these fields. This totally depends on the University and/or the choice of course you study. Most are programming based (in the UK) but it's very unlikly (unless you study a Games related course) that they will cover "Graphics Porgramming" however, Web Developer … | |
| |
I'm having the following difficultly: I have a table `rates` which contains the follow: -> id -> rate_from -> rate_to -> price A `user` can have many rates, and for an example: between 0 - 10 hours the `user` charges `10.00` an hour between 10 - 100 hours the `user` … | |
Re: huuhaa. Delete please | |
Re: Hello, some compilers (especially with C++) only allow this: #include <iostream> .... Could try taking the .h. Is there no way you cannot install GCC? | |
Hi all, I think I might have missed something, I have been away for sometime. I was visiting the site and noticed that I had access to area 51. But I don't seem to recall having any of the privileges mentioned in the description. Is this an error or has … | |
Re: Have you made sure that the file is being included? | |
Re: You have not declared the method prototype correctly in your class. static std::map<std::pair<u32, u32>, CreateSessInfo> m_mSessionId2CCRNum2DefaultBearerId; Shoudl be: static std::map<std::pair<u32, u32>, CreateSessInfo> m_mSessionId2CCRNum2DefaultBearerId() { // Logic here return map; } Then you can access it as: `Foo::m_mSessionId2CCRNum2DefaultBearerId();` Here, I did a similar example: http://ideone.com/NelSt9 no logic is there, but, I … | |
Re: Assuming that it is what I think you are doing: int** DATA = new int*[10]; // This has now got 10x0 This initialises a 2D array called `DATA` with 10 columns. You will need to therefore set the rows when you are iterating through the array. Each row `(0.....9)` will … | |
Re: Your problem does not seem like it is on line "4", more of the line above, below. You have not specified the error, what does the error say is the problem? | |
Re: You are kind of doing it wrong.. What you want to do, is create an Array of objects, the size of this array can then be determined at run-time.. Something like the following: #include <iostream> using namespace std; class Foo { public: static int count; Foo() { } Foo(int i) … | |
| Re: If you have a key pair value, then surely the best possible structure to use would be a hash table over a binary tree? Give some sample output of the file, please. |
Re: Well, this function: bool (LineSegment &ls) { int dist; ls.p1 = ls.p1 + dist; ls.p2 = ls.p2 + dist; } If you look at a method, in terms of some pseudocode: function [type] [name] (parameters) [ //... implementation return [typy] ] Therefore, you can think of it like this: bool … | |
Re: Hello, Ateficial intelligence is a broad scope, and does not just depend on the algorithms and software based solutions as you're pointint out. There are other aspects, in terms of Robotics which contains primarly a hardware approach to solving these tasks. Understanding robotics, for example, does not really depend on … | |
Re: Please define "Rubbish" in terms of what you actually get, please. | |
Re: Hey, what the problem is asking you is to count the total number of times an element exists inside an array. Assume the following: `A = [1, 2, 3, 4]` `B = [2, 1, 2, 4]` Then you can do the following: `AϵB` This is going to either give you … | |
| |
Re: Have you tried: $query="INSERT INTO users ('firstname', 'lastname', 'username', 'confirmusername', 'password', 'confirmpassword', 'email' ,'confirmemail') VALUES ('$firstname', '$lastname', '$username', '$password', '$confirmpassword', '$email' , '$confirmemail')"; ? | |
Re: Please do not create a new topic with the same question; this can be classed as spam and your question will be deleted. What you are doing here is using the same array, which, in tern most likely segment and thus time out. Try, something like the following: for(int n … | |
Re: What do you mean by "Tune", what it looks like you're doing is creating a sine wave at a particular frequency Htz. Where do you declae the sampling rate? If you're talking about creating a "tune" in terms of a synthesizer then this is a lot more complex and you … | |
Re: First off, your question is quite confusing. I can't gather what it is what you're trying to do, let me try with a different example, see if it makes sense to what I think they are wanting you to do. Let's assume that you have a Person, each person therefore, … | |
Re: What the hell is this: // new averaging system float pp; float x; float xx; float xxx; float xxxx; float xxxxx; float xxxxxx; float xxxxxxx; float xxxxxxxx; float xxxxxxxxx; float xxxxxxxxxx; float xxxxxxxxxxx; float xxxxxxxxxxxx; float xxxxxxxxxxxxx; float xxxxxxxxxxxxxx; float xxxxxxxxxxxxxxx; float xxxxxxxxxxxxxxxx; float xxxxxxxxxxxxxxxxx; float xxxxxxxxxxxxxxxxxx; float xxxxxxxxxxxxxxxxxxx; float … | |
Re: What is the question? Your conditional statement is wrong. Look on line 15, why would you need `;`? | |
Re: Because not many people have access to this library, please could you specify some expected input and outputs? Also, what is the data type of `MInput`? | |
Re: I'm sure I've seen someone else ask this question on here, I might be wrong! Please show that you have at least tried :P | |
Re: Try this: $add=mysql_query("INSERT INTO contact VALUES ('','$salutation','$fname','$lname','$houseone','$housetwo','$housethree',$tel','$off')") or die(mysql_error()); | |
Re: I should have really done some work today, instead I stare looking at work that could have been done. | |
Re: You have just copied the code from somewhere in a hope that it will work? This is a very bad way to solve a problem, and, this has obviously been shown here. From what I can see, skim reading of the code, you seem to have a mixture of C … | |
Re: I believe, from what I can see is that the validation requires a `.` followed by between two or three characters `(\.[a-z]{2,3})` so email addresses like: `test1@gmail.com` would valid true, whereas email addresses containing a `.` with only one character, would throw up an error. There are some pre-built functions: … |