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,...
Type: Posts; User: mcgeady
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,...
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?
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...
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....
You're a star snoopy. :)
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...
thanks a lot, thats a great help.
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
and just a quick question. When writing the pseudo code what should I do for the new functions?
Cheers.
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);...
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...
Ah, its working fine now. Thanks guys.
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...
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...
#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: ");...
Ok, thanks a lot. I'll check this topic in the morning for replies so if anyone has anything to add please do.
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...
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...
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:...