MosaicFuneral 812 Nearly a Posting Virtuoso

You have to check if you have enough room before you use [i+1], [j+1] ; because you're going past the your array boundaries.
See how it goes past at [0][2]:

MatrixC[0][0] = (MatrixA[0][0] * MatrixB[0][0]) + (MatrixA[0][1] * MatrixB[1][0]);
MatrixC[0][1] = (MatrixA[0][1] * MatrixB[0][1]) + (MatrixA[0][2] * MatrixB[1][1]);
MosaicFuneral 812 Nearly a Posting Virtuoso

You can put the BinaryNode struct outside of the class and make the class look a little more cleaner.

Why are you including the .cpp file, it's not a header?

Shouldn't the destructor test if the pointers are NULL first?

MosaicFuneral 812 Nearly a Posting Virtuoso

You can put all of that delay crap in a loop.

MosaicFuneral 812 Nearly a Posting Virtuoso

Look up, "Bitwise operators C++", then try something like this:

unsigned char a = 1;

for(int i = 255; i > 0; i--)
{
    a |= i;
    a ^= i - 1;
}

Would have an effect like this:

00000001
00000011
00000100
00000101
00000101
00000111
00001000
00001001
...
11111111

In Dec that's 1-255.

That should give you an ideal about bit math in C++.
edit:
You could also just simplify that with a++ \ a += 1; .
And there really isn't any-thing conventional to hold "infinite" data.

MosaicFuneral 812 Nearly a Posting Virtuoso

Yes, there really is a need for standardization large data-types. Some of them can very greatly(like long double ) from compiler-to-compiler.

Page 6. here:
http://www.agner.org/optimize/calling_conventions.pdf

MosaicFuneral 812 Nearly a Posting Virtuoso

Get DOS and use Mode 13h, lol ;)

You have to get the max console size, then use SetConsoleDisplayMode()

edit: Actually I think you need WinXP for it, sorry.

MosaicFuneral 812 Nearly a Posting Virtuoso

Can I see the part where you try to access the NumDays()?

MosaicFuneral 812 Nearly a Posting Virtuoso

Pointless, Google is a physical set of servers.

MosaicFuneral 812 Nearly a Posting Virtuoso

Just open the Windows directory and take your pick on what to use against it. Registries, .infs, replace .exes with .coms, find a minor glitch, etc.

MosaicFuneral 812 Nearly a Posting Virtuoso

I don't believe so. No reason for one.

MosaicFuneral 812 Nearly a Posting Virtuoso

Examples:
http://michael.dipperstein.com/huffman/index.html

I was thinking of trying something like this out, but might make things complex.

MosaicFuneral 812 Nearly a Posting Virtuoso

You didn't want to try out the Kelvin one I posted, too?

Your functions should except parameters too:

double cubeit(double value)
{
  return(value * value * value);
}

use it like:

double x;
cin >> x;
x = cubeit(x);
cout << x << endl;
MosaicFuneral 812 Nearly a Posting Virtuoso

Just copy and paste into a string array.

There is a very hacky, nested way of doing it:

#include <stdio.h>
int main()
{
    char text[] = {
                #include "text.txt" 
                };
    
    printf("%s\n", text);
    getchar();
    return(0);
}
text.txt:
"text and stuff"
MosaicFuneral 812 Nearly a Posting Virtuoso

You mean if you have a radius, circumference, etc. then solve it?

http://www.mathopenref.com/diameter.html

MosaicFuneral 812 Nearly a Posting Virtuoso

Look up "Bubble sort", slow, but should work for what you described.

MosaicFuneral 812 Nearly a Posting Virtuoso

If you're going to include the C++ headers, why not use cin and cout ?

MosaicFuneral 812 Nearly a Posting Virtuoso

Either black, or with a bit of cream(not "creamer").

MosaicFuneral 812 Nearly a Posting Virtuoso

It's to late, a lot of business are out; due to shipping expenses.

MosaicFuneral 812 Nearly a Posting Virtuoso

That might explain how it's only at at 300, instead of 600. But it's all in the spam folder, so was never a major concern for me.

MosaicFuneral 812 Nearly a Posting Virtuoso

break;

MosaicFuneral 812 Nearly a Posting Virtuoso

See if this works:

int isNum(char c)
{
    if((int)c > 47 && (int)c < 58) { return(true); }
    return(false);
}
MosaicFuneral 812 Nearly a Posting Virtuoso

First you're using the wrong "OR". For comparisons it's "||", not the bit-operation 'or' "|".

MosaicFuneral 812 Nearly a Posting Virtuoso

Post code.

MosaicFuneral 812 Nearly a Posting Virtuoso

Whoa!!!!
The whole question, and code is in a single byte!

MosaicFuneral 812 Nearly a Posting Virtuoso

That's how Red-Green vacuums his lawn.

MosaicFuneral 812 Nearly a Posting Virtuoso

What operating system/platform?

MosaicFuneral 812 Nearly a Posting Virtuoso

Something useful to memorize, or atleast refer to:
http://www.asciitable.com/

MosaicFuneral 812 Nearly a Posting Virtuoso

Wouldn't output be print ?...

MosaicFuneral 812 Nearly a Posting Virtuoso

There's a few on SourceForge; except some are still at just booting an image and displaying a small string, right now.

MosaicFuneral 812 Nearly a Posting Virtuoso

Just search for "C++ file i/o",and you'll get plenty of tutorials.
If you have any problems, with that, then start a new thread about it.

And I should ask, "What are you doing; that cannot be done in C++, or with the O/S's API?"

MosaicFuneral 812 Nearly a Posting Virtuoso

Use a loop that decreases its-self. for(int i = numNames; i > 0; i--)

Alex Edwards commented: Aye, that would work! =) +5
MosaicFuneral 812 Nearly a Posting Virtuoso

I saw people asking this, in Yahoo Answers last week.

I like this funnier leaning tree version(I don't have a life to be writing this stuff):

for(int i = 0; i < 16; i++)
    {
         for(int j = 0; j < 16 - i; j++)
         {
                 for(int l = 0; l < 1 + j / 2; l++)
                 {
                         printf(" ");
                 }
         }
         for(int k = 0; k < i; k++)
         {
                 printf("*");
         }
         printf("\n");
    }

It's also possible to do an upside down version, with only two 'for' loops, and one 'if-else'.
It should be easy to turn that into a tree, too. A good practice-exercise.

MosaicFuneral 812 Nearly a Posting Virtuoso

I use to make functions, and converters for all my Chem. class stuff.

from F to C: temperature = (temperature - 32.0f) / 1.8f; from K to C: temperature = -273.15f + temperature; edit:
I figure you know basic algebra to go from C to F, F to K, etc.

MosaicFuneral 812 Nearly a Posting Virtuoso

A better soultion might be:
Have your C++ prog. create a .bat file, run it, then delete it.

MosaicFuneral 812 Nearly a Posting Virtuoso

Correct, "most" things while counting, in C++, start at 0.

A reference of string, if you need:
http://www.cplusplus.com/reference/string/string/

MosaicFuneral 812 Nearly a Posting Virtuoso

A design like?:

print "Enter strings:\n"
readstream "%s, %s", str1, str2
print "Enter integers:\n"
readstream "%d, %d", &int1, &int2
MosaicFuneral 812 Nearly a Posting Virtuoso

You can use string.find(), so you don't have to count long strings.

MosaicFuneral 812 Nearly a Posting Virtuoso

Try: vector<string> str; The [] for string is overloaded, to mean other things.

MosaicFuneral 812 Nearly a Posting Virtuoso

Can you be a little more specific in your problem with it? What about it is confusing you, or do you have code of your problem?

MosaicFuneral 812 Nearly a Posting Virtuoso

an error says _sleep shoould have a prototype

Compiler, and version?

MosaicFuneral 812 Nearly a Posting Virtuoso

Maybe try this:

#include <stdio.h>
#include <stdlib.h>
#include <conio.h>

int main()
{
     window(100, 50, 360, 350);
     textbackground(RED);

     _sleep(5000);

     clrscr();
     return(0);
}

And you do know how a grid works, and how to find the x,y coordinates right?

edit:
Oh, yeah! You have to use the BB-code tags(it's the law):
http://www.daniweb.com/forums/misc-explaincode.html

MosaicFuneral 812 Nearly a Posting Virtuoso

It's just if() {} {} , shouldn't there be an 'else' between it?

Look again :)

:D lol, I think the doctor lied about these glasses.

MosaicFuneral 812 Nearly a Posting Virtuoso

Are you missing something here(the brackets)?:

if(answer =='Y' || answer =='y')
				{
				remove("subject.dat");
				rename("temp.dat","subject.dat");
				printf("\nThe Record is deleted\n\n");
                }
                
           {	
			remove("temp.dat");
			printf("\nThe Record is NOT deleted\n\n");
		}
MosaicFuneral 812 Nearly a Posting Virtuoso

I opened it and.... well - 38KB of code! You need to isolate your problem, and not just give a whole project to someone else, to track.
This is also the C++ forum.

MosaicFuneral 812 Nearly a Posting Virtuoso

You put prototypes of the functions in the headers, then place the code in individual C/Cpp files that you add to the project(assuming you have an IDE) which are compiled as object files that get linked.
This also saves massive amounts of time compiling large projects, in which you only updated one C file; since, it only needs to recompile that C file then!

MosaicFuneral 812 Nearly a Posting Virtuoso

The installation of the current beta isn't as good as it should be, at the moment.
You must uninstall all past versions, to be safe, you must use the default {drive}:\Dev-Cpp\ (at least on the XP installations, I've noted), make sure it's not dir Dev-C++ like from the older versions; on Vista make sure you have full admin privileges to install(maybe even to compile).

edit:
And note: It's in beta, so you may find a minor inconveniences, here-and-there.

MosaicFuneral 812 Nearly a Posting Virtuoso

So horridly formatted, I get lost in all those brackets.

MosaicFuneral 812 Nearly a Posting Virtuoso

Sounds like homework....
Google is your friend. (just staring at the list of operators it might become obvious)

MosaicFuneral 812 Nearly a Posting Virtuoso

You only need one loop, just use counters.
Here's one on the site from a few years ago:

http://www.daniweb.com/forums/showthread.php?t=28093&highlight=fibonacci+c%2B%2B

MosaicFuneral 812 Nearly a Posting Virtuoso

Scan for input, and break; when you get some.

In the loop checking for input, set up a counter with clock() and check if it's been two or so seconds, in the loops condition.