•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 374,011 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,783 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser:
Views: 359 | Replies: 18 | Solved
![]() |
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 10,182
Reputation:
Rep Power: 34
Solved Threads: 822
you have to put a line at the end of main() to keep the window from closeing. Add a getchar() will do it.
'Politics' is made up of two words, 'poli,' which is Greek for 'many,' and 'tics,' which are blood-sucking insects.
- Gore Vidal
Being ignorant is not so much a shame as being unwilling to learn. - Benjamin Franklin
- Gore Vidal
Being ignorant is not so much a shame as being unwilling to learn. - Benjamin Franklin
•
•
Join Date: Oct 2006
Location: the Netherlands
Posts: 1,556
Reputation:
Rep Power: 8
Solved Threads: 157
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 10,182
Reputation:
Rep Power: 34
Solved Threads: 822
I just compiled and ran your program in Dev-C++ and the window didn't close on me. I also ran it from command prompt and it worked there too.
'Politics' is made up of two words, 'poli,' which is Greek for 'many,' and 'tics,' which are blood-sucking insects.
- Gore Vidal
Being ignorant is not so much a shame as being unwilling to learn. - Benjamin Franklin
- Gore Vidal
Being ignorant is not so much a shame as being unwilling to learn. - Benjamin Franklin
•
•
Join Date: Oct 2006
Location: the Netherlands
Posts: 1,556
Reputation:
Rep Power: 8
Solved Threads: 157
•
•
Join Date: Apr 2008
Posts: 14
Reputation:
Rep Power: 1
Solved Threads: 0
@ niek: i tried ur method, doesnt work either.
@ AD: can u please post the source code and the file u compiled on here ? I use dev-c++ too and doesnt work ><
---- EDITED -----
oh wait. I got it working for some reasons. I need to see if the thing really works :p BRB
oh and I finally realized that when u compiled with dev C++ and press run in the code, it wont run, have to go to the actual folder to run it.
@ AD: can u please post the source code and the file u compiled on here ? I use dev-c++ too and doesnt work ><
---- EDITED -----
oh wait. I got it working for some reasons. I need to see if the thing really works :p BRB
oh and I finally realized that when u compiled with dev C++ and press run in the code, it wont run, have to go to the actual folder to run it.
Last edited by ohhmygod : May 15th, 2008 at 10:45 am.
•
•
Join Date: Apr 2008
Posts: 14
Reputation:
Rep Power: 1
Solved Threads: 0
Thank you guys for helping me. I finally figured everything out. Now im working on the rest of my assignment . Again, thanks a lot !!!!!! This is a hell long assignment and its due monday hehe. :p
(and i'll fix the void main(void) too =] "The lecturer said its OK" ! :p i'll just do the standard one)
(and i'll fix the void main(void) too =] "The lecturer said its OK" ! :p i'll just do the standard one)
Last edited by ohhmygod : May 15th, 2008 at 10:59 am.
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 10,182
Reputation:
Rep Power: 34
Solved Threads: 822
>>@ AD: can u please post the source code and the file u compiled on here ? I use dev-c++ too and doesnt work ><
I used exactly the same source code that appears in post #7 in this thread, except I fixed the void main. I didn't use a data file so it didn't actually read anything. But the program didn't crash as niek_e suspected.
I used exactly the same source code that appears in post #7 in this thread, except I fixed the void main. I didn't use a data file so it didn't actually read anything. But the program didn't crash as niek_e suspected.
Last edited by Ancient Dragon : May 15th, 2008 at 11:07 am.
'Politics' is made up of two words, 'poli,' which is Greek for 'many,' and 'tics,' which are blood-sucking insects.
- Gore Vidal
Being ignorant is not so much a shame as being unwilling to learn. - Benjamin Franklin
- Gore Vidal
Being ignorant is not so much a shame as being unwilling to learn. - Benjamin Franklin
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb C Marketplace
Similar Threads
- project plz who can help me (C++)
- Cable Bill Program (C++)
- what does assignment statement return (C)
- help with streams .... (C++)
- who can help me in c++ project (C++)
- I need help on STRUCTURES and on input file (C)
- Input Output File Streams - Sorting Help With Array (C++)
- overloading Operator << to accept endl (C)
- transfer input.txt to output.txt help prz (C++)
Other Threads in the C Forum
- Previous Thread: Pass a string by reference
- Next Thread: random number



><
Linear Mode