| Topic: |
DEVELOP > c-Plus-Plus |
| User: |
"Q_Q" |
| Date: |
16 Aug 2007 05:28:23 PM |
| Object: |
Built in variable? |
Hi, I recently start to learn C++ and I have a question. Please help.
While looking at pieces of codes to familiarize myself with C++, I
encounter these strange variables. I don't even know if they are
variables. I've tried to search on the internet and look through
several books for them, but couldn't find them anywhere. They are
%%
$$
$1
$2
I know $1 and $2 are kind of familiar (perl). But %% and $$ are
really strange to me.
Thank you for your help
.
|
|
| User: "=?ISO-8859-1?Q?Erik_Wikstr=F6m?=" |
|
| Title: Re: Built in variable? |
16 Aug 2007 05:56:24 PM |
|
|
On 2007-08-17 00:28, Q_Q wrote:
Hi, I recently start to learn C++ and I have a question. Please help.
While looking at pieces of codes to familiarize myself with C++, I
encounter these strange variables. I don't even know if they are
variables. I've tried to search on the internet and look through
several books for them, but couldn't find them anywhere. They are
%%
$$
$1
$2
I know $1 and $2 are kind of familiar (perl). But %% and $$ are
really strange to me.
Where ever you found them it was not in C++, there are not built-in, or
predefined variables in C++.
--
Erik Wikström
.
|
|
|
| User: "Daniel Kraft" |
|
| Title: Re: Built in variable? |
17 Aug 2007 03:58:30 AM |
|
|
Hi, I recently start to learn C++ and I have a question. Please help.
While looking at pieces of codes to familiarize myself with C++, I
encounter these strange variables. I don't even know if they are
variables. I've tried to search on the internet and look through
several books for them, but couldn't find them anywhere. They are
%%
$$
$1
$2
I know $1 and $2 are kind of familiar (perl). But %% and $$ are
really strange to me.
Where ever you found them it was not in C++, there are not built-in, or
predefined variables in C++.
Looks a bit like yacc/bison. But as Erik said, nothing to do with C++
Cheers,
Daniel
--
Got two Dear-Daniel-Instant Messages
by MSN, associate ICQ with stress--so
please use good, old E-MAIL!
.
|
|
|
| User: "Q_Q" |
|
| Title: Re: Built in variable? |
17 Aug 2007 08:28:56 PM |
|
|
On Aug 17, 3:58 am, Daniel Kraft <d...@domob.eu> wrote:
Hi, I recently start to learn C++ and I have a question. Please help.
While looking at pieces of codes to familiarize myself with C++, I
encounter these strange variables. I don't even know if they are
variables. I've tried to search on the internet and look through
several books for them, but couldn't find them anywhere. They are
%%
$$
$1
$2
I know $1 and $2 are kind of familiar (perl). But %% and $$ are
really strange to me.
Where ever you found them it was not in C++, there are not built-in, or
predefined variables in C++.
Looks a bit like yacc/bison. But as Erik said, nothing to do with C++
Cheers,
Daniel
--
Got two Dear-Daniel-Instant Messages
by MSN, associate ICQ with stress--so
please use good, old E-MAIL!
Hi Daniel, I found it. It was part of Flex.
Thanks,
Binh Pham
.
|
|
|
|
|
|

|
Related Articles |
|
|