|
First, put your foot down on the clutch.
Second, put it into reverese gear.
Third, slightly press down on the accelerator and bring the clutch up till it starts to reverse (aplly more accelartion as needed)... easy
...OH, String - sorry i thought you said car... though technically you didnt speak at all... you not still reading are you?... though why am i still talking (i mean writting) complete rubbish?!?!? TGIF
(On a serious note though (as found hidden between D# and E(well perhaps 90% serious :P)) <- i hate it when that happens lol
If you are doing a homework assignment of some sort may i suggest you comment out any code you have taken from the other posts (still keep thou for proof of concept) and write something like as follows - its all about the theory really.
public string MyReverseFunction(string s)
{
string result = "";
for(int i = s.Length-1; i >= 0; i--)
result += s[i];
return result;
}
Oh and make a note that it is prob best to use a StringBuilder to help with performance on large strings
If only MySelf.Visible was more than just a getter...
A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting
|
|
|
|
|
Hello,
i have a little problem, i have more *.DLL-files, one for my core-functions/classes and one api-dll, where i have my classes and functions, which other developer are able to use, but now i must protect some classes from the eyes of other developers. How can i do that? A protected or private class isn't possible...
Or... how to make, that the other developer only get's a signature of my clases, but not really what's in there, because i don't want, that he can use from my API my core-classes (API.DLL has a reference to CORE.dll)
Thanks
modified on Friday, March 6, 2009 3:55 AM
|
|
|
|
|
softwarejaeger wrote: but now i must protect some classes from the eyes of other developers.
So, you just only want to use the dll yourself, rather than other developer? Can "internal" keyword meet your needs?
I Love KongFu~
|
|
|
|
|
|
I don't entirely understand your question. If you don't want others to access your classes, use internal like the others said. If you don't want people to decompile your code, get yourself an obfuscator.
|
|
|
|
|
Hi there,
i'm really stucked with this. My problem ist that i´ve some Koordinates given by lat="48234421" lon="9584631" (which means 9deg.59min.46.31sec) and i need to convert them to decimal. eg: lon="9584631" -> lon="1128083" (which means 11deg.28083). i´ve looked at the tutorials here but none did exactly what i want. would be grat if someone could help me.
greetz
|
|
|
|
|
rumpelstielz wrote: i need to convert them to decimal. eg: lon="9584631" -> lon="1128083" (which means 11deg.28083).
How could this happen?
I Love KongFu~
|
|
|
|
|
ups my fault. i made a misstake again.
lat=482344 ->lat 4839556
it´s for converting from nmea to google earth kml files if someone cares.
|
|
|
|
|
I still don't get excatly your question, but I've google for something like this:
http://home.online.no/~sigurdhu/Deg_formats.htm
(which is 2nd answer for "nmea coordinates" in google btw)
It has conversions from dd.ddddd to dd.mm.ss, is this is what you were looking for?
|
|
|
|
|
|
How about explaining it in detail?
|
|
|
|
|
basically, i can achieve it by having an overloaded funciton, but, it is just a small issue that i do not want to have another overload of the function. I am having a funciton with 2 parameters and now i want to introduce a 3rd optional parameter. I just want to know whether the caller of the function passed the 3rd argument or not?
|
|
|
|
|
Simple
When declaring an optional parameter you have to give it a default value.
Just check if the value is different than the default, if it is it was passed, if its the same it wasn't.
|
|
|
|
|
|
I don't want to be nit-picky, but C# 4.0 actually does support default parameters
modified 12-Sep-18 21:01pm.
|
|
|
|
|
In Microsoft published Framework 2.0, few examples exists when you need to passing optional parameters... i haven't book with me now but i know it is possible.
I'll show you examples later bec i already used it....
Thanks
Naresh Prakash
|
|
|
|
|
I also heard they were already supported in the .NET 2.0 CLR, but for some reason the features were not exposed to the C# language.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
abhiram_nayan wrote: now i want to introduce a 3rd optional parameter.
Would you please paste the code? I really do not know how to do this...
I Love KongFu~
|
|
|
|
|
If it is there then it is passed...
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
For a pretty damn perfect explaination MSDN[^]
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Hi, dude, optional keyword is for VB.net, not C#.
I Love KongFu~
|
|
|
|
|
There is nothing like optional parameter in C#.
Time is the best teacher; unfortunately it kills all of its students.
जय हिंद
|
|
|
|
|
Not until C# 4, at least.
(Oook, DaveyM69 posted the same thing at the same time... )
|
|
|
|
|
Can't do that until C# 4.0 which hasn't been released yet.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
this means, i should go with an overloaded function, that's it?!
|
|
|
|