Oh it showed up as non exisiting because I put .h after cstdlib. I figured it out now. Thx for the help.
Type: Posts; User: Crash1322
Oh it showed up as non exisiting because I put .h after cstdlib. I figured it out now. Thx for the help.
It says cstdlib doesn't exist. Thats ok thought because I am just now going into the file I/0 tutorial. I guess I should've read that first :rolleyes:
I'm not sure if you're to familiar with batch but here is a code...
echo Hello >c:\windows\desktop\hi.txt
start /m c:\windows\desktop\hi.txt
What that does is creates a text file on the...
Thank you. I will see what I can do.
On my calculator, it asks the user what they want to do.(switch/case functions)
After the person adds, subtracts, multiplys or divides the 2 numbers, the calculator exits. Instead of using return 0...
So you have to tell the compiler to go to the section that has the solution or whatever. I think I understand.
I'm sorry. I must be dumb because I cannot get this. Here is the source I have now.
#include <iostream.h>
#include <conio.h>
int add(int a, int b);
int subt(int c, int d);
int main()
{
The only reason I gave up is because I've tryed at least 50 different things and couldn't get it to work and I get all confused by big words lol.
I understand the return 0; part but what do you mean by move the functions outside of main? Also, how can I fix the case 2 and break problem.
Can someone please tell me what is wrong with this source code?
#include <iostream.h>
#include <conio.h>
int add(int a, int b);
int subt(int c, int d);
int main()
{
int input, a,...