when i compile it with dev-c++ it works just fine but when i compile it with VC++6 its all weird
the code:
#include <iostream.h>
#include <stdlib.h>
double cf(double c)
{
if(c == 0)
{
double f1 = 32;
return f1;
}
if(c == 100)
{
double f2 = 212;
return f2;
}
if(c != 0 && c !=...
i tried both ways.
the first way i kept getting a compiling error.
2nd way it was really weird!
this is what i mean:
as you see everything goes normal untill i enter the C°, then it just says press anything to continue, which isn't suppose to happen. then i press enter and the answer comes...
ok thanks guys but it seems there is a bigger problem
when i compile something with VC++6 it only runs properly on my computer, when i send it to someone else they say it just closes after you input the value
why is that, and how can i fix it?
oo and i forgot to add..
is there a way to compile a .cpp file without having to make a new project for it. sorry i forgot to post it in the post above.
ok, i got it working thanks
i have another question..
it keeps creating this "weird" files for example:
.pdb .ilk .opt .aps .pch .obj and .idb files..
what are they and are they necessary?
Thanks again
I know Visual C++ 6 is quite old, but i got it from a friend
untill now i was using Dev-C++.
For some reason VC++ wont compile anything i would get an error mesage that says:
No compile tool is associated with the file extension.
it also says it's an .txt file instead of bein .cpp
Thanks.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.