~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

leave - live

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I know that there must be someone who would have to pass a final judgment whether or not the smiley is acceptable, but the smiley collection here is... well... poor.

Yes I agree. For a community like Daniweb which is smartly customized to the core, the smileys kind of look lame, not at par with the community standard. I wonder how much it would cost Dani get the customized smileys done...

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

My stab at it:

#include <iostream>
#include <string>
#include <map>
using namespace std;

int main()
{
    map<string, int> wordCount;
    string str, temp;

    cout << "Enter the string (press ENTER key and CTRL + Z to end)" << endl;
    while(cin >> str)
    {
        wordCount[str]++;
    }
    map<string, int>::iterator iter;
    cout << endl;
    for(iter = wordCount.begin(); iter != wordCount.end(); ++iter)
    {
        cout << iter->first << " : " << iter->second << endl;
    }
    getchar();
}
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Your logic is completely broken and your code does not compile on a modern compiler. I can bet you are using Turbo C.

The reason your program crashes is because you are trying to write on memory which doesn't belong to you.

Output in my case:

this program doesn't work

Writing at location 4
Writing at location 12
Writing at location 20
Writing at location 173
Writing at location 264
Writing at location 276

Its interesting to note here that you have only 100 locations which belong to you...

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Gin soaked boy - Divine comedy

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

small things which

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

dreams and fantasies.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hanging by a moment - Lifehouse

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

specialist

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

apollo - orion

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get to go cucdoo coo.

I put in ice cubes.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Moralist hackers of Linux hate debugging their woes while preparing to destroy Windows.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

rip everything apart

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Damnation arises yet leopards interrogate goats -- how taxing !!

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Who would be best at identifying spam? I guess the site administrators -- and since they have not posted even once in this thread regarding this issue, it stands pretty obvious what will become of this discussion... ;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

RAD stands for Rapid Application Development.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I have been wondering the definition...
I mean, Are both 00123 and 12345 five-digit numbers?

If talking in context of programming languages (C/C++), no. A number with leading 0 denotes an octal number the same way that a leading 0X denotes a hexadecimal number.

So in the end, when expressed in decimal format (base 10, normal numbers), 00123 stands for 83.

[tex]123_8 -> 1 * 8^2 + 2 * 8^1 + 3 * 8^0 = 83_1_0[/tex]

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Remember:
If you give a man a fish you feed him for a day.
If you teach a man to fish, you feed him for a lifetime.

A nobel thought, but please look at the date of the last post before posting. You just resurrected a year old thread... ;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Looks like we aren't that original. Rashakil came up with the idea of separating the word games a whole year ago:
http://www.daniweb.com/techtalkforums/thread47030.html

And by seeing the number of replies it has got, you must have got a fair approximate of how *well* the idea was taken in by the members of Daniweb... ;)

Seriously, think of it this way. There are many people here who are not programmers or not involved in the technical stuff. They post for fun and relax in the Geek's Lounge. Now take away the post count of those members and where does that leave them -- nowwhere I guess. So, there would be no reason for them to post. If this reasoning is followed, the creative and lively spark of Daniweb would dry out and Daniweb would be "just another Tech forum"...

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Revenge of ex-mod... :D

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

internet - root cause of all evil

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Don't overreact, nothing keeps eternal yaks satisfied.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

sniping

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Programming brings to worst out of us... ;)

You are welcome.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
if (temp_each_day = NULL)
        printf("Error opening input file. \n");

The = in the above code should be replaced by == if what you want to do is comparision.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Awesome is making someone go up in awe.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

sneaking

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get a funny bunny.

I put in bugs bunny.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

laser tags - HTML tags

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Roam undercity lanes every second. ;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Um..but who is Sandy ?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Which all vicious enemies suck ?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Perhaps closing a few of these topics would help? (Sorry Sanya.... ).

I really wonder who Sanya is....:eek:

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I guess he wanted to illustrate buffer overflows hence the example.. :D

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Yes astyle is good, but good IDE's always come with the same feature inbuilt. Take for example Code::Blocks and Eclipse. They both come with the feature of automatic indentation of code.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Or use a smart IDE which will interpolate TAB with spaces...That way you can use tabbing in your program and be rest assured that the formatting won't be messed up since that tab would actually be spaces.

PS: Long time no see Niek...;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Will I never take elephant ride ?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

That would be silent and notorious buffer overflows you are talking about...

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Remember what you have gone through before mocking at someone.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Elitist hackers of Linux hate debugging their woes while pretending to destroy Windows.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get Sherlock Holmes

I put in an iceberg.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

packing

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hmm...interesting thread -- its a pity in my old days I didn't like Biology, so no evolution for me. :D

But seriously, my belief is that don't believe in anyone and you would be better off. That way, you can be rest assured that its you who is responsible for your actions and their results and not some so called divine power called put_whatever_you_like_here. First and foremost, believe in what you want and I guess it should turn out to be right.

"The light proves the shadow and the shadow proves the light."

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Elitist hackers of Linux hate remembering their woes while commencing to destroy Windows.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

basking

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Establishment of small tribes took place somewhere around 1870..

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

And I guess so are the people who have written that wonderful article on why 'floating point indices be avoided'.... ;)

Its the same as saying use system("pause") to pause the output screen -- though it works, its one thing that should not be used.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

casket

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Strings is a nice Pakistani rock band.