MosaicFuneral 812 Nearly a Posting Virtuoso

Oh no, there might be to much religious reference here and a mother at school might see her kid on it and have to sue Daniweb. lol

MosaicFuneral 812 Nearly a Posting Virtuoso

Have you tried different file attributes and access levels, like just all read, no hidden stuff, etc.

MosaicFuneral 812 Nearly a Posting Virtuoso

You don't need to use an emergency bailout like that.
If it's member of a class then you could have it set one variable that indicates an error occurred, or didn't find anything.

class SearchTools : public MaybeSomeOtherLibTools
{
    private:
        bool error;
        bool success;

    public:
        int binary(...);

        bool isError(void);
        bool isSuccess(void);
};

Have the constructor set the default values.

MosaicFuneral 812 Nearly a Posting Virtuoso

You're not modifying the variable, just taking it as a parameter.
Do you have to use recursion and not a loop?

MosaicFuneral 812 Nearly a Posting Virtuoso

You could just use something like Audacity to record it to .wav, then analyze it.

Also what about impedance ratings? How are you receiving it, with a mic or the toy speaker with a hot glued pin trick?: http://www.electronicpeasant.com/projects/springs/springs.html
What API/SDK are you using for sound DirectSound, Audiere, etc?

MosaicFuneral 812 Nearly a Posting Virtuoso

Pain killers that don't make me twitchier than Pillz-e the Squirrel, and a right eye that can focus and doesn't feel like it's about to explode.

MosaicFuneral 812 Nearly a Posting Virtuoso

Something with a Z80 style processor, maybe a GBC? ;) lol j/k

MosaicFuneral 812 Nearly a Posting Virtuoso

For bytes use char, or you could shove four bytes an int.

Are you familiar with C++ file i/o?

MosaicFuneral 812 Nearly a Posting Virtuoso

I think I went blind trying to read all that red and green text on white.

MosaicFuneral 812 Nearly a Posting Virtuoso

Not unless you created somesort-of compatibility/communication layer between them, like a plug-in.

MosaicFuneral 812 Nearly a Posting Virtuoso

By clearing the screen, on most Windows systems system("cls"); . Not compatible with a lot of other OSes though.
So a loop with newlines might be enough to push the rest out of view.

The second question; just record everything to an array of stucts(with output, input, ect.), similar to an undo buffer.

MosaicFuneral 812 Nearly a Posting Virtuoso

To be compatible with browsers, you'd probably have to go beyond C++.

MosaicFuneral 812 Nearly a Posting Virtuoso

What compiler version? Check limits.h for the max size, and stdint.h to see how they define int64_t. If you don't have stdint.h, you might have an out of date version.

Some links you might find interesting:
Aligning some datatypes, and such.
Watch for the return-type(if there's no template).

MosaicFuneral 812 Nearly a Posting Virtuoso
MosaicFuneral 812 Nearly a Posting Virtuoso

Did you even try to Google any of those?

MosaicFuneral 812 Nearly a Posting Virtuoso

I thought this was a slash b joke at first. :D

After getline(cin, string); it did nothing, after cin >> string; it crashed.

MosaicFuneral 812 Nearly a Posting Virtuoso

You need code tags.... [code] ....all of that here.... [/code] site rules.

If you're using namespace std, why do you need to declare cin, cout, etc.?
When do your loops begin in and end? You need to use brackets to enclose things.
You use rand() before you even seed, and... you just need to learn how to format your code, or get an IDE to do it as you go; because this is near unreadable.

In fact, I suggest just completely rewriting this, since it's small enough that you could rapidly.

MosaicFuneral 812 Nearly a Posting Virtuoso

Boring.....

MosaicFuneral 812 Nearly a Posting Virtuoso

One way would be getline getline(file, string); , or using >> file >> x; file >> y; file whatever; , if your data is in a fixed format.

Why are you using gotos?!...

MosaicFuneral 812 Nearly a Posting Virtuoso

Somewhere in '99-'01.

MosaicFuneral 812 Nearly a Posting Virtuoso

What about Action Script is the problem?

MosaicFuneral 812 Nearly a Posting Virtuoso

Well for windows the procedure would be:
Server

CreateNamedPipe(),
ConnectNamedPipe(),
ReadFile(pipe handle),
flush buffers, disconnect

Client

CreateFile(with pipe's name),
WriteFile()
CloseHandle()
MosaicFuneral 812 Nearly a Posting Virtuoso
LPSECURITY_ATTRIBUTES attributetag = NULL;
string name;

for(int i = 0; i < 10; i++)
{
    generator(name);
    CreateDirectory(name.c_str(), attributetag);
    ...add files, fill them with junk using generator()...
}

...

void generator(string &str)
{
    for(int i = 0; i < rand() % 256; i++)
    {
         str[i] = rand() % 256;
    }
}

Haven't tried it. Sort of what you're looking for?

MosaicFuneral 812 Nearly a Posting Virtuoso

MIND YOUR OWN BIZnesSS
YOu CreePpy MonkeY Narue.

Is there really any reason to explode over this? Calm down, this is just a programming forum, not some political moral debate.

MosaicFuneral 812 Nearly a Posting Virtuoso

Tabs I guess would be an option.

MosaicFuneral 812 Nearly a Posting Virtuoso

If you know how to sort numbers, then just change the ranges to the appropriate characters ASCII values(or some other standard).

http://www.asciitable.com/

MosaicFuneral 812 Nearly a Posting Virtuoso

Reading the Amazon lists, the PC is superior because it has Hentai, and more FPSs.

MosaicFuneral 812 Nearly a Posting Virtuoso

"You have been trained well." lmfo, That was pure brilliance.

MosaicFuneral 812 Nearly a Posting Virtuoso

Characters can be easily sorted the way numbers are, since they are numbers.

MosaicFuneral 812 Nearly a Posting Virtuoso

I don't like apps on Local Machine, I prefer User.

MosaicFuneral 812 Nearly a Posting Virtuoso

I have a sweet EOR trick for flipping cases, but what do you have so far?

MosaicFuneral 812 Nearly a Posting Virtuoso

It goes from C, to asm mnemonic, to machine.

http://www.degraeve.com/reference/asciitable.php

MosaicFuneral 812 Nearly a Posting Virtuoso

1 e:\psgitd~1\finals~1\greatest.cpp
iostream.h: No such file or directory

Because it's #include <iostream> no ".h".

MosaicFuneral 812 Nearly a Posting Virtuoso

Death.FM - nothing like a little(or a lot of) doom, tech death, and general insanity to start the morning. In fact, the Spawn of Possession is boosting the caffeine nicely.

MosaicFuneral 812 Nearly a Posting Virtuoso

Remember to stream for larger things, like music, instead of loading it completely.

MosaicFuneral 812 Nearly a Posting Virtuoso

Then kick your professor in the shins for it. Place the declaration in a header, and link the definitions.

MosaicFuneral 812 Nearly a Posting Virtuoso

Here's some good rules:
1). Don't be retarted.
2). Don't shove it in the pant's waist.
3). Don't buy untrusted "Sat. Night Specials".
4). Don't shoot yourself.
5). No hairpin triggers.
6). Never place finger on trigger, unless you're firing it(that moment).
7). Never leave safety off till ready to fire.
8). Don't pour soda on it.
9). Assume it's always loaded; otherwise you're about to feel hot lead.
10). Trouble starts when... you're retarded.

MosaicFuneral 812 Nearly a Posting Virtuoso

Does code have to be "brand-new", can you pull stuff out of old projects, or use bits used from your old challenge?

MosaicFuneral 812 Nearly a Posting Virtuoso

Pipes, with the OS's API.

MosaicFuneral 812 Nearly a Posting Virtuoso

That's one reason to a carry gun....it was an attempt at their lives.
Here, afterwards, they'd shutdown the whole block, get a swat team, call the BATF, if they felt like it the National Guard or militia of choice, and arrest a bunch of believed conspirators.

MosaicFuneral 812 Nearly a Posting Virtuoso

You're telling it to compare two elements away from the first one, being the third one not the second one.
http://www.geocities.com/SiliconValley/Park/3230/x86asm/asml1012.html

MosaicFuneral 812 Nearly a Posting Virtuoso

Well I tried.....

There should be no need to setup links, or even entering the command prompt. You just let it auto-dezip to the program files. Then go to your projects options, and use the convenient file browser to add the library files and include directories.

For more on it go to:
Help -> Help on Dev-C++ -> Index -> project -> Managing project options

MosaicFuneral 812 Nearly a Posting Virtuoso

String path can't just be placed in a printf like that, it has to be c-string format: path.c_str() Why not just use cout since everything is taken care of for you, if you're not willing to format it.

And you might want to read the forum rules - IMMEDIATELY! Pay attention to that part about "code tags".

MosaicFuneral 812 Nearly a Posting Virtuoso

Uhmm... First enclose code used by for, while, if, etc. in brakets }{ . It's hard to spot where things end and begin without them.

And where does it crash? Have you tried breakpoints in a debugger, or even just putting couts/printf in the code to see where you are?

Why are you using things like scanf, ands puts?

MosaicFuneral 812 Nearly a Posting Virtuoso

Try a test setting the file attribute-CX to 1, for read-only, and see if CF is set then.

MosaicFuneral 812 Nearly a Posting Virtuoso

Not to be nit-picky, but void really don't have a "return".
And since maxInt never really had an input, perhaps there should
be two functions since maxInt just checks the comparisons.

bool maxInt(int, int, int&)
{
    ...return true if x and y have a diffrence...
}

void printInt(int x, int y, int big)
{
    if(x == -9999) { ...set kill signal... }

    bool difference = maxInt(x, y, big);
    if(!diffrence) { cout << "They were the same" << endl; }
    else
    {
       cout << "Big is: " << big << endl;
    }
}

I suppose it doesn't matter if you have it all in one function or not. Personal preference in design.

MosaicFuneral 812 Nearly a Posting Virtuoso

You never gave N a size, and don't char array declarations have to be constants?
You have the convenience of vectors to use over constant sized arrays.

MosaicFuneral 812 Nearly a Posting Virtuoso

Class awsome is not a pointer you don't use -> .

Oopy.cpp missing something on the include?

Your class is missing a semicolon to finish it.

MosaicFuneral 812 Nearly a Posting Virtuoso

Well if you know basics, then you could try out SDKs like SDL, Allegro, whatever, or try looking for game engines that have things like renders, scene loaders, event handling and such already made so you can spend more time on your games actual development.

MosaicFuneral 812 Nearly a Posting Virtuoso

What's the question???

Do you even know how to program in C++? That would be the first step towards doing anything.