MosaicFuneral 812 Nearly a Posting Virtuoso

Read the section in the chapter that tells you how to use new to allocate a pointer - otherwise, this example should explain it all: http://www.cplusplus.com/reference/std/new/operator%20delete%5B%5D/

MosaicFuneral 812 Nearly a Posting Virtuoso

Just add a public function to x returning the value, you already have the answer staring at you in the directions.

MosaicFuneral 812 Nearly a Posting Virtuoso

My experience with iPods, is that the shuffle is never very random and sometimes repeats patterns. I'm not sure if it compares similarities(that have been previously assessed) and attempts follows each song with another of similar attack or other parameters.

MosaicFuneral 812 Nearly a Posting Virtuoso

Don't have a cellphone, and this is another reason why.

MosaicFuneral 812 Nearly a Posting Virtuoso

brainf' is the best, don't deny it.

ddanbe commented: Agreed! +14
MosaicFuneral 812 Nearly a Posting Virtuoso

This book explains everything you'll need to know on computational theory, starting from the bottom with boolean logic into chips into machine code into assembly into virtual machines into language into compilers into operating systems:
http://www1.idc.ac.il/tecs/plan.html
http://www.amazon.com/Elements-Computing-Systems-Building-Principles/dp/026214087X

It's a relatively short book of 340 pages and if you can grasp its principles; then congratulations, you might have just learned more than what you study in four years of CS at school, on the suject.

MosaicFuneral 812 Nearly a Posting Virtuoso

Most threads are.

MosaicFuneral 812 Nearly a Posting Virtuoso

Ah, I've been p0wnd. I submit to your experience.

MosaicFuneral 812 Nearly a Posting Virtuoso

n00bs all up in this thread.

cout + cin.get() is all you need in C++
printf() + getchar() is all you need in C

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

They being talking about this for years and a few vids I believe online(one from about threes ago, anyway).

MosaicFuneral 812 Nearly a Posting Virtuoso

Could read this: http://bulletproof-windows.blogspot.com/
Shows you how to set Firefox to low-integrity and run it without admin prompts.
Other browsers have their own protected modes, now.

And there's already add-ons like NoScript and Ad-Block Plus that block scripts and frames and other junk. So browsers are pretty secure now-a-days.

Otherwise you could write your own text based browser(unless you've got some GUI and graphic skills) and pretty much disallow everything.

MosaicFuneral 812 Nearly a Posting Virtuoso

If you wanted to compare the raw speed of two algorithms on a specific system, you just run them a few thousand times and get the recorded run time difference.

MosaicFuneral 812 Nearly a Posting Virtuoso

Possibly, or you could just write your own function to read the snapshot.

The only gcc specific code on that snippet if I remember correctly, was just to check if it was a 32-bit system. Besides that you just link the correct, equivalent libraries(each linker has their own naming scheme).

MosaicFuneral 812 Nearly a Posting Virtuoso

Well... I could add you, but how do I know you're not the stalker?

MosaicFuneral 812 Nearly a Posting Virtuoso

uhh.... No. Debugging is the act of resolving those issues and no one's going to do it for you(unless you like spending money).

MosaicFuneral 812 Nearly a Posting Virtuoso

You should try Code::Blocks, Dev-C++ has become very out-of-date, but the debugger on both works the same.

http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks

You can setup break-points to step through, and a watch on those variables.

MosaicFuneral 812 Nearly a Posting Virtuoso

What IDE are you using? Most have an easy to use one that requires nothing more than clicking on a line to watch it.

MosaicFuneral 812 Nearly a Posting Virtuoso

Use a debugger and follow the code.

MosaicFuneral 812 Nearly a Posting Virtuoso

Unless you're writing this program in pure assembly, the compiler is going to make use of those registers without your consent. You can try working against the compiler with the inline assembler and fancy tricks while reading the the compiler's assembly output and continuously altering code to work with it, but that's impractical.

MosaicFuneral 812 Nearly a Posting Virtuoso

You need to allocate the outer pointer first, than the sizes of the inner pointers.

On 'For' it should be 'for'.

main() should be an 'int' and successfully return zero on completion.

MosaicFuneral 812 Nearly a Posting Virtuoso

You still using two actions in a scope that only uses one...

Why don't you just put the printfs at the end of program as I suggested? This eliminated this issue, and doesn't print the message a dozen times on the console.

Your loop still doesn't even encase the conditions, and you still haven't moved the variable initialization to the top.

MosaicFuneral 812 Nearly a Posting Virtuoso

A value is a value, and any appropriate value can be place in a register, but if the global variable's value changes and something reliant on it is only being given the value from the register; then the value in the global is no longer the same as the one given to the register and anything receiving the value through the register is now out-of-date.

So that would be an issue if you were to do that, of course as mentioned above - there's only limited registers, and those registers can also be altered long before you get back to them, since they're only very temporary storage.

vedro-compota commented: +++++ +1
MosaicFuneral 812 Nearly a Posting Virtuoso

If the code following is only a single action, then you don't need brakets but if you're using more than one you need:

if(logic) 
{
    func();
    func2();
}
else
    only_one_func();

something_now_outside_the_scope();
MosaicFuneral 812 Nearly a Posting Virtuoso

So were you suppose to fill in the blank space loop with your code?

You need to actual encase the loop in brackets, and add one to your else statement.

You need to initialize those variables as zero, if you do it in the loop you reset it every time.

You can place the printfs outside of the loop at the end of the program so they don't repeat everytime you add a number.

Simplified, something like this:

for(...) {
    if(array[i] & 1)
        odd++;
    else
        even++;
}
...
MosaicFuneral 812 Nearly a Posting Virtuoso

This should give you anything you've ever wanted to know about the GDI functions: http://msdn.microsoft.com/en-us/library/dd145203%28v=VS.85%29.aspx

MosaicFuneral 812 Nearly a Posting Virtuoso

Look up Big-O Notation and keep this chart handy: http://www.cppreference.com/wiki/complexity

Snehamathur commented: Thanksss +1
MosaicFuneral 812 Nearly a Posting Virtuoso

Using this as a reference: http://www.daniweb.com/code/snippet217332.html
You could push all the decimals over to the whole side; then cast it over to the integer, giving you the signifigand and the exponent obviously also being known.

I haven't tested that tactic, but you could give it a try.

MosaicFuneral 812 Nearly a Posting Virtuoso

Read the Winsock tutorial and it'll show you how the API is implemented.

MosaicFuneral 812 Nearly a Posting Virtuoso

Most C/C++ compilers already have an inline assembly language at disposal. You can even make real-time assemblers and run the output within the program(loading up a pointer -- that's of the type pointer-function -- with the machine code and calling it), or make use of an available compiler like GCC and build code within the program like an IDE.

It's really whatever you imagine up and design.

MosaicFuneral 812 Nearly a Posting Virtuoso

What about Toolhelp32ReadProcessMemory? Got an old code snippet over here: http://www.daniweb.com/code/snippet217316.html

MosaicFuneral 812 Nearly a Posting Virtuoso

Wow. I have a some pretty good rankage for never even contributing anymore.

MosaicFuneral 812 Nearly a Posting Virtuoso

Does Carmack ever sleep? This man is like an engineering and programming machine, his code is also always full of the most nifty tricks.

MosaicFuneral 812 Nearly a Posting Virtuoso

I think everyone needs to marry after being eligible for getting married. Marriage may be everything for a person. because of this, man can do his task very easily and can keep his mind fresh from any bad things. If you become a noble person, you marry anyone quickly.

The keyword there is 'may be'. I've been 'eligible'(legally) since 17, but I've for one never even had a long term relationship, nor would currently care for one. To make it financially work, we'd both have to work full-time to pay rent, utilities, and save up for things like a car or a house; there'd be no time to even be with eachother, till I've either gotten the schooling requirements for a higher paying job or X-years of experience in a trade.
I also refuse anything more than platonic love, because I really am really not ready for any responsibilities that a sexual relationship brings. Any relatives and friends whom've had children(accidental or not) at my age or younger have just wound-up divorced(if they did go shotgun) and creating broken families. That's something I don't want to do to a young child.
In perhaps a few years from now, things may be completely different, but just being legally eligible doesn't make for good grounds to have any relationship.

MosaicFuneral 812 Nearly a Posting Virtuoso

I really don't know whom Max is, other than that once someone had a Max Headroom mask on while hijacking a public access station, while either seriously fucking high or very mentally unhealthy. That's the extent of my knowledge on the subject.

MosaicFuneral 812 Nearly a Posting Virtuoso

Sure Dani is hot - I'll admit it - and sure in the real world you could say that to someone if the situation allowed for it and the tone and context was right, but... this is the internet, when you start a topic, there is no situation unless you create one and that means it's right out the blue with a robotic tone. Like some sort of psychopathic stalker bot, meant to creep you the freak-out.

MosaicFuneral 812 Nearly a Posting Virtuoso

Or just go to the band's page or the label's website and download the sample tracks.

MosaicFuneral 812 Nearly a Posting Virtuoso

I... quite like it. If they sell it, I'd highly consider buying it.

MosaicFuneral 812 Nearly a Posting Virtuoso

Who, where, when???

I was born in the nineties and it's almost 2011. You old farts need to get out of that decade.

MosaicFuneral 812 Nearly a Posting Virtuoso

Wow... that is pretty bad. Tell your friend that he should read the book again.

And this goes here: http://www.daniweb.com/forums/forum9.html

MosaicFuneral 812 Nearly a Posting Virtuoso

Mrs Happygeek is particularly 'concerned' about the third large box of a dozen broken but otherwise complete ZX Spectrums I have just this weekend collected. I know nobody needs 30+ broken ZX Spectrums, but surely having 30+ spare machines 'just in case' cannot be a bad thing? :)

Till, I just happen to roll on by and test the EMP weapon on my T-90.

MosaicFuneral 812 Nearly a Posting Virtuoso

Guns, knives, malt liquor, wool goods, military surplus, distro CDs, video games, chem supply, cigars, video games, performance parts, tech books, fireworks, exotic plants.

Come on down!

MosaicFuneral 812 Nearly a Posting Virtuoso

Not really just had on my wool pea coat and fedora, while walking around with friends.

Good thing it was thick wool since that bounced the eggs off from some drunks in their car, also nice that I had on my steel toe work boots for when I walked over and kicked their door and they sat inside like wusses. Not even man enough to get out and let me get my daily workout in. Course they tracked us around the block and through a police lot till we got over a ditch and slipped through some apartment alleys.

MosaicFuneral 812 Nearly a Posting Virtuoso

Find some change and buy some fourties or fortified wine; then down it in one go. You'll smell like a bum, but feel on top.

MosaicFuneral 812 Nearly a Posting Virtuoso

A meetup in the Pacific Northwest, http://www.ancestral.com/images/maps/pacific_northwest.gif

Maybe in Seattle's satellite city Bellevue.

MosaicFuneral 812 Nearly a Posting Virtuoso

What about a NW meetup?

MosaicFuneral 812 Nearly a Posting Virtuoso

Hybrid pickups?! Then what am I going to do with my twin turbo, 440, three speed, dual-quad barrel; that I feed a dangerous mix of toluene, methanol, crude, antifreeze, broken Sharpies, WD-40, and stolen buckets of kerosene and acetone(that I mix with peroxide)?

MosaicFuneral 812 Nearly a Posting Virtuoso

I agree. I don't recall ever seeing a drunk Ninga or a boozed-out rugby team play :)

Drunken MMA fighters taking on hungover ruby teams could be the future. I know I'd pay to see it.

MosaicFuneral 812 Nearly a Posting Virtuoso

It's almost 3am; it's not been day for along time for me; it's only been the graveyard for these past months.

MosaicFuneral 812 Nearly a Posting Virtuoso

No? Has anyone got it? Has anyone been enlightened? OK I'll let this one ride.

That you should stop dropping acid and popping empathogenics. Seriously, next thing you know, you'll be feeling sympathy towards pillows and the hardships it's faced.