|
No, I mean having more things that have to be true (for example) in the if statement? I'm sorry, it's complicated...
|
|
|
|
|
Only because you're not making sense. Try giving a real world example, so we can work out what you mean.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Is that what he means ?
MasterSharp, this is why we discouraged you from writing owner drawn controls yesterday. Not because we don't want to help, but because you need to grasp the basics first. If this is what you meant, I urge you again to buy a book on C# and work through it, so you cover these sort of elementary gaps in your knowledge and build a firm foundation you can build on.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I don't follow. condition is different every time ?
if (x == 1 || y == 2 || z == 3)
will succeed if only one of those statements is true. && requires they are all true.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
How many '&&'s can you use, is what I mean. I guess that what it boils down to.
|
|
|
|
|
Until your & key wears out, and even then you can copy-and-paste.
|
|
|
|
|
Oh... I thought you could only use it once...
|
|
|
|
|
Well, next time... TRY IT!! You ain't gonna hurt the computer.
|
|
|
|
|
Well, it just seemed it would screw up tough, so thanks for the advice!
|
|
|
|
|
You can't screw up... unless you're testing a hard-disk-wiper-outer or something.
|
|
|
|
|
PIEBALDconsult wrote: unless you're testing a hard-disk-wiper-outer or something.
well, you know I started out with my first computer project to be a disk operating system... but then I smartly decided to start with drawing user interfaces. So far, in the last 27 years of computer programmng, I have crashed many computers, but I have never managed to crash a user. :->
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
PIEBALDconsult wrote: Well, next time... TRY IT!!
Programming is like pinball. The reward for doing it well is the
opportunity of doing it again.
- programmers' saying
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
But my wife is better at pinball than I am... oh, wait a minute...
Programming Sex is like pinball. The reward for doing it well is the opportunity of doing it again.
|
|
|
|
|
Keep my thread clean and PG. Kid, here.
|
|
|
|
|
"ERROR: You've mortally wounded the compiler, please refrain from using Visual Studio again. FOREVER!"
|
|
|
|
|
Seriously, you will never learn anything if you don't try basic stuff like this before asking others to explain it to you.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
OK, I got it, stop jumping on me!
|
|
|
|
|
Stop asking to be jumped upon.
|
|
|
|
|
Hello
If i have a string how i can split it into character
Ex:
200134 i want to have 2;0;0;1;3;4
Thanks a lot
Assaf
|
|
|
|
|
you can access individual characters in a string by indexing string[index] ;
you can convert the entire string to a char array String.ToCharArray()
and you can look that up in the documentation; I think you best start studying C# in a book !
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
|
Does anyone know how I can load a png or a jpg, change it's DPI ( so change the metadata that represents the DPI settng, NOT resize the image ) and then save that change ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Great - thanks.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|