Forum: Graphics and Multimedia 3 Days Ago |
| Replies: 4 Views: 267 heh heh, aside from that and actually staying on topic..heh heh!
I've never used after effects, so I couldn't comment on its functionality, but it's certainly possible to do an intro like that in... |
Forum: C++ 3 Days Ago |
| Replies: 7 Views: 184 Ah, hello again Narue.
Once more you've quite correctly corrected me on my half-witted absent-minded inaccuracy!
Oh yes, of course {memory kicking in..albeit slowly!} I forgot about... |
Forum: C++ 3 Days Ago |
| Replies: 7 Views: 184 OK, try this on for size, this uses references as parameters to the two functions..
#include <iostream>
using namespace std;
... |
Forum: C++ 3 Days Ago |
| Replies: 7 Views: 184 OK, well for starters you don't want a goto in makeEven, you want to return something....
Also in main you'd need to assign the value of x to the value returned by a call to makeEven(x).
That... |
Forum: C++ 10 Days Ago |
| Replies: 2 Views: 204 From looking at the code, it seems to me that if you run your debugger and step through the program you'll find that line 34 will fail to read anything from the input file.
The reason for this is... |
Forum: C++ 12 Days Ago |
| Replies: 7 Views: 223 |
Forum: C++ 12 Days Ago |
| Replies: 7 Views: 223 Oh I see you've HAD to implement your own queue class as a part of your assignment...sorry I thought you were just over complicating things for yourself.
In that case, to turn your class into a... |
Forum: C++ 12 Days Ago |
| Replies: 7 Views: 224 dkalita has already explained it to you...Try reading his post again!
The function 'fun' returns an int.
But it takes a pointer to a function as a parameter.
The function pointer must point to a... |
Forum: C++ 12 Days Ago |
| Replies: 7 Views: 223 It seems to me that you are over complicating things. Wouldn't it be a lot simpler to just use a double ended queue, otherwise known as a deque?
Modifying your code from one of your previous posts... |
Forum: C++ 12 Days Ago |
| Replies: 1 Views: 221 The thing that's confusing me is how you're getting a syntax error from a data-file!!
How are you running the program and passing the parameters? Are you running it from the command line? or from... |
Forum: C++ 13 Days Ago |
| Replies: 4 Views: 144 Yup, as suspected; logical AND is evaluated left to right, so if the 1st condition fails / is false, then the 2nd condition is ignored and the logical AND operation returns false. The 2nd condition... |
Forum: C++ 13 Days Ago |
| Replies: 4 Views: 144 If memory serves, if the left hand condition fails it won't bother evaluating the right hand one.
(depending on how the AND is evaluated...I think it gets evaluated left to right, so I'm pretty... |
Forum: C++ 13 Days Ago |
| Replies: 4 Views: 144 This would be the simplest way of doing it:
Point* MyPoint = Object->GetMyPoint();
if(MyPoint && MyPoint->GetValue() != 2)
do A;
else
do B;
Cheers for now, |
Forum: C++ 14 Days Ago |
| Replies: 9 Views: 286 You might want to take a look at this thread:
http://www.daniweb.com/forums/thread230230.html
The first few posts are irrelevant, but the later posts are probably more or less exactly what you're... |
Forum: C++ 14 Days Ago |
| Replies: 1 Views: 195 It's because the literal value (25.95) that you are passing into your call to the function VAR1 is automatically treated as a double, but your function takes a float as a parameter. So you're getting... |
Forum: C++ 14 Days Ago |
| Replies: 5 Views: 284 Aha,
I've just fired up one of my linux boxes, I've created a project in codeblocks using your files. I've made my suggested changes and and tried compiling... And there are still compiler errors.... |
Forum: C++ 14 Days Ago |
| Replies: 5 Views: 284 One thing that immediately strikes me is that you are using #pragma once, which as far as I am aware is a preprocessor command that is used solely by Microsoft compilers. So perhaps using traditional... |
Forum: Geeks' Lounge 16 Days Ago |
| Replies: 16 Views: 750 Seeing as I'm paying for 2Meg broadband, I think I'm being ripped off!
494kbps down
227 kbps up
Pretty slow! |
Forum: C++ 16 Days Ago |
| Replies: 11 Views: 332 No worries, glad to help!
So, problem solved??
Cheers for now,
Jas. |
Forum: Geeks' Lounge 17 Days Ago |
| Replies: 11 Views: 678 Being a filthy, foul, potty mouthed pirate, my life was rated Arrrrrrrrrrrrr!
Heh heh....Sorry, R!
I agree with the previous posters. That was a bit of a crap quiz! |
Forum: C++ 17 Days Ago |
| Replies: 11 Views: 332 Here's your original project back, I've included my edits in there.
See attached .zip.
Cheers for now,
Jas. |
Forum: C++ 17 Days Ago |
| Replies: 11 Views: 332 Ah...Of course!
The parameter to your copy constructor should be const..
e.g.
BaseEnt(const BaseEnt &other);
Also you need to alter the signatures of GetName, GetHashCode and GetID so... |
Forum: C++ 17 Days Ago |
| Replies: 11 Views: 332 I haven't got VS2008, so I can't load the original project. However, I've bunged the files into a VS2003 project and attempted to compile.
I can see the errors you're getting and I've noticed... |
Forum: C++ 17 Days Ago |
| Replies: 11 Views: 332 OK, so looking at your original post again, you said that clicking on the error brought you to this line of code:
extern std::vector<BaseEnt> entities;
This code looks like it's from another file... |
Forum: C++ 18 Days Ago |
| Replies: 11 Views: 332 Hey Tom.
Looking at the error messages and the fact that some of them are referring to a vector and then looking at line 3 of your final block of code:
std::vector<BaseEnt> entities(;
Note:... |
Forum: C++ 19 Days Ago |
| Replies: 4 Views: 276 OK well, to clear things up we'll take a quick look at how different parameter passing methods affect the way that parameters to functions are handled inside functions.
There are three main ways... |
Forum: C++ 20 Days Ago |
| Replies: 4 Views: 276 OK, I'm not sure exactly what you're after here but this snippet might help you a little:
#include<iostream>
#include<fstream>
#include<string>
#include<vector>
using namespace std;
... |
Forum: C++ 24 Days Ago |
| Replies: 5 Views: 203 Alternatively, if you only wanted the extra block to be shown if the value of the parameter was 3 then you could change this block from my previous listing:
if(i==myCondition)
{
cout << "i = "... |
Forum: C++ 24 Days Ago |
| Replies: 5 Views: 203 Then what you need to do is parse the command line and store the relevant arguments in variables and then use those variables to determine what happens in your code.
So perhaps something like... |
Forum: Graphics and Multimedia 25 Days Ago |
| Replies: 2 Views: 544 Hmm, I used to work with flash components from time to time at my previous job, (both creating and customising components) but those were all AS1 and AS2 components. And although I work pretty much... |
Forum: C++ 25 Days Ago |
| Replies: 7 Views: 246 Aha, I've just quickly tested it and it seems to work!
Here's a little program I knocked up, loosely based around previously posted code in this thread:
#include <iostream>
#include <algorithm>... |
Forum: C++ 25 Days Ago |
| Replies: 7 Views: 246 I've not actually tried this, but would something like this work for the deq_test function?
bool deq_test(Str& deq1, Str& deq2)
{
if(deq1.a==deq2.a)
{
return(deq1.b<deq2.b);
}
else |
Forum: C++ 25 Days Ago |
| Replies: 6 Views: 265 Ok, well for starters what you're seeing in Notepad isn't any kind of script, it's actually machine code but rendered in notepad as ascii text. But if you view the .exe with a Hex editor, then things... |
Forum: Graphics and Multimedia 28 Days Ago |
| Replies: 15 Views: 1,358 Morning all!
Apologies for the lack of activity recently, I've been out of action for a week or so thanks to a rather severe case of sinusitis...I initially made the mistake of ignoring it, hoping... |
Forum: C++ Oct 16th, 2009 |
| Replies: 7 Views: 375 Hey there!
Don't forget to look at the replies in your other thread where you've already asked about this!
http://www.daniweb.com/forums/thread230230.html
After you got an answer to your... |
Forum: C++ Oct 16th, 2009 |
| Replies: 7 Views: 371 Another thing that was pointed out by one of my math-geek colleagues was that my algorithm would also incorrectly flag 1 as prime.
Now I always thought that 1 was prime (it only divides evenly by... |
Forum: Python Oct 15th, 2009 |
| Replies: 4 Views: 213 Do you mean something like this??
numarray = [1,2,-3,4,5,-25]
for n in numarray:
print "The inverse of", num, "is", num * -1
#print("The inverse of", num, "is", num*-1)
# use the... |
Forum: Graphics and Multimedia Oct 15th, 2009 |
| Replies: 15 Views: 1,358 Hey Iamthwee,
re: the font issues...
Do you want me to take a look?
I should be able to work out how to change the font. If the .fla file is in CS3 format, I should have no probs doing it... |
Forum: C++ Oct 15th, 2009 |
| Replies: 7 Views: 371 Hey Gaiety!
Good point, the original code was just quickly bashed out, off the top of my head and yes I missed 2 out!..
OK, so if the passed in number is 2 we need to return true (Prime),... |
Forum: C++ Oct 15th, 2009 |
| Replies: 7 Views: 371 For starters; in your code just above you need to use the == (equality) operator to test for equality, not the = (assignment) operator.
Also, that is definitely not the correct formula for... |