Please re-post the entire updated program. Jim
Have you tried Google? I found multiple hits for "translators for c++ to java". Such as C-To-Java-Converter. Jim
Why not just use fscanf to retrieve the number, sign, number. Or use fgets to read in a line of text into a cstring then use sscanf to retrieve...
The bios.h header file is for 16 bit DOS programs. I do not believe DEVC++ can compile 16 bit DOS programs. What exactly are you trying to...
I am not sure how to run a program from Visual C++. But you can run a program from the command line. Sorry but I haven't used Windows in many...
You have just stated the logic for this program. The user inputs the current data and their date of birth. Now compute the age. Jim
How about starting with: int main() { return(0); } In other words please show a good faith effort of doing your assignment. If we supply...
system("cls") is operating system dependent. If you are on Windows it may need to be system("clear"); For your second question your braces do not...
You need to either turn off pre-compiled headers or add #include <stdafx.h> and add the headers to stdafx.h Jim
I think the pop function works for all cases except when you try to pop an empty stack. You may need to check for an empty condition and take...
The first error happens when int main() { int item = 0; cout << "\nStack\n"; Stack* s = new ListStack; s->print(); s->pop(); /////// Error here....
And the problem is??? Please post any error/warning messages. Jim
What operating system are you using? Check your setup for the location of the output file. Make sure you have permission to write to the...
cross-posted here traversing-through-array-find-link-between-elements
Use code blocks " [ /code]" else if ((disc=b*b-4*a*c)<0) Use parenthesis when using addition/subtraction and multiplication/division. else if...
char getTime() { char t[10]; return t; } 1. Your function is defined as returning a char and you are trying to return a char *. 2. t[10] is...
Cross-posted and answered here http://cboard.cprogramming.com/c-programming/130920-about-complier.html
If the program is in the current directory ./programname Jim
First use code tags and more descriptive variable names. Your var nm[4] should be set to the size of the name nm[20]; not the number of names...
You might be interested in the Boost Format library. boost/format Jim
Separate names with a comma.