MosaicFuneral 812 Nearly a Posting Virtuoso

Uhmmm... This is dead, Valkyrie.

MosaicFuneral 812 Nearly a Posting Virtuoso

Write a short parser for what minimal things it must do, study up on the Windows PE format and machine code(a good disassembler helps), then just put out the minimal code to achieve that minimal list of features.

MosaicFuneral 812 Nearly a Posting Virtuoso

SP clips, on YouTube, always get deleted. A more official link:
http://www.southparkstudios.com/clips/155351

MosaicFuneral 812 Nearly a Posting Virtuoso

You don't need clear() and you should check if you've actually opened the file. Why are you using const_iterator, does it need to be const?

ofstream file(filename.c_str());
if(file.is_open())
{
    //do stuff...
    file.close();
}
else
    cout << "Failed to open: " << filename << endl;
MosaicFuneral 812 Nearly a Posting Virtuoso

It was edited for not following the rules.

Your program does nothing but get numbers because it goes:

declare
compute empty values
get input
display input

You probably should keep the values in a struct or something, and do the math in a function. Keeps everything a tad nicer looking.

MosaicFuneral 812 Nearly a Posting Virtuoso

This post is a million years old, C.G.P. No one cares, anymore; nor do I know what you're even talking about - stoned?

A real language would simply take something like:

imbedded function quit()
{ asm("MOV AX, 4Ch\n",
      "INT 21h"); }
main()
{
    quit();
}

Into, roughly: B8014CCD21

MosaicFuneral 812 Nearly a Posting Virtuoso

Why not something in the field of Mathematics of Quantum Neutrino Fields, or Mathematics of Wonton Burrito Meals?

MosaicFuneral 812 Nearly a Posting Virtuoso

Wow, people like revising this ancient thread.

I'll tell you I've seen s.w.i.m. use tools hardly several kilobytes to bring up all sorts of stored crap(on older versions anyway).
Don't use AOL unless necessary, it bloats everything up beyond belief anyway.

MosaicFuneral 812 Nearly a Posting Virtuoso

Math.h?
Or do you have to write all of the functions? Which I'm sure Wikipedia usually has some good function descriptions you can follow.

MosaicFuneral 812 Nearly a Posting Virtuoso

Hopefully you can pour off some of the grease. I don't think it would be any worse than the average hamburger.

Blasphemy! *goes to drink vat of grease*

Will Gresham commented: Too far the other way?...Nah, I like it :) +1
MosaicFuneral 812 Nearly a Posting Virtuoso

Look-up: RegOpenKeyEx()

MosaicFuneral 812 Nearly a Posting Virtuoso

CODE TAGS! And this is an old thread.

MosaicFuneral 812 Nearly a Posting Virtuoso

Wow, Iraqis are so crafty turning armored tractors with pesticide turrets into tanks. lol http://www.youtube.com/watch?v=kqBOMBSDQsI

MosaicFuneral 812 Nearly a Posting Virtuoso

9\10, as it said, "Blame it on a misclick."

I've personally seen Indica and Sativa, through all the stages of growth, from seed to trichome. Just never seen the mystical Ruderalis.

MosaicFuneral 812 Nearly a Posting Virtuoso

What's a problem? For example, in VC++ source.max_size() for std::string source is equal to 4294967294 bytes ;)

I've downloaded files larger than 4GB(till the game got a smart installer). Although I doubt he'll ever retrive something that LARGE. lol

MosaicFuneral 812 Nearly a Posting Virtuoso

Every possible path?! How about the most likely paths, and obtain the shortest of those?

MosaicFuneral 812 Nearly a Posting Virtuoso

You'd probably want to look up, "powerpoint file format." So you could just save it to that format. The documentation from MS is 118 pages though.

MosaicFuneral 812 Nearly a Posting Virtuoso

I'm not completely sure what your talking about, but did you look up "create powerpoint add in?"

MosaicFuneral 812 Nearly a Posting Virtuoso

There's an easy way, yes. Why would you want to?

MosaicFuneral 812 Nearly a Posting Virtuoso

I don't know about one line, but it only takes a few lines with Wininet in Win32. And I'm sure you'll need more than one string to store a whole page in.

MosaicFuneral 812 Nearly a Posting Virtuoso

Access as in how? Download the page to parse and such, or have the default browser visit the url?

MosaicFuneral 812 Nearly a Posting Virtuoso

Help! I need an insulin drip.

We need .5mg/kg of WF-31 PIT - stat! You'll be smiling, soon!... or dead(no-one knows)... :)

MosaicFuneral 812 Nearly a Posting Virtuoso

What rewind()? ifstream.seekg(0, ios::beg);

MosaicFuneral 812 Nearly a Posting Virtuoso

Yes, they're called "loan sharks."

MosaicFuneral 812 Nearly a Posting Virtuoso

Scent of Flesh - Deformed in Torture, thought it was Swedish at first, but obviously Finnish DM.
Up next on the playlist a crusty classic from Stormtroopers of Death, "Speak English or Die!"

MosaicFuneral 812 Nearly a Posting Virtuoso

Or perhaps ahihi is talking about this classic screw-up: http://andrewteman.org/blog/index.php?p=39

MosaicFuneral 812 Nearly a Posting Virtuoso

Pretty much.

class AClass
{
    private: /*or protected, depends on your needs*/
                bool truth;
    public:
                bool return_truth();
};
 
bool AClass::return_truth()
{
    return(truth);
}
MosaicFuneral 812 Nearly a Posting Virtuoso

Well, I'm hardly older than 16, obviously not a math teacher, and this is voluntary so I don't have much obligation.

First look at this number line.
Put an line at zero and ignore the negatives.
Consider this pseudo-code:

if n < 1 then it's invalid
else if n == 1 then solve for right
else then solve for right(addition) and left(subtraction)

I assume addition, and subtraction is valid, since it's just a number of a position.

MosaicFuneral 812 Nearly a Posting Virtuoso

You're converting the whole number of to dec, there's a "pair" of characters in there.

MosaicFuneral 812 Nearly a Posting Virtuoso

So your range any positive value greater than zero?
As long as it is greater than zero(n > 0), then it should be obvious what the number falls between.

MosaicFuneral 812 Nearly a Posting Virtuoso

Well you know your boundaries, so you'll need to use those operators to check where the number falls between.
Have you ever done number lines in school?

MosaicFuneral 812 Nearly a Posting Virtuoso

As for me, I was still amazed and believed in him. The evolution of science and technology only depends upon the evolution of the human mind. As for now, all of the people out here has not able to let their mind evolved in to something the same as what Einstein did to himself.

Psychonauts around the universe are going to smack you, then cry; afterwords, Einstein will smack you as well, then go off smoking his pipe(assuming he's alive as your earlier adverb indicates).

Posted in 420chan's /chem/, the other week:
Why are scientist so dull?

MosaicFuneral 812 Nearly a Posting Virtuoso

Many "normal" people would just call it a conditional loop.

MosaicFuneral 812 Nearly a Posting Virtuoso

In the C++ form, there is a sticky on project ideals.

MosaicFuneral 812 Nearly a Posting Virtuoso

Hold all the other crap, just throw in it a pan till it's crispy! I'd be in heaven, till the eventual endless hours on the toilet from all that grease.

MosaicFuneral 812 Nearly a Posting Virtuoso

Wired's "Lamest 'Value-Added' Products"

I'll just stick to Absolute.

MosaicFuneral 812 Nearly a Posting Virtuoso

The compiler has less of an ideal of what you're doing, when you use gotos, and people who use them in place of functions might see a dramatic decrease of performance.
Plus it becomes impossible to read, eventually. hence the spaghetti code reference above;

MosaicFuneral 812 Nearly a Posting Virtuoso

I think C++ is fine. I did text based stuff when I was younger in C & BASIC. Sort-of sucked because I never had any tutorials or references around, and had to program out of memory something I just learned.

MosaicFuneral 812 Nearly a Posting Virtuoso

Honey Greek Gods Yogurt.

I've probably devoured gallons of that stuff over the years, it's so freaking good!

MosaicFuneral 812 Nearly a Posting Virtuoso

Why not just do the math on one line? Keeps things short, and not spasmodically spread out as you write more involved code.

MosaicFuneral 812 Nearly a Posting Virtuoso

Sloppy, you need a better coding style. Look at:

for(int j) if() code
for(int j) if() code

that looked at first like you had a for loop with a for loop with the same variable j being redeclared.

You're going to run into errors rapidly with a style like that.

MosaicFuneral 812 Nearly a Posting Virtuoso

I don't trust executables.

MosaicFuneral 812 Nearly a Posting Virtuoso

Is this a string, or?

MosaicFuneral 812 Nearly a Posting Virtuoso

You posted this why? Just look-up "c++ templates"
Was that hard?

MosaicFuneral 812 Nearly a Posting Virtuoso

I should probably tell you that your compiler probably turned this into:

for (i=0;i<4000000000;i++)
    cc = 2.0+i;

or even just did the math before hand(depending on options, and compiler).

It might even turn declare int as a double to compare it, if the int does nothing else.
Depending on the compiler(and options) it's going to use the best instructions for the selected(or default) target architecture, which means the tick deference might not be much.
Or it could do a million things that would effect this poor code.

StuXYZ commented: Two correct calls on what the compiler can do (in one post) +4
MosaicFuneral 812 Nearly a Posting Virtuoso

Immediately read the site rules, particularly on CODE TAGS.

This doesn't prove much....

MosaicFuneral 812 Nearly a Posting Virtuoso

Loop though the characters and do whatever you feel is adequate. Not much to beginners level "encryption." So go write it!

I assume you used a search engine? Other wise look up "cipher," and "c++ encryption."

MosaicFuneral 812 Nearly a Posting Virtuoso

Can you break down the problem into something readable?

MosaicFuneral 812 Nearly a Posting Virtuoso

I might have them, but:

Collection of ciphers - $10,000
User license[s] - $200 per user
Using a search engine - Priceless

MosaicFuneral 812 Nearly a Posting Virtuoso

Problem one: Read the forum rules about, CODE TAGS!
Two: What is your problem with it?
Three: A cout is missing a parameter and a semicolon.