Search:

Type: Posts; User: mcgeady

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,505

    Starting a program

    I have an assignment to do for college but I'm not on here to cheat. :) Basically I've read 200 pages of my C++ programming book on everything up to classes, pointers, memory allocation, overloading,...
  2. Replies
    4
    Views
    997

    I'm don't really know much about this kind of...

    I'm don't really know much about this kind of thing but I think its a new Struct, not a class. How would I access a particular part of it?
  3. Replies
    4
    Views
    997

    Help with line of code

    Could someone tell me what this like of code means:


    num[1] = new Person("James", 6, 75);
    num[2] = new Person...
    I know what most of it means but what does "new" mean? How do I access the...
  4. Replies
    1
    Views
    1,159

    Microprocessors/Debug/Assembly

    As you can probably see by the title I'm pretty much lost in the subject of Microprocessors in 2nd year of CS degree. I missed the first 2 weeks of college and have been too far behind ever since....
  5. Replies
    11
    Views
    3,191

    You're a star snoopy. :)

    You're a star snoopy. :)
  6. Replies
    11
    Views
    3,191

    I've noticed that when I convert the temperatures...

    I've noticed that when I convert the temperatures to Fahrenheit and then try to convert back to Celsius, all its doing is using the Celsius formula ((Celsius = ( ( (Fahrenheit - 32) / 9) * 5 )) on...
  7. Replies
    11
    Views
    3,191

    thanks a lot, thats a great help.

    thanks a lot, thats a great help.
  8. Replies
    11
    Views
    3,191

    Does anyone have any idea? BTW is this what the...

    Does anyone have any idea? BTW is this what the pseudo code should look like?:


    BEGIN MAIN

    WHILE (option != 5)
    DISPLAY Menu
    INPUT Option

    SWITCH country
  9. Replies
    11
    Views
    3,191

    and just a quick question. When writing the...

    and just a quick question. When writing the pseudo code what should I do for the new functions?

    Cheers.
  10. Replies
    11
    Views
    3,191

    Thanks a lot for the replies. I've written the...

    Thanks a lot for the replies. I've written the code but there are a couple of bits I'm finding it hard to do. Here's the code:


    #include <stdio.h>
    #define SIZE 5

    void read (float *, float);...
  11. Replies
    11
    Views
    3,191

    Pass by reference

    Hi, I'm having a problem using pass by reference to pass arrays and floats through functions. This is my assignment:
    http://www.comp.dit.ie/mcollins/ft228-1/assignment2.html

    The code I've got so...
  12. Thread: Arrays

    by mcgeady
    Replies
    7
    Views
    1,288

    Ah, its working fine now. Thanks guys.

    Ah, its working fine now. Thanks guys.
  13. Thread: Arrays

    by mcgeady
    Replies
    7
    Views
    1,288

    and just to add to my last post. I took the...

    and just to add to my last post. I took the do-while out for experimentation and its obviously ok when entering a number between 1-12 but when i enter a number outside this range it returns a random...
  14. Thread: Arrays

    by mcgeady
    Replies
    7
    Views
    1,288

    Thanks, thats very clear but I entered the number...

    Thanks, thats very clear but I entered the number 13 and it skipped to the next line, I then entered a number in the range of 1-12 and it skipped a line again (and keeps doing so until i exit the cmd...
  15. Thread: Arrays

    by mcgeady
    Replies
    7
    Views
    1,288

    Arrays

    #include <stdio.h>
    #define NO_OF_MONTHS 12
    main()
    {
    int days[NO_OF_MONTHS] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
    int month;

    printf("Please enter a month: ");...
  16. Replies
    10
    Views
    6,037

    Ok, thanks a lot. I'll check this topic in the...

    Ok, thanks a lot. I'll check this topic in the morning for replies so if anyone has anything to add please do.
  17. Replies
    10
    Views
    6,037

    So would the following be OK (changes in bold): ...

    So would the following be OK (changes in bold):

    CASE POUND
    DISPLAY coversion options
    INPUT option
    IF option is euro to pound
    prompt for amount
    INPUT amount
    convert...
  18. Replies
    10
    Views
    6,037

    Edited. :) I only pasted a section of the...

    Edited. :)


    I only pasted a section of the pseudocode which is why there is no end.


    Thats one of the main questions I need answered. Is it OK for the first 3 cases to be identical or should...
  19. Replies
    10
    Views
    6,037

    Pseudocode help!!!

    Hi, I have an assignment to do and my Pseudocode has to be in by tomorrow (its currently 10.30pm in Ireland). The assignment is described here:...
Results 1 to 19 of 19