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

DT228-Year 1 Chat [mega-merge]

Options
1356722

Comments

  • Closed Accounts Posts: 77 ✭✭davedrave


    Soby wrote: »
    Jesus i was told he does the same tests every year..haha didnt think they'd be that similar..was like the exact same as last years:L

    didnt stop me from having a bit of trouble with it


  • Closed Accounts Posts: 31 mr.fancypants


    did anyone get the divisible right??
    thats the only one i couldnt figure out:confused:


  • Registered Users Posts: 644 ✭✭✭rockmongrel


    Yeah me too, if someone knows, please post :p


  • Registered Users Posts: 227 ✭✭delta214


    divisible :: Int -> Bool
    divisible x
    |x `mod` 3 == 0 = True
    |otherwise = False


  • Registered Users Posts: 644 ✭✭✭rockmongrel


    I was well not in class for that..


  • Advertisement
  • Registered Users Posts: 227 ✭✭delta214


    You dont even need the guards now i think about it.
    Better not deduct marks for 'em




    divisible :: Int -> Bool
    divisible x = x `mod` 3 ==0


  • Closed Accounts Posts: 31 mr.fancypants


    :rolleyes:
    got no where near
    heres me trying to use '/'
    has anyone seen our results from computer architecture

    http://webcourses.dit.ie/webct/urw/lc5122011.tp0/cobaltMainFrame.dowebct

    What a ledge:D:D


  • Registered Users Posts: 227 ✭✭delta214


    What a legend indeed.

    Anyone know when we get results for the Problem Solving?


  • Registered Users Posts: 1,164 ✭✭✭BaRcOe


    delta214 wrote: »
    What a legend indeed.

    Anyone know when we get results for the Problem Solving?

    Lets hope its not anytime soon ye;)


  • Closed Accounts Posts: 324 ✭✭randomcountdown


    last year we were going to rev up an HDD and let it loose at a wall but Art didn't have a three prong screwdriver :(

    so we just melted the CPU.


  • Advertisement
  • Registered Users Posts: 644 ✭✭✭rockmongrel


    Can someone give me a link to the borland compiler we use, I got a new pc and can't find the damn link..


  • Moderators, Technology & Internet Moderators Posts: 11,016 Mod ✭✭✭✭yoyo


    Can someone give me a link to the borland compiler we use, I got a new pc and can't find the damn link..
    http://boards.ie/vbulletin/showpost.php?p=57321911&postcount=28

    I uploaded Borland Compiler here :) Hope it helps

    Nick


  • Registered Users Posts: 5,977 ✭✭✭Soby


    where the hell is our lecture today??


  • Registered Users Posts: 26,579 ✭✭✭✭Creamy Goodness


    they still force ya's to use borland in first year?

    /puke


  • Registered Users Posts: 7,090 ✭✭✭jill_valentine


    Apparently nobody agreed on whether it was Review Week or not.

    Lecture didn't happen today, but only people who were at the lab the other day were told. I only found out in Comp. Architecture today off one of the other five people there.


  • Registered Users Posts: 227 ✭✭delta214


    they still force ya's to use borland in first year?

    /puke

    MC swears by it apparently, the best a man can get.


  • Registered Users Posts: 5,977 ✭✭✭Soby


    lecture on tomorrow??


  • Registered Users Posts: 7,090 ✭✭✭jill_valentine


    Not sure, tbh? I don't think so.


  • Closed Accounts Posts: 77 ✭✭davedrave


    delta214 wrote: »
    MC swears by it apparently, the best a man can get.

    is there anything out thats better than borland? I use dev c++


  • Registered Users Posts: 26,579 ✭✭✭✭Creamy Goodness


    davedrave wrote: »
    is there anything out thats better than borland? I use dev c++

    Depends on how you define best, but dev c++ uses the gcc compiler which is a better start than bcc anyways


  • Advertisement
  • Registered Users Posts: 227 ✭✭delta214


    Yeh i use dev c++ aswell. UI is prettier.


  • Registered Users Posts: 5,977 ✭✭✭Soby


    lab test today?


  • Registered Users Posts: 644 ✭✭✭rockmongrel


    There is yes, multiple choice which should be nice since i've been to practically no database classes :P


  • Registered Users Posts: 227 ✭✭delta214


    Anyone know bout prob solving results?:/
    This business assignment seems fairly easy :)


  • Registered Users Posts: 1,164 ✭✭✭BaRcOe


    assignments, assignments, assignments

    AAAAHHHHHHHHHHHHHHHHH


    just thought id share my thoughts


  • Closed Accounts Posts: 324 ✭✭randomcountdown


    OFF TOPIC: Googles archiving of the internet is so cool.

    Also, first years really should use Visual Studio. You'll get real error reports instead of a gameshow incorrect noise with no decent explanation or line number.

    Also Borland is a load of ****.


  • Closed Accounts Posts: 77 ✭✭davedrave


    ders a business assignment now?!

    MC tells us to assign variables the value of 0 to clear out the previous value that was stored in memory, but borland gives an error saying the value isnt used. who is right, or should i just ignore it?


  • Closed Accounts Posts: 9,390 ✭✭✭Stench Blossoms


    davedrave wrote: »
    ders a business assignment now?!

    MC tells us to assign variables the value of 0 to clear out the previous value that was stored in memory, but borland gives an error saying the value isnt used. who is right, or should i just ignore it?

    You should always initiate your variables.

    What error is Borland giving you?


  • Closed Accounts Posts: 31 mr.fancypants


    what business assignment is this???:eek::eek:


  • Advertisement
  • Registered Users Posts: 26,579 ✭✭✭✭Creamy Goodness


    it's good practice to initialise your variables to a default value - i.e. in an int's case 0 - because as MC said when you declare a variable you just get assign a bit of memory, if memory is not used the info stored there isn't removed so it's possible you could get random values inside your declared memory for your variable. now in the most cases you will get a 0 due to memory being available by the bucketfull. i'm not sure if borland would throw an error for this as that would just further prove my previous points but i'd imagine it's a warning it's throwing.

    red x - error.
    hazzard sign - warning.

    for the majority of cases in first year programming, warnings can be ignored but always helpful if you can prevent them.

    ahh this has refreshed my memories of C, ohh how i missed a proper programming language \o/


Advertisement