MosaicFuneral 812 Nearly a Posting Virtuoso

I mean come on, a religion that tells its followers that if you kill people that dont believe in Sharia Law, that you goto heaven? WTF is that bullshit?

hummm.... I always thought like most religions it was about purity, don't know where you get your facts. Of course Christians have the "Thou Shall Not KILL!" post-it on their foreheads, but many go on massacres. So religion doesn't really rule you as a terrorist, just mentally illness.

MosaicFuneral 812 Nearly a Posting Virtuoso

Tis general forum courtesy.

MosaicFuneral 812 Nearly a Posting Virtuoso

Google, "mean," and "deviation." So easy they teach it to second graders and third graders.

Rashakil Fol commented: You're mean -- stop your deviations from our standards of interpersonal conduct! :P +8
mattwaab commented: lols, third graders +1
MosaicFuneral 812 Nearly a Posting Virtuoso

One to few smokes available, or just a bad day?

MosaicFuneral 812 Nearly a Posting Virtuoso

What compiler? I usually get a more detailed error than that.

MosaicFuneral 812 Nearly a Posting Virtuoso

What does your book say about pass parameters, and altering them?

MosaicFuneral 812 Nearly a Posting Virtuoso

Google, "rot13" That's as easy as it gets... well, actually using bit-operations are easier by a few lines less typed.

Salem commented: Use rot13 twice to decode this secret message ;) +27
MosaicFuneral 812 Nearly a Posting Virtuoso

tomtetlaw, how long have you been here - reviving dead threads, and posting an e-mail?

MosaicFuneral 812 Nearly a Posting Virtuoso

Right now my main aim is to find young talent like me, young developers below the age of 15 not just with the basic knowledge but should be aware of all the advancements. If any of you is as young as me or anybody reads this, please be in touch with me. I would like a person from India or Indian sub-continent.

Pedophile? :P

MosaicFuneral 812 Nearly a Posting Virtuoso

66%
Stupid questions, no references to Oden, Trolls, self-mutilated aliens, the psychology of an abomination after sitting in a psychward, or what would happen if one soloed Lydian Diminished into a Locrian in front of a child.

MosaicFuneral 812 Nearly a Posting Virtuoso

Seems the quality of answers isn't too great at the moment? Perhaps a diagram or a link to one for us newbies?

The quality of answers goes up as the quality of the question goes up.
Generally requiring a full paragraph.

MosaicFuneral 812 Nearly a Posting Virtuoso

You really need to work on your order of operations.

You need to do the subtraction first, then divide that number by the constant of 9/5(1.8); not 1.8 divided by the difference.

Go to the library and check out a book on Algebra, then do a few brief reviews to see where you need to touch up on(if it's been awhile since you've used any). Programming follows many of these little laws in math, so keep them in mind, or write it down on a card/note-pad for reference.

MosaicFuneral 812 Nearly a Posting Virtuoso

Maybe as a DLL?
But - what's so "secret and special" about your code, are you embarrassed by it?

Even if you put your code in a DLL, make sure it's abstract enough for the user. Since no-one wants to route through several layers of classes, declaring objects to be used by other objects, when just calling one function from a single class could have done it.
Code is still nice as a documentation, unless you've documented it well.

MosaicFuneral 812 Nearly a Posting Virtuoso

What's the output of temp before you use the function?
Any code to see how you're going about that?

MosaicFuneral 812 Nearly a Posting Virtuoso

Why are you recursively looping a function like that? It's hard to follow.
Also not sure why you're not using int main(), globals in that way, string.h, or idk this is way more complex than it needs to be...

MosaicFuneral 812 Nearly a Posting Virtuoso

I have one, but I have to go patent it first, then make some cash off it before it's old news.

MosaicFuneral 812 Nearly a Posting Virtuoso

Or just boot loader?

MosaicFuneral 812 Nearly a Posting Virtuoso

Those are external libraries/tools for multimedia, system calls(or interrupts) are a bit different.

MosaicFuneral 812 Nearly a Posting Virtuoso

What are you talking about, madrang?

MosaicFuneral 812 Nearly a Posting Virtuoso

Had a one of those pizzas on a slice of bread sort of things(forgot the name), rhubarb pie, shot of Absolute, Makers Mark and Tanqueray gin; smoked a Benson & Hedge while reading some Edgar Allan Poe-ms. A good night.

MosaicFuneral 812 Nearly a Posting Virtuoso
for(int i = 0; i < 27; i++)
{
    cout << "*";
}

:P

MosaicFuneral 812 Nearly a Posting Virtuoso

Explain what you believe that code does, and what you want it to do.

MosaicFuneral 812 Nearly a Posting Virtuoso

How many times over the years will this be revived - first post wasn't even till a year later?!

MosaicFuneral 812 Nearly a Posting Virtuoso

All here. Just scroll to the end and read the table of requirements.

MosaicFuneral 812 Nearly a Posting Virtuoso

You mean like the keyword static, to keep it from external linkage; or volatile to keep the compiler from messing with it?
I'm thinking you're meaning static.

MosaicFuneral 812 Nearly a Posting Virtuoso

I would suggest getting a compiler from this century, then reading up on ifstream.

MosaicFuneral 812 Nearly a Posting Virtuoso

Yes, just bounds of endless spamming. :'(

MosaicFuneral 812 Nearly a Posting Virtuoso

Read the rules, CODE TAGS.

Do you know about loops, like:

int    array[10];

/*populate*/

for(int i = 0; i < 10; i++)
    avrg += array[i];

arvrg /= 10;

That code assumes everything is always ten.

MosaicFuneral 812 Nearly a Posting Virtuoso

How about:

vector<string> blah;
string temp;

for(int i = 0; i < 52; i++)
{
    some_random_string_generating_function(temp);
    blah.push_back(temp);
}

cout << blah[23] << endl;
MosaicFuneral 812 Nearly a Posting Virtuoso

Arrays have to be constant.

Try vector<int>, or allocate the memory and delete it at the end.

int *an_array;

 /*input*/

an_array = new int [numb];

/*stuff*/

delete [] an_array;
MosaicFuneral 812 Nearly a Posting Virtuoso

Everyday all this thread does is get spammed with ads for porn, maybe it should just be locked?

Salem commented: Works for me :) +27
MosaicFuneral 812 Nearly a Posting Virtuoso

You really should go with a summary loop.

int num[10], sum = 0;
...
for(int i = 0; i < 10; i++)
    if(num[i] > 0)
        sum += num[i];

cout << "Sum: " << sum;

Try the same for input.

If a number is negative, shouldn't you find |num[i]| , for each value? Unless you want the sum to be negative.

MosaicFuneral 812 Nearly a Posting Virtuoso

MinGW 5.1.4
Download, include the g++ option, unzip the files to a file and copy them over to the directory.

MosaicFuneral 812 Nearly a Posting Virtuoso

Major violations of the CODE TAG rule, that's the problem here.

MosaicFuneral 812 Nearly a Posting Virtuoso

When you uninstalled it, you removed the leftover file?
You're using the current version?
Installed it to the default directory? I tested it on two XP machines, and it would only work in the default, but fine in other directories on other OSes.

If you already tried that, perhaps update the compiler to the current version(MinGW 5.*).

MosaicFuneral 812 Nearly a Posting Virtuoso

Or just use string streams.

MosaicFuneral 812 Nearly a Posting Virtuoso

We don't do homework, and speak English, here.

MosaicFuneral 812 Nearly a Posting Virtuoso

Since we always now this is a square, you only need to allocate once.
http://www.parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.16

Make sure you use the trys and catches, too.

MosaicFuneral 812 Nearly a Posting Virtuoso

Please read the rules, me_ansh, and you'll find what you've done wrong.

MosaicFuneral 812 Nearly a Posting Virtuoso

My collection is small compared to all of my friends. But I like to savor my games, not finish them the next day.

wow...he must be a game guru or something....

Unlikely.

MosaicFuneral 812 Nearly a Posting Virtuoso

"I need my insulin!" lol

Or 'drug' em, instead.

MosaicFuneral 812 Nearly a Posting Virtuoso

Have you tried a modulo operation?

MosaicFuneral 812 Nearly a Posting Virtuoso

Try this link:
http://www.cplusplus.com/doc/tutorial/dynamic.html

Then read all of the other tutorials, refer to their references or try Google.

StuXYZ commented: You have a habit of finding really appropriate links, thx +3
MosaicFuneral 812 Nearly a Posting Virtuoso

I also believe, but someone please correct me if I'm wrong, that you need #define in your .h file.

Yes, the "include guard."

#ifndef HeaderName_H
#define HeaderName_H

    /*header declarations*/

#endif
CPPRULZ commented: very quick and concise help +1
MosaicFuneral 812 Nearly a Posting Virtuoso

You forgot to include "englishweight.h" in "englishweight_def.cpp", and it's impossible to read your un-indendeted code.

You're still including the .cpp in "EW_driver".

MosaicFuneral 812 Nearly a Posting Virtuoso

You compile and link .cpp files, not include it like a header.
Two, repost with the indented version in CODE TAGS, so people can read it.

MosaicFuneral 812 Nearly a Posting Virtuoso

Why are you are you useing a C-string(const char *) for p?

Actually this is a tad "weird," and over complicated(IMO).

MosaicFuneral 812 Nearly a Posting Virtuoso

"10 letters and 10 numbers" - that's going to be a huge amount of combinations to sort through.

20! 2,432,902,008,176,640,000 First Google link of, "C++ Permutations"
http://www.bearcave.com/random_hacks/permute.html
There seems to be plenty of permutation algorithms swimming around online.

MosaicFuneral 812 Nearly a Posting Virtuoso

Your home planet is: Glark Glark is a round, red planet roughly 25 million light years from Earth. It's covered in shrubbery and cocoa bean plants (so they make loads of choccie there) The inhabitants of Glark usually have quite short hair so they don't get it caught in the plants (they're all midgets too), and they're all pretty independent. At last, you know where you belong :)

Sounds good, except I like my long hair.

MosaicFuneral 812 Nearly a Posting Virtuoso

uhhmmm.... sentence is a single char.

void func(sting &str)
{
    bool alpha = true;

    getline(cin, str);
    while(alpha)
    {
        /*code*/
    }
}