Forum: PHP Aug 9th, 2009 |
| Replies: 12 Views: 469 what is it"not doing"?
Did you check the error log? What error do you get? |
Forum: PHP Aug 9th, 2009 |
| Replies: 2 Views: 333 Thanks dfor the reply.
I tried just creating a constructor, but I get "missing" argument errors. I tried by replicating the original in my new sub class and just adding the new arg and variable to... |
Forum: PHP Aug 8th, 2009 |
| Replies: 2 Views: 333 I have searched the web, the PHP manual and checked some reference books,
but I can find any satisfactory answer to my question.
Perhaps It my poor grasp of the constructor concept and it's proper... |
Forum: C Feb 12th, 2009 |
| Replies: 4 Views: 1,514 It's an IDE...not a compiler. you can use whatever compiler yo want with it.
I happen to use g++ (gcc but for c++) |
Forum: JavaScript / DHTML / AJAX Aug 9th, 2008 |
| Replies: 6 Views: 2,787 Thanks SOS!
Your link answered another question I had about "hover" as as well . I thought that it could be defined somewhere, but I could not figure out how. I was trying to use another function... |
Forum: JavaScript / DHTML / AJAX Aug 9th, 2008 |
| Replies: 6 Views: 2,787 My question was why can I call this function with a tag but not with CSS? i THOUGHT that CSS was supposed to be a "one stop shopping" way to manipulate the look and feel of HTML tag functions.
If... |
Forum: JavaScript / DHTML / AJAX Aug 9th, 2008 |
| Replies: 6 Views: 2,787 Hello all,
I got involved with a Joomla CSS project, but I know very little about the properties of CSS.
I have found out the hard way, that it works by it's own rules which may or may not... |
Forum: C++ Mar 30th, 2008 |
| Replies: 16 Views: 3,585 No, actually what he has is better form.
"Using namespace" is quick time saving tool
that brings the entire std library into scope.
It's OK for assignments, unless the instructor says otherwise.
... |
Forum: C++ Feb 24th, 2008 |
| Replies: 19 Views: 3,365 Try a GENERIC linux build. It should work fine.
I have Fedora, so I can use the RPMs, which are easy.
I think Ubuntu was built on debian? They may have some kind of package system as well.... |
Forum: C++ Feb 24th, 2008 |
| Replies: 19 Views: 3,365 That's the ORIGINAL codeblocks. To get the latest and greatest, you need to acquire a "nightly build" for your OS. The Linux builds tend to lag behind the windows builds a bit, but maybe just a... |
Forum: C++ Feb 23rd, 2008 |
| Replies: 19 Views: 3,365 code::blocks is a good IDE
If you just want to compile a program
use the g++ compiler
on the command line:
g++ myprog.cpp -o myprog
this will compile myprog.cpp source into myprog executable.
... |
Forum: C++ Feb 23rd, 2008 |
| Replies: 15 Views: 995 Rube Goldberg is alive and well in the C++ forum... |
Forum: C++ Feb 18th, 2008 |
| Replies: 8 Views: 2,296 |
Forum: C++ Feb 18th, 2008 |
| Replies: 7 Views: 824 Integrated Development Environment.
Crimson editor is an IDE, but Codeblocks is a much better one, IMHO.
I use it with the g++ compiler which is much superior to that Borland antique.
This is... |
Forum: C++ Feb 18th, 2008 |
| Replies: 5 Views: 1,519 Seems to me that you answered your own question with the above.
That IS the overload method.
As they say: "It is what it is."
You looked it up, NOW YOU KNOW... |
Forum: C++ Feb 17th, 2008 |
| Replies: 17 Views: 1,493 As an earlier inquiry, I was wondering where the savings variable is defined on this one.
Is it part of the Account class?
Account Account::operator+(const Account &right)
{
Account... |
Forum: C++ Feb 17th, 2008 |
| Replies: 12 Views: 2,866 ...but how do REALLY feel about the guy? ;-)
The diamond could be as simple as a sqaure on its side.
what does he mean by lemgth? inches? cm? pixels?
the most basic diamond is:
*
... |
Forum: C++ Feb 16th, 2008 |
| Replies: 6 Views: 3,318 if((month==2) && (day>=1 || day<=28 || 29)
This snippet above might be problematic as well. Why not just make it <=29 and call it a day? Otherwise you will have to test for a leap year. |
Forum: C++ Feb 12th, 2008 |
| Replies: 15 Views: 7,151 Line 20 is still going fail. what is the input is 10cm?
The whole casting thing is generally frowned upon in the programming community because it defeats the purpose of C++ strong typing.
There... |
Forum: C++ Feb 12th, 2008 |
| Replies: 15 Views: 7,151 That's the ANSWER. The calcualation must be done in doubles.
your first situation is setting an integer equal to a double for yards.
It's undefined from get-go.
Also you will get a double in the... |
Forum: C++ Feb 11th, 2008 |
| Replies: 10 Views: 2,480 why not define numerset as a float?
it will take an integer too. |
Forum: C++ Feb 11th, 2008 |
| Replies: 21 Views: 7,761 did you get it do anything yet?
I took a quick look at a data sheet for a microcontroller like what you are using. You need to do the same!
As i suspected, those addresses are registers within... |
Forum: C++ Feb 10th, 2008 |
| Replies: 74 Views: 13,428 I am very familiar with texual math and how to add polly's.( you might want to check out one of MY earlier posts where I added them) My confusion is how this is something that a C++ can deal with.... |
Forum: C++ Feb 10th, 2008 |
| Replies: 74 Views: 13,428 Sorry if I missed something. Ok, but how does he add mixed types? Each term is a mixed type in it's own right, unless x is set =1 , but the ^ isn't a valid math operator in C++ unless he overloaded... |
Forum: C++ Feb 10th, 2008 |
| Replies: 74 Views: 13,428 Unless there is some code elsewhere, i see no way to differentiate one exponent from another. The boolian expression as written only evaluates at an ascii level. It knows nothing about powers of x.... |
Forum: C++ Feb 10th, 2008 |
| Replies: 74 Views: 13,428 Yup, you've got some issues there.
the answer, of coarse, SHOULD BE:
8x^2+6x+10.
Your function probably doesn't now how to do math in that form. THAT's the trick!
Why don't you just strip off the... |
Forum: C++ Feb 10th, 2008 |
| Replies: 74 Views: 13,428 I'm coming in late here, but I have a question.
If you are adding poly's with the same three terms,
how do you end up with 9 terms?
wouldn't you have the same three, but just more or less of... |
Forum: C++ Feb 8th, 2008 |
| Replies: 4 Views: 1,455 I would put the variables in their own parenthesis's.
(x1-x2) .
This looks like it might be some asymptotic equation. So the question is if the difference will EVER be less than that value.... |
Forum: C++ Feb 8th, 2008 |
| Replies: 5 Views: 1,419 You would have to have some server on the web to report the current IP to, or leave it online all the time. Why not just get a DSL? Those are dynamic also, but don't change that much unless you reset... |
Forum: C++ Feb 8th, 2008 |
| Replies: 5 Views: 1,476 Did you look to see if it exists and what path it has? |
Forum: C++ Feb 8th, 2008 |
| Replies: 3 Views: 813 ...and the address where we should send the completed assignment!
I live only to enhance your available"party time". |
Forum: C++ Feb 7th, 2008 |
| Replies: 5 Views: 1,419 Are you directly connected ? No router or gateway?
I used to have a Dlink router that used a free DDns
server at Dlink. The router would report the new address to the server, so it always pointed... |
Forum: C++ Feb 7th, 2008 |
| Replies: 1 Views: 3,681 It's telling you that it can't find the the first file.
You probably need to enter the path in the IDE
Second, it saved details of the build attempt in the path specified. |
Forum: C++ Feb 6th, 2008 |
| Replies: 21 Views: 7,761 here is a snippet form the header
/* BIT Registers */
/* TCON */
sbit IT0 = 0x88;
sbit IE0 = 0x89;
sbit IT1 = 0x8A;
sbit IE1 = 0x8B;
sbit TR0 = 0x8C;
sbit TF0 = 0x8D; |
Forum: C++ Feb 6th, 2008 |
| Replies: 21 Views: 7,761 Did you verify that this code above does do the job?
For instance, according to that header file those are bit registers that are SET or UNSET to perform some task.
I believe to need to be sending... |
Forum: C++ Feb 6th, 2008 |
| Replies: 21 Views: 7,761 How are you interfacing with the motor?
Are you using a computer port, pci card, or a special built micro controller?
If you are sure about motor drive side of things, then test the output from... |
Forum: C++ Feb 5th, 2008 |
| Replies: 21 Views: 7,761 you should be able to simulate the computer input "manually" to verify it's functioning before frustrating yourself by chasing a phantom.
That's troubleshooting 101. Keep cutting the problem in... |
Forum: C++ Feb 5th, 2008 |
| Replies: 4 Views: 3,197 take a look at the <math> library
pow can be used to square the numbers.
Define Pi as a global , then just use the variable.
The area function returnd a float, so it's NOT void,but :
float... |
Forum: C++ Feb 3rd, 2008 |
| Replies: 48 Views: 5,418 Also try putting the sum of the matrices in parenthesis in he argument. That may keep away the confusion. Then it is seen as one item. |
Forum: C++ Feb 3rd, 2008 |
| Replies: 48 Views: 5,418 That's the C stuff. I don't know too much about it,but you may be asking it to do something it knows nothing about. That may be one of those scenarios where function overloading is needed.
Don't go... |