|
minkowski wrote: I said it would not compile since there is no definition (only a declaration) of the function nextChar()
Your point is correct (please note, however, that you would get a linker error, not a compiler one).
Now suppose nextChar is defined, somewhere (it's actual implementation doesn't matter).
minkowski wrote: but the answer was 0 or 1. I am not sure why and also how can you use the != operator outside a if or while statement (i.e. something that expects true or false ?
nextChar() != '\0';
the above expression evaluates true whenever nextChar return a value different from '\0' , false otherwise. Since true is 1 [^] (false is 0 ) an implicit cast from bool to char (that is an integer type) happens and you get ch=1 (or ch=0 ).
BTW Are you that Minkowski [^]?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: W Are you that Minkowski [^]?
or that one[^] ?!
|
|
|
|
|
Ha ha, nope I am not that Minkowski although that was quite a story !
|
|
|
|
|
I was awaiting for some geometry hints...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: I was awaiting for some geometry hints...
shhhh. dont' tell anyone, but i'm letting it leak out - a triangle... has 3 sides. shhh. don't let anyone know though
|
|
|
|
|
UserNameless wrote: a triangle... has 3 sides.
That's the reason geometry is soooo difficult to grasp: triangle => three sides ...while plain common sense would suggest triangle => three angles , or, at least, triside => three sides .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
so it should be a quad - right - angle for a rectangle ?
|
|
|
|
|
minkowski wrote: ch = nextChar() != '\0';
This is what the question is aiming at.
It's a matter of operator precedence.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
|
Dear Sir (or Madam), you're supposed to be a software developer.
Software developers are supposed to develop code.
At least developers are supposed to read forum guidelines [^] before posting here.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
|
Sorry, today's is not the Lazy Developer Day...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi..I have an regular expression "^[a-zA-Z0-9_]([^@ ]*)@[a-zA-Z0-9]{2,}((\\.[a-zA-Z0-9]{2,}))*$" for Email Validation in java.I want same to do in VC++ , is there ant way to do it...?
Plz help..!!!!
thanks in Advance.
It's not enough to be the best, when you have capability to be great....
|
|
|
|
|
|
You just about beat me to it.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
yeah - funny isnt it - sometimes I see a post and no-one's answered it, an Im thinking someone's just about to push the 'Post' button .. and then sometimes, on a very rare occasion, its me
'g'
|
|
|
|
|
Use the boost library.
Look into Boost.Regex[^].
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
|
|
Hi..
i have a basic doubt in vc++.. i am new to vc++ environment..
i want to know the type of file which affects the settings of the project in vc++ generally? (in the sense, if we edit this file, it will affect the Project Settings..)
Is it .dsp file??
please let me know if the question is vague and unclear..
Thanks..
|
|
|
|
|
Rakesh5 wrote: Is it .dsp file??
Yes. You are right.
The project settings are saved in .dsp file for VC6.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
oh okie..
What about Visual studio 2008? will it vary from version to version?
Thanks for your reply...
|
|
|
|
|
For VS 2008, the project settings are stored in a file with extension .vcproj and the workspace file has become .sln
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
As Jijo already replied, the dsp file contains the project settings, and the dsw file contains informations about the workspace (the list of projects contained in the workspace).
Do not hesitate to open these files with a text editor, they are xml files and are readable.
|
|
|
|
|
hiiii...
what is the difference between dump and snapshot?
Both are same....???
With regards...
|
|
|
|