The question was small; I wrote it on my hand so I didn’t make a mistake. My self and my peers agree that it must have been a mistake in the wording, still waiting on confirmation from the lecturer....
Type: Posts; User: dan20n
The question was small; I wrote it on my hand so I didn’t make a mistake. My self and my peers agree that it must have been a mistake in the wording, still waiting on confirmation from the lecturer....
I'm 99% sure it was in the ANSI C part of the test. But once reading it could be legal in C++ then it has put doubt in my mind. Well my answer was a pointer to an int, was a guess but anyways...
...
Ah yes, thank you for your reply. Im aware of these functions. I wrote the original post in haste because I was hoping for a quick answer as i cant find one. it bugging me big time.
Ill reword the...
I had an exam today and ran into something i have never seen before.
Question went something like this:
int **x ();
what is the type of *x?
Any ideas?
1st line of text in your link "ISBN 0-201-10088-6", if you actually read it seems theres more then one 'Dragon Book'.
Most people here will not help unless you help your self first.
It's not hard to do a search
g o o g l e
ah! stupid mistake.
Does any one know what this means?
68:45 C:\ass.cpp [Warning] multi-character character constant
The line is something like this:
database.getline(gRecs[i]->Name,20,'/n');
Slightly...
Nice work :)
On the right path, you need to specify what element in the array you want to 'delete'
array[i] = " ";
not at a computer where i can test, silly though i can not remember if the { } are...
Makes a little more sence, ill have do to some more readying, thanks for clarifying that for me. When you posted that FAQ i was like, huh? Thanks again
Thanks for your detailed reply, everything is running smoooth :)
I have a program that has an array of structs. I want to read a file which can look something like this:
one
two
three four
five
Now i want to read these files into the array of structs...
Forgot to make it a constant for anyone who cares.
*so angry*
Yeah sorry should post the code
static int MAXRECORDS = 100;
struct PetRecord {
// stuff
};
here is a mock up of what i have:
struct blah {
// some stuff
};
blah array[100];
if statements don’t need braces when you only have one statement after it. Some chose to include it anyway for one reason or another, formatting etc. At the end of the day I don’t believe there is...
If i understand correctly, how can you make a portable program that can run on other windows boxes that is safe? Considering you cant really just go grab other applications and encrypt etc that are...
I didnt want to start an argument and you did provide a good link so there was no more to add to this thread other then a small example of what i think happens too often here, who am i to judge...
Dont mean to sound cynical here, but isnt the point of a forum to have human interaction in this anti-social environment computers put us in? I think you will find a lot of questions here can be...
If anal gets one where you are, then im sure most would like to be anal ;)
Thanks for that, im glad i asked.. i often jump into these things
ANSI/ISO/IEC 14882:2003 C++ - This is the document in question. Im an intermediate programmer going through the ropes at uni, this is main()ly aimed at the experienced programmer, how important is it...
A little birdy told me that on some systems, if you do not use endl at the end of an output statement it will not do so until their are enough to make it worthwhile, anyone experience this and/or...