What's a reference string?
A string is a sequence of characters.
A reference string is a string that points to something?
It can point to anything?
What's a reference string?
A string is a sequence of characters.
A reference string is a string that points to something?
It can point to anything?
What is the context?
A string reference is a C++ term that relates to a variable that is a reference to a string. In this context a reference is like an alias for another variable - it's "another name for the same variable" or "another way to get to the variable".
The C language doesn't have references, so it's either that you [or someone else] are mixing C and C++ nomenclature, or you the meaning is something else.
--
Mats
Last edited by matsp; 05-14-2009 at 04:52 AM. Reason: Fix typos
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Where did you hear of this thing? I've been studying C for more than a year now and I do not think "reference string" has any particular meaning, but it would be an easy term to create in a discussion of some implementation pattern or algorithm.
So if you provide a bit of context maybe we can figure it out. [edit] matsp will be correct (I don't know C++).
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
They're probably thinking of a string literal. All you can really do is reference it, since you aren't allowed to change them.
Quzah.
Hope is the first step on the road to disappointment.
pseudo code:
...
for
read next element sp of RS.
...
Then instruction:
The remainder of the program executes a loop, one iteration per element in the reference string RS
If this is definitely a C (not C++) program, probably this is a normal "string" with a special descriptive moniker added for the purposes I mentioned earlier (ie, rather than just call it "the string"). If this is pseudo-code description of an algorithm which could be implemented in any language, then that is definitely what's going on.
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
To me, that sounds like simply a name for a string, referring to the contents perhaps? What is the purpose of the overall task? Is it perhaps to do with some sort of references (literature, geographic, etc)
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.