Ok if I gave a .exe file only to anouther person woudl they be able to open it? Or do I need to include some other files?
Because it didn't work for my friend and I only gave her the .exe file.
Ok if I gave a .exe file only to anouther person woudl they be able to open it? Or do I need to include some other files?
Because it didn't work for my friend and I only gave her the .exe file.
It should work as long as the exe was compiled for their operating system.
Woop?
1) Does the EXE work for you?
2) There are cases when the exe does rely on external files, but I doubt this program did. Could you give us a bit more detail about this program?
ok she has windows xp just like me and I just compiled it using dev-C++. She says she can't open it. Or it doesn't open.
Edit: Yes it does work for me just fine.
edit again: That is about as detailed as I can get.
Is it opening and closing? cause that would be the only explantion i could give try adding a cin.get() before your return 0;
Woop?
hmm....ok well I wil ltry the cin.get() but hwat si it supose to do?
Because I got a getch() before the return 0; so you ahve to press enter if tha tis what that is supose to do.
what compiler are you using?
Maybe read the thread?Originally Posted by lucas4ce
Originally Posted by Rune Hunter
If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein
thx for the useful inputOriginally Posted by pianorain
>>She says she can't open it. Or it doesn't open.
Assuming no error message appears, I'd say the closest possibility is the one about it opening and closing really fast. Are you running the program from an IDE, or are you running it manually by double-clicking the .exe? Because some IDE's will add a pause at the end of the program for you, but when you doubleclick the .exe it doesn't pause for you.
**EDIT**
>>thx for the useful input
More useful than yours, I must say. At least he provided the requested info.
Just Google It. √
(\ /)
( . .)
c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.
Oh don't worry about it opening and closing. I probebly should have stated this, but I use conio.h and then the function getch(). I don't know why I choose that, there is probebly an easier way to do it but I perfere that way. So that is not why.
As a side note, conio.h is not standard. You should really use getc() in iostream.h.
getc doesn't work...?
Oh my bad... I was thinking of get
There's a bunch of options for waiting for a keypress listed in the FAQ - note that all of them have disadvantages except for the first two, which are preferred in one language or another.Code:#include <iostream> int main(void) { std::cout <<"Press [Enter] to continue" <<std::endl; std::cin.get(); return(0); }
it didn't work for my friend and I only gave her the .exe file.[chant grade=1]That is about as detailed as I can get.
oooOOOooohhh.... Rune Hunter's got a girl friend!
Rune Hunter and a girl with a faulty .exe file,
Sitting in in XP,
E-X-E-C-U-T-I-N-G,
First comes source,
Then comes prog,
Then comes warnings,
And a linker error!
[/chant]