Hi,
I also live in Australia, i've lived in Nowra, Canberra, Sydney and now Brisbane. Before leaving school i also had the idea of going to ADFA to do computer science, but after actually looking...
Type: Posts; User: Uraldor
Hi,
I also live in Australia, i've lived in Nowra, Canberra, Sydney and now Brisbane. Before leaving school i also had the idea of going to ADFA to do computer science, but after actually looking...
BTW Toaster, your code indexes outside the array when x is 0
You may as well have asked the question:
"Why doesn't this code render quake4 on my machine?" coz it yields the same answer.
The answer is:
"Because you haven't written any code to do it!"
Yup, I am.
this happens a fair bit. is your program accessing files?? maybe your IDE actually runs your exe with a different working directory which means that if you are opening files, relative path names wont...
there could be quite a few reasons. the things to focus on would be bounds checking, initialising your structures/arrays/pointers to zero, and cleaning up memory properly.
if you are still stuck,...
You need to add 'accelerators' to your program. have a look at LoadAccelerator() and TranslateAccelerator() in MSDN
U.
#define ABS(x) ((x) < 0 ? -(x) : (x))
int GetClosestToZero(void)
{
int closest = myVector[0];
for(int i = 1; i < myVector.size(); i++)
{
if(ABS(myVector[i]) <...
No worries. I appreciate your comments. Keep in mind that i have kinda flamed people before on this board. Those people I feel really deserve it. Like i said to you before, i helped you out because...
have a look at the second last post on this page
i've seen that code somewhere before. did you download that off a website?
Shadow12345
There's no reason anyone should laugh at you. You're obviously learning, and you have tried something yourself before asking for help. I salute you! Most of the posts on here are...
OMG!! Klinerr1 really does have some competition there doesn't he! :D
Thanks for that, i needed a good laugh :D
cheers
U.
To answer your question.... if you can use arrays, then use them. They are much faster than vectors. Vectors are used alot when you need an array whose size changes all the time. It makes it easier...
I reckon you're solution is a bit of overkill.
How about this:
#include <iostream>
using namespace std;
int ShowMoneyValue(int value)
{
fletch: have you noticed the typo in his location information?
Klinerr1, you are a complete idiot. It's people like you that ruin BBs like this.
Are you stupid or something??
Take a look at the name of the thread you started. That's where the bad language is.
I'm afraid that's part of the windows API.
If you want a function to that kind of thing in Linux, then why not write your own?? The wide string format is easy to replicate!
good luck!
U.
DO NOT use bad language in any part of your posts. It's rude. There are people on this board who may be offended by your bad mouth, so please do not swear.
Ultimately the reason why you're having...
there is a program called lint that does that kind of thing. it originally worked with C code, but i'm sure there's a C++ version somewhere.
hehe.. no problem. Keep it up, you're doing well.
U.
there are quite a few uses for pointers to functions. i use them in the games that i make for quick decision making
rather than
enum States { STATE1, STATE2, STATE3, ... };
...
Ah LouB, the things I do for you :D
It appeared to me that there weren't that many mistakes in what you did. here are a couple of things to remember.
1) Keep your operators functioning the same...
well, that code instantiates them. and if they are instantiated they are initialised/constructed.
U.