Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

1) You can post feedback in Daniweb Community Feedback forum.

2) Check your Profile page (see CONTROL PANEL at the top of each DaniWeb page) to see if email notifications have been enabled.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Welcome to DaniWeb Marquita.

>>I married him, not signed up for Joey & Marquita Jensen enterprises.

Good for you :) Don't let your husband's consulting business turn into "the other woman".

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

So you mean Narue could be intolerable when it comes to get in a relationship with her? Might she just be a good programmer, not a partner ? :)

I doubt that is the case. Narue is the mother of at least one child that I know about, and I assume she is also married. So you see, talented and intelligent women can, and often do, have meaninful relationships.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

1) I guess you found it because you posted here :)
2) don't know
3) People with green squares can give you at least 1 rep point. People with black give 0 because they don't have enough posts yet, people with red or yellow have negative rep.
4) LOL :)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Freeky -- again, that code requires the use to hit the Enter key

Nishinoran: since your program is already using kbhit() when the program returns to the place to begin getting keys from the keyboard you can flush all the keys with another loop using kbhit

while( kbhit() )
   getche(); // get the key and toss it into the wind
Falkoner1 commented: FRIGGIN EPIC! +1
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Welcome to DaniWeb. Yes there are quite a few people here who can help you out. Just ask all the questions you want in our Databases boards.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

RDBMS -- is that Raima Data Base Management Sytem? If yes, the last time I used it about 15 years ago it was a hierarcy instead of sql database. When you buy (with your $$$) the db Raima provides examples and tutorials.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Welcome to DaniWeb. Of course c++ is heavily involved in statistics -- afterall you don't think those professors with Ph.D.'s do all those calculations by pencil & paper :)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I don't know how to do that.

I will appreciate if you can show me an example?

Just replace DrawBackground(0) with InvalidateRec(0); Since I can't see/test your code I can't guarentee that will work either, but it certainly won't crash the program.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

It worked in my test because I deleted that last line not because of the other stuff I commented out. If that last line is supposed to have only one character = then it is better to read the file one character at a time until eof, something line StuXYZ previously posted.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You have a problem at the last line of your input file.

You read while(partin >> charInput >> numInput) and you have just = on the list line so it reads into charInput and then waits and waits.....

You need to read the char and then the number, and check the status of the file in between.

That's not the problem. The problem seems to be in the last line of that file where the number is missing.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I commented out the queue.cpp include and associated objects, leaving only the file reading. Your problem is NOT in file reading because that works ok. That means the problem is in the code you did not post.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

The code looks ok, can you post a few lines of that file?

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I hope he has great musical skills -- he could write the world's first piano concharto that requires 12 fingers!

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

1) your implementation file is missing the class constructor implementation.

2) your class is missing a default constructor as required by the assignment # 2a.

3) Post the attempts you have made to write main() and test the various functions. I would suggest you write a menu something like this:

1.  Create a new account
2.  Deposit
3.  Withdraw
4.  Show Balance
5.  Quit
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>Foo* f[] = {new Foo("Hello"), new Foo("Hello"));

Nope. That doesn't compile either. And even if it did it would not create an array of Foo structuctures.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Don't just post your assignment here because we could care less about it. Post what you have done to write that program and what questions do you have about it. We are not going to write it for you but we will help YOU write it if you ask questions.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

It would appear that initialization of arrays like that is not allowed.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

My guess is that you should not be calling that function directly. Call InvalidateRect() instead, and let it call the redraw function.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

why would you create such a stupid poll in this thread??????

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

what part do you not understand?

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

On my compiler it is 1 byte because that is the minimum size of any object. There is no such thing as an object that does not take up any space.

#include <iostream>
using namespace std;

struct x
{
};

int main()
{
    cout << "sizeof(x) = " << sizeof(x) << "\n";
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I want one!

You have a couple choices
1) travel over here to USA just to buy one. That would be a very costly hamburger!

2) make it yourself in your kitchen. All you need is about 2 lbs of hamburger (I assume you can get that where you live), a loaf of hamburger buns, and the toppings.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Please keep negative comments off because I get enough of them from my brother who doesn't think I can do it. : (
(But if they're necessary go for it)

I agree with your brother. GET A JOB AND DON'T BE SO LAZY, then you can work this hobby in as time permits with the goal of making it a full-time job. If you don't, you will either starve or spunge off your brother, which I'm sure he will not appreciate.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

From www.heartattackgrill.com -- must be the world's biggest artery cloggers, cooked in pure lard.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I would nominate ArkM due to his excellent help in the C and C++ boards (I don't know where else he is at).

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Once hyperinflation sets in, I would rather show up at the store with a sack of dollar bills than dollar coins.

people will show up with either credit or debit cards instead of money. Its almost that way now -- probably 3/4 my sales are with credit/debit cards. When I was first married in 1962 a pickup full of groceries would cost about $65.00 USD. Today I can't get just one sack full for that.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

your compiler supports several different processor types, depending on which hardware manufactures SDK you install. You will have to port that assembly code to each of those processors that you want to support. Salem's suggestion is best -- port the assembly code to C or C++ and you won't have that problem anymore.

On another note -- there are a lot of win32 api functions that work on PC that are not available on wireless hardware which run WinCE or Mobile 5.0. Depending on what your program does porting difficulty may range from easy to impossible.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Aren't those manuals normally reserved for teachers and educational instutions???

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

As for the actual code -- I wouldn't clear the screen so that the user can see what he/she did wrong. If you erase it the user may not remember what he did and repeat the error. IMO it is better to just print a couple newlines and leave the rest on the screen.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

you need to tell cout how many decimals you want it to print: example

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

int main()
{
    double x = 12345.7890;

    cout << fixed << setprecision(2) << x << "\n";
    cout << fixed << setprecision(3) << x << "\n";
    cout << fixed << setprecision(4) << x << "\n";
}

output

12345.79
12345.789
12345.7890
Press any key to continue . . .
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You could, but that isn't portable either. And how many newlines would you print? How would you move the cursor?

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

The greatest new use for your surplus cash since the money bonfire was invented

That says it all!

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Thank you for clarifying. I was taken aback by the accusation of being a spammer. :-)

Don't worry about it -- if you were a spammer you would have been banned.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Welcome to DaniWeb. I don't know a damed thing about Java :)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Welcome to DaniWeb. Glad to see another retired military person here :) I retired from USAF in 1985.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

or something like this

bool done = false;
while( !done )
{
             //Your code before the if.

             if (cy>0 && cm>0 && cd>0 && by>0 && bm>0 && bd>0)
            {
                    done = true;
            } 
            else
            {
                    clrscr();
                    printf("Enter correct date.")
            }
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I like vodka too, especially Black Russians. But, wo is me, I can't drink it any more. :(

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

yummy :) :) But that is certainly a quick way to clogged arteries and heart attack.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

system() is portable -- the commands it execute are not. There are no portable ways to clear the screen. You might have to do something like this, where each compiler for the target os defines one of the symbols listed in the code below.

#ifdef _UNIX_
   system("clear");
#elif def _WINDOWS_
   system("cls");
#elsif def _OTHER_OPERATING_SYSTEM
   systgem(<put here whatever works>);
#endif
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>P1OUT &= ~ 0x01

I suspect P1OUT is an LED port address, and as the comment says it is turning off the bit.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>Hi, don't ever send emails like the ones to me! ok.
<deleted>

Aia commented: Lame and withouth class. Even if the poster was irritating. -2
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I haven't programmed for unix in a couple decades, but you might check out termifo and termcap libraries.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>most people do not have a use for bills larger than a $50.
$100 bills are common at the Wal-Mart store I work in. I've not seen a bill larger than that.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

It compiled for me, post code so we can see what you did. Here is what I tested, which is the same as I posted previously but with main()

#include <iostream>
using namespace std;

class DayOfYear
{
protected:
    static char* month[12];
public:
    DayOfYear() {};
};

char* DayOfYear::month[12] = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};

int main()
{
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

No -- that code is MS-Windows specific.

ncurses for MS-Windows only works with console programs, not GUI programs. If you want a gui program that is portable to both *nix and windows then don't use ncurses but use something like wxWidgets (there are others too)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

static class member data objects have to be declared outside the class like this: You could do it without the pointers as you posted but that will consume a bit more memory.

// put this in a header file
class DayOfYear
{
protected:
    static char* month[12];
public:
    DayOfYear() {};
};

// put this in a *.cpp file
char* DayOfYear::month[12] = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>How would I compile a DLL, and define/use its exports?
Maybe this will help you

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Not that I know of -- but then I don't know everything either :) Read through those google links to see if you can find one.