On Wed, May 09, 2007 at 10:25:29PM +0200, Bernhard Roider wrote:
> Andre Poenitz schrieb:
> >On Tue, May 08, 2007 at 12:13:29AM +0200, Uwe Stöhr wrote:
> if (
> (a == 1) && (b == 1) &&
> ((C == "bla") || (C == "blub"))
> )
>
> I mean how can the OR be
Andre Poenitz schrieb:
On Tue, May 08, 2007 at 12:13:29AM +0200, Uwe Stöhr wrote:
if (
(a == 1) && (b == 1) &&
((C == "bla") || (C == "blub"))
)
I mean how can the OR be included into an AND?
it's not a c++ question, it's just boolean algebra
i don't think it's possible
I think this got sent to the wrong list :-)
On Tue, 8 May 2007, Uwe Stöhr wrote:
I haven't found btw. no C++ manual by googling that describes the case
where AND and OR are embedded to each other. Do you know one?
That part is just from the precedence of the operators. When that order
isn't
On Tue, 8 May 2007, Abdelrazak Younes wrote:
Uwe Stöhr wrote:
+ else
+ tmp = string("");
And by the way, please use tmp.clear() instead.
And stick to less than about 72 characters/line plese :-)
/C
--
Christian Ridderström, +46-8-768 39 44
On Tue, 8 May 2007, Uwe Stöhr wrote:
You need to enclose the full expression between brackets.
if (a == 1 && b == 1 && (C == "bla" || C == "blub")) {
...
}
This is what I first tried, but it doesn't compile: " Syntax error "(" "
Then you have some other problem that's confusing you.
/C
Uwe Stöhr wrote:
+ else
+ tmp = string("");
And by the way, please use tmp.clear() instead.
Abdel.
Uwe Stöhr wrote:
Attached is the patch that fixes the problem, that babel isn't called
when you are foreign languages in CJK and Armenian-documents.
I think this is now the last remaining babel bug.
Is my patch correct? It works here for all my testcases but you have
perhaps a better solution
> You need to enclose the full expression between brackets.
>
> if (a == 1 && b == 1 && (C == "bla" || C == "blub")) {
> ...
> }
This is what I first tried, but it doesn't compile: " Syntax error "(" "
---
What about my patch?
regards Uwe
On Tue, 8 May 2007, Abdelrazak Younes wrote:
I am not sure I understand your question though...
Abdel.
I think the "problem" is that his code was valid to begin with...
if ( (a == 1) && (b == 1) && ((C == "bla") || (C == "blub")) )
...
/Christian
--
Christian Ridderström,
Uwe Stöhr wrote:
Attached is the patch that fixes the problem, that babel isn't called
when you are foreign languages in CJK and Armenian-documents.
I think this is now the last remaining babel bug.
Is my patch correct? It works here for all my testcases but you have
perhaps a better solution
Uwe Stöhr wrote:
Andre Poenitz schrieb:
Why that? In Delphi I use such contructs very often. The syntax would
then be
if (a = 1) and (b = 1) and
( (C = "bla") or (C = "blub") ) then
So I assumed that this is possible in C++ too.
I still see an 'or'.
Yes of course. I don't want to le
Andre Poenitz schrieb:
Why that? In Delphi I use such contructs very often. The syntax would then
be
if (a = 1) and (b = 1) and
( (C = "bla") or (C = "blub") ) then
So I assumed that this is possible in C++ too.
I still see an 'or'.
Yes of course. I don't want to let it go. I just wa
On Tue, May 08, 2007 at 12:13:29AM +0200, Uwe Stöhr wrote:
> >> if (
> >>(a == 1) && (b == 1) &&
> >>((C == "bla") || (C == "blub"))
> >> )
> >>
> >>I mean how can the OR be included into an AND?
> >
> > it's not a c++ question, it's just boolean algebra
> >
> > i don't th
On Tue, 8 May 2007, [EMAIL PROTECTED] wrote:
On Mon, 7 May 2007, Andre Poenitz wrote:
> How is the syntax in C++ for this logic:
>
> if (
> (a == 1) && (b == 1) &&
> ((C == 1) || (C == -1))
> )
>
> I mean how can the OR be included into an AND?
The only or-less version I ca
>> if (
>>(a == 1) && (b == 1) &&
>>((C == "bla") || (C == "blub"))
>> )
>>
>>I mean how can the OR be included into an AND?
>
> it's not a c++ question, it's just boolean algebra
>
> i don't think it's possible
Why that? In Delphi I use such contructs very often. The sy
On Mon, 7 May 2007, Andre Poenitz wrote:
How is the syntax in C++ for this logic:
if (
(a == 1) && (b == 1) &&
((C == 1) || (C == -1))
)
I mean how can the OR be included into an AND?
The only or-less version I can think of is
if (a == 1 && b == 1 && C*C == 1)
But that's a bit
Andre Poenitz schrieb:
On Mon, May 07, 2007 at 11:21:32PM +0200, Bernhard Roider wrote:
I have a stupid C++ question:
How is the syntax in C++ for this logic:
it's not a c++ question, it's just boolean algebra
Integers...
True. I just looked at the logic.
Bernhard
On Mon, May 07, 2007 at 11:21:32PM +0200, Bernhard Roider wrote:
>
> >
> >I have a stupid C++ question:
> >
> >How is the syntax in C++ for this logic:
> >
>
> it's not a c++ question, it's just boolean algebra
Integers...
Andre'
On Mon, May 07, 2007 at 11:07:59PM +0200, Uwe Stöhr wrote:
> Attached is the patch that fixes the problem, that babel isn't called when
> you are foreign languages in CJK and Armenian-documents.
>
> I think this is now the last remaining babel bug.
>
> Is my patch correct? It works here for all
I have a stupid C++ question:
How is the syntax in C++ for this logic:
it's not a c++ question, it's just boolean algebra
if (
(a == 1) && (b == 1) &&
((C == 1) || (C == -1))
)
I mean how can the OR be included into an AND?
i don't think it's possible
Bernhard
Attached is the patch that fixes the problem, that babel isn't called when you are foreign languages
in CJK and Armenian-documents.
I think this is now the last remaining babel bug.
Is my patch correct? It works here for all my testcases but you have perhaps a
better solution.
---
I have a s
21 matches
Mail list logo