Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Something to do with programming [split thread]

2»

Comments

  • Registered Users, Registered Users 2 Posts: 784 ✭✭✭Peleus


    Amateur, I have a spare one. If you can't get one on monday, just let me know and i can give you my spare. I think the best thing to do is to just take a load of them during the labs and keep them at home.


  • Registered Users, Registered Users 2 Posts: 582 ✭✭✭TheAmateur


    Peleus wrote: »
    Amateur, I have a spare one. If you can't get one on monday, just let me know and i can give you my spare. I think the best thing to do is to just take a load of them during the labs and keep them at home.
    Thanks man, and yeah you're right, I'm just gonna take three next time. Did you do DC Circuits last week too?


  • Registered Users, Registered Users 2 Posts: 784 ✭✭✭Peleus


    TheAmateur wrote: »
    Thanks man, and yeah you're right, I'm just gonna take three next time. Did you do DC Circuits last week too?

    no i did hooke's law. I think I'm doing DC Circuits next.

    In Dev C++, when i run the C++ application it runs fine, but the Command Prompt window dissappears immediately after the result is displayed. How do i stop it from doing this? I tried sticking pause in the c++ script but it didnt work.

    oh btw, i PMd you amateur


  • Registered Users, Registered Users 2 Posts: 582 ✭✭✭TheAmateur


    Peleus wrote: »
    no i did hooke's law. I think I'm doing DC Circuits next.
    Ah right. The timetable they gave us in that red book was really useless wasn't it?
    Peleus wrote: »
    In Dev C++, when i run the C++ application it runs fine, but the Command Prompt window dissappears immediately after the result is displayed. How do i stop it from doing this? I tried sticking pause in the c++ script but it didnt work.
    Heh I just asked the same thing in the other thread. Damn windows...


  • Registered Users, Registered Users 2 Posts: 784 ✭✭✭Peleus


    TheAmateur wrote: »

    Heh I just asked the same thing in the other thread. Damn windows...

    found the answer online: just add system("pause");

    to the end of the script (but inside int main )


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 2,120 ✭✭✭Tails142


    run your program from the command prompt to begin with

    press windows button and r to bring up run window.

    type 'command' or sometimes 'cmd' and hit enter to open up command prompt

    find your directory

    use the command 'cd' to change directory

    'cd\' brings you back to root directory

    ^just incase you werent aware of the commands


  • Registered Users, Registered Users 2 Posts: 582 ✭✭✭TheAmateur


    Peleus wrote: »
    found the answer online: just add system("pause");

    to the end of the script (but inside int main )
    Is system a function or something? What library would I have to declare at the top? Sorry for the probably stupid question:o


  • Registered Users, Registered Users 2 Posts: 9,579 ✭✭✭Webmonkey


    if my memory serves me right its part of conio.h - so #include "conio.h"
    bare in mind any time you use system, you are making your program none portable. Not standard.
    You could simply just have a cin >> at last line.


  • Registered Users, Registered Users 2 Posts: 784 ✭✭✭Peleus


    TheAmateur wrote: »
    Is system a function or something? What library would I have to declare at the top? Sorry for the probably stupid question:o

    i dunno, probably iostream because thats the only library in my prorgram and it works fine now.


  • Registered Users, Registered Users 2 Posts: 1,488 ✭✭✭mathew


    It says what to do at the top of lucys page..


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 582 ✭✭✭TheAmateur


    mathew wrote: »
    It says what to do at the top of lucys page..
    Lucy's page?


  • Registered Users, Registered Users 2 Posts: 784 ✭✭✭Peleus


    lucy hederman's page on TCD. just read it there. it says add the system pause command.


  • Registered Users, Registered Users 2 Posts: 1,488 ✭✭✭mathew


    Lucy's Page

    its under software


  • Registered Users, Registered Users 2 Posts: 582 ✭✭✭TheAmateur


    Peleus wrote: »
    lucy hederman's page on TCD. just read it there. it says add the system pause command.
    mathew wrote: »
    Lucy's Page

    its under software
    Got it! Thanks :D


  • Registered Users, Registered Users 2 Posts: 5,699 ✭✭✭Brian


    TheAmateur wrote: »
    Ouch... that means you have Hooke's Law next doesn't it.

    Yeah. Damn easy one week and evil the next. Boring both times.


  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,307 Mod ✭✭✭✭Jonathan


    Feck sake...

    I just answered that system pause question over on the other thread..

    Merge?


  • Registered Users, Registered Users 2 Posts: 582 ✭✭✭TheAmateur


    jmccrohan wrote: »
    Feck sake...

    I just answered that system pause question over on the other thread..

    Merge?
    If the thread doesn't drunkenly lurch from one topic to another, it's not an engineering thread. In that regard, you have made this one beautiful.


Advertisement