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

You get garbled text

I put in a word document.

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

Las vegas => broads

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

Someone getss screwed, i put in the Statue of Liberty

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

along with a

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

Looks like it really is after all your log out related problem since the MY BLOG button works fine on my computer. Maybe you should try flushing your IE cache and cookies related to Dani Web if that may help, but its just my two cents.

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

Look at the MY BLOG button posted by Miss Dani just a few posts back in this thread.

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

chippy chips => casino

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

dairy farms => pizza cheese

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

Yes we would very much like to help you in every aspect of your coding but first we need to see how much you have attempted. As you are doign this course you must be havign some knowledge of programming, so just show us where you are stuck doing that and we will help you out.

Asking for a ready made solution wont fetch much help in this forums.

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

in my pocket

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

War machines

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

It seems odd that he would state preorder as being reverse post order. Why not just as for a preorder traversal algo. But than nothing surprises me these days so you could be right?

Yes its possible I may be wrong but lookign from his code and the limited senario he has painted in front of me, i thought maybe he didnt know about preorder and needed some direction. But then again you cant know the mind of these young developers, maybe he wouldb be the first one to write a technical paper on Reverse Postorder :mrgreen:

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

YOU get a beanstalk, i put in a 3d model.

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

What do you exactly mean by reverse postorder? In postorder the value is accessed after accessign all the left and the right children or branches.
So if you want reverse then it must mean preorder traversal.

Preorder:

1. Print out the value and save the node or value to stack.
2. If left child not null call Preorder (left)
3. If right child not null call Preorder (right).

If this is not your problem stmt then restate it with examples.
Best of luck,

~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

.

class PAIR
 
{private:
 int a;
 int b;
 
public:
 
 void print();
 PAIR();
 PAIR(int);
 PAIR(int,int);
 ~PAIR();

 void swap();
 int diff();
 int big();
 int area();
};

int main()
{
PAIR c, d(2), e(12,13);

int ans;
c.print();
d.print();
e.print();


d.swap();
d.print();
e.swap();
e.print();

ans = c.diff();
cout << "\nThe answer to c.diff() is  " << ans << endl;

int big = e.big () ;
cout << "\nThe larger number of e.big() is  " << big << endl << endl;

return 0;
}

PAIR::PAIR() 
{
a = 2;
b = 3;
}

void PAIR::print()
{cout << a << " " << b << endl;}

PAIR:: ~PAIR()
{
  cout << "Display Destructor Message" << endl;
}

PAIR::PAIR(int p1)
{a=p1;
b=p1;}

PAIR::PAIR(int p1,int p2)
{
a=p1;
b=p2;
}

void PAIR::swap()
{
 int c;
 c=a;
 a=b;
 b=c;
}

int PAIR::diff()
{
    return b - a;
}

int PAIR::big()
{
    if (a > b)
    {
        return a;
    }
    else 
    {
        return b;
    }
} // this was missing

int PAIR::area()
    { 
                int z;
    z=(a*b);
        
    {
    return z;
    }
}
    
// } 
// this is extra brace

The things marked in red by me are the culprits. WHy dont u format the code properly so that typographic errors will be minimised. Do you write your code in Notepad. If so grab your self a syntax highlighter code editor which makes automatically proper indentations like Code::BLocks or Dev Bloodshed.

The links for the above IDE can be found at teh top of this forum in the thread named "Starting …

~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

chewing gum -> munching cow

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

which was controlled...

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

Over the hedge

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

You spread humanity to others.

I put in a Doom 3d engine

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

If you are hoping to find some experienced programmers which work in TCL then you are very wrong. Not many people here in the C/C++ forum have done that kind of thing. If you need specific help why not try out some exclusive TCL forums. Here is some help for you:

http://www.tek-tips.com/threadminder.cfm?pid=287
http://forums.belution.com/en/tcltk/

HOpe it helped, bye.

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

round the clock...

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

You get the latest news.

I put in a bluetooth enabled cell phone

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

Good one, i completely agree with you on English and computer lang depending on the kind of area i am in but just wanted to know whether Microsoft still holds a market there or the opensource revolution has started to pick up there. Here in India its all PHP, C and MS technologies. Wanted to know the senario there. I was plannign to do my MS in US and wanted to know what kind of language should i stress on here in India so that i can just start developing softwares out there along with some big shot company.

Thanks in advance.

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

after sinking in

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

you get a bunch of noisy kids

I put in a Python Interpreter

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

the sinking Titanic

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

You get a toast.

I put in half Life 2

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

I think you are getting the formulas for deviation and variace wrong.

See this code for reference;

#include <iostream>
#include<iomanip>
#include <cmath>
using namespace std;

int main()
{
    float deviation, var ;
    char choice;
    int total_numbers  = 0 ;
    const int arraysize=20;
    int num[arraysize];
    do
    {
        cout<<"I will give you the Sum,Mean,Var & the Std Dev of any series of numbers?Y/N:"<<endl;
        cin>>choice;
        if(choice =='Y'||choice =='y')
        {
            cout<<"How many numbers will you enter? (up to 20)?";
            cin >> total_numbers ;  // this is correct way of accpeting single number
            for (int j=0; j < total_numbers; j++)
            {
                cout<<"Enter Number"<<j+1<<":"; cin>> num[j];
            }
            cout << " You have entered the following:"<<endl;
            for ( int j = 0;  j < total_numbers; j++)
            {
                cout << num[j]<<" ";
            }

            int sum=0;
            for (int j=0; j <  total_numbers; j++)
                sum+= num[j];
            cout<<"\nThe Sum is "<<sum<<endl;
            float mean= (sum/ total_numbers);
            cout << showpoint << fixed << setprecision (2);
            cout<<"The Mean is "<<mean<<endl;

            if (total_numbers > 1)
            {
                for (int i = 0; i < total_numbers; ++i )
                {
                    var += ((num [i] - mean) * (num [i] - mean)) ;
                }
                var /= (total_numbers - 1) ;
                deviation =sqrt(var);
            }

            else
            {
                var = 0.0 ;
                deviation = 0.0 ;
            }
            cout << showpoint << fixed << setprecision (2);
            cout<<"The Varience is " <<var<<endl;
            cout << showpoint << fixed << setprecision (2);
            cout<<"The Standard deviation is "<<deviation<<endl;
        }
    }
    while(choice!='N'&& choice!='n');
    return 0;

}

Maybe for the formula you should look here;

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

Hey i was just wondering which is the prominent langauge in the United States of America which is used for development. I know it sounds a bit amatuerish but i dont know how to frame this question. Just wanted to know which langauge is worth learning so that the one who knows it would not go jobless in America. Which languages are taught in Universities like Southern California University and are included in the course curriculum.

Waiting eagerly for your reply.

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

I completely agree with Mr. Comatose without graphic artists and animators there is no point in moving ahead since there is nothing you can test your code on. Map developers and Graphic artists are the key to game dev. Round up some of your friends who are interested in graphics if you are going for indie game dev or look forward for joining a company which is much safer bet.

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

C for me, C code can be called from Python, Perl and many other languages. COupled with GUI features of Python and the modules demanding performance in C, try to beat that combo.

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

If you have posted the question doubting the ability of Python to be used in games then you are wrong. There are really good games made in Python which have real time physics and are at par with teh performance delivered by C++. And whats more is that since it is also a scripting lang the task of game scripting is really simplified since you dont have to search for another language which is the case when you use C++ for development. (eg. LUA).

THe games :

http://www.codemasters.com/severance/eng/Index3.htm
http://www.freedomfans.com/ffvttr/

~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

Show some efffort on your part friend, didnt you find your answer here:

http://www.daniweb.com/techtalkforums/thread55862.html

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
#include <iostream>
#include<iomanip>
#include <cmath>
usingnamespace std;
int main()
{

    char choice;
    int total_numbers = 0;
    const int arraysize = 20;
    int num[arraysize];
    do {

    cout << "I will give you the Sum,Mean,Var & the Std Dev of any series of numbers?Y/N:" << endl;
    cin >> choice;
    if (choice == 'Y' || choice == 'y') {

        cout << "How many numbers will you enter? (up to 20)?";
// cin>>num[arraysize];  this is wrong it means entering value in 20th element
        cin >> total_numbers;   // this is correct way of accpeting single number
        for (int j = 0; j < total_numbers; j++) {
        cout << "Enter Number" << j + 1 << ":";
        cin >> num[j];
        }

        cout << " You have entered the following:" << endl;
        for (j = 0; j < total_numbers; j++) {
        cout << num[j] << " ";
        }
        int sum = 0;
        for (j = 0; j < total_numbers; j++)
        sum += num[j];
        cout << "nThe Sum is " << sum << endl;
        float mean = (sum / total_numbers);
        cout << showpoint << fixed << setprecision(2);
        cout << "The Mean is " << mean << endl;
        float var = ((num[0] - mean) * pow(num[0] - mean, 2) + (num[1] - mean) * pow(num[1] - mean, 2) + +(num[2] - mean) * pow(num[2] - mean, 2)) / (num[arraysize - 1]);
        cout << showpoint << fixed << setprecision(2);
        cout << "The Varience is " << var << endl;
        float sqrtvar = sqrt(var);
        cout << showpoint << fixed << …
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

cake served to ...

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

You get a reckless driver..

I put in a N Force Motherboard.

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

Err.... yes i hope you understand i am not the kind to mess around with moderators and admins. :D

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

You get a Starforce CD protection.

I put in a graphic card (i prefer ATI)

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

Err.. Mr. Happygeek i hope you understand that the thing which i pasted in my first post was just err.. a joke (why Miss Dani, why, pointing out the blog button like that :) )

But you will definately see my amateurish blogging skills in the near future. (beware all bloggers) !!!!!!

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

Since i dont know a lot about all this i cant say anything definate but here are some of the links realted to CURSORS and Oracle and mysql.

http://www.sqlapi.com/Examples/refcursors.cpp
http://dev.mysql.com/doc/refman/5.1/en/c-api-function-overview.html

And also you will have to read the links posted by me in the previous post to get a better understanding since not many people have attempted this thing and you are very much on your own.

Best of luck, bye.

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

Hmmm... blogging eh. And you reached a 100 congrats man.

Maybe even I should start a blog but dont want to take away your happiness since i cana exceed that number in a few days. (damn it now just how do you start making a blog in Daniweb, wheres' the damn button)

:D:D:D

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

Hmm... yes there is yet another way of looking at that (theres always a second perspective).

c) Initialize each of the 5 elements of single-subscripted integer array g to 8.

Yes it can be what you say taking into consideration the level of the previous questions but can also be what i considered seeing the level of the questions which follow.

I hate such kind of questions, makes me remind of the customer requirement gathering phase of software development, they are so vague. :D

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

Science Lab -> preserved organs

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

the missing link :D

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

You get unemployement.

I put in Iron Maiden.

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

Hi,

#include <iostream>
using namespace std;
  class PAIR
 
{
private:
 int a;
 int b;
 
public:
 
 void print();
 PAIR();
 PAIR(int);
 PAIR(int,int);
 ~PAIR();

 void swap();
 int diff();
 int big();
 int area();
};

int main()
{
PAIR c, d(2), e(12,13);

int ans;
c.print();
d.print();
e.print();

e.swap();
e.print();

ans = c.diff();
cout << ans << endl;

e.big();
e.print(); 

return 0;
}

PAIR::PAIR() 
{
a = 2;
b= 3;
}

void PAIR::print()
{
cout << a << " " << b << endl;
}

PAIR:: ~PAIR()
{
cout << "Display Destructor Message" << endl;
}

PAIR::PAIR(int p1)
{
a=p1;
b=p1;
}

PAIR::PAIR(int p1,int p2)
{
a=p1;
b=p2;
}

void PAIR::swap()
{
 int c;
 c=a;
 a=b;
 b=c;
}

int PAIR::diff()
{
return b - a;
}

 int PAIR::big()
{
if (a > b)
{
return a;
}

else 
{
return b;
} 
}

The reason is that there is no temporary variable to accept the bigger value returned by the "big()" function and hence you end up printing the original value of your object "e". So you can write something like this:

int big = e.big () ;
cout << "\nThe bigger number is " << big ;

Hope it helped, bye.

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

Eye of the Beholder