 |
|
 |
Do you now that the Silverlight Compiler is written in VB.Net????
You should think twice before you say that VB is used only for testing purposes.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
vector<int> vec_num; for(int i=1;i<argc;i++){ vec_num.push_back(atoi((char*)argv[i])); } sort(vec_num.begin(),vec_num.end()); copy(vec_num.begin()+((vec_num.size()-5)/2), vec_num.end()-((vec_num.size()-5)/2), ostream_iterator<int>(cout, "\n"));
|
| Sign In·View Thread·PermaLink | 5.00/5 (3 votes) |
|
|
|
 |
|
|
 |
|
 |
Anyway, a 5 is a 5 ;P. Btw I think I should learn a new language to reply to your Friday Question. Replies representing all other languages are just there in seconds you post your question.we can't make our replies unique unless I try for a deliberately different technique of the same language.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Haskell
module Main where
import Data.List import System
main = do nums <- fmap (map (read :: String -> Integer)) getArgs (print.take 5.drop (((length nums)-5) `div` 2).sort) nums
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Here's some C#.
System.Collections.Generic.List<int> list = new System.Collections.Generic.List<int> ( System.Array.ConvertAll<string,int> ( args , delegate ( string s ) { return ( (int) System.Convert.ChangeType ( s , typeof(int) ) ) ; } ) ) ;
list.Sort() ;
foreach ( int i in list.GetRange ( args.Length/2-2 , 5 ) ) { System.Console.WriteLine ( i ) ; }
This points up two shortcomings of the current (V2) implementation of .net:
1) System.Array doesn't have a GetRange() method 2) Sort() returns void -- returning a reference to the object would be more flexible
If these shortcomings were corrected, the above code could be:
pre lang=cs foreach ( int i in System.Array.ConvertAll ( args , delegate ( string s ) { return ( (int) System.Convert.ChangeType ( s , typeof(int) ) ) ; } ).Sort().GetRange ( args.Length/2-2 , 5 ) ) { System.Console.WriteLine ( i ) ; }
-- modified at 16:33 Saturday 1st September, 2007
Whoops, forgot to protect the angle-brackets
-- modified at 16:34 Saturday 1st September, 2007
And then of course I put them backward
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
 |
I think they love me most, they stole one of my articles at least three times ( and my image processing series appears by at least three different 'authors' )
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 )
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Are you the fuzzy princess Di picture or the scary Indian guy?
Deja View - the feeling that you've seen this post before.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Apparently, I am both....
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 )
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I assume one is your superhero identity and the other is your mild mannered alter ego.
Deja View - the feeling that you've seen this post before.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
yes, but can you guess which is which ?
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 )
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Obviously, judging by the hysteria here in the UK, the Princess Di look is the superhero and the scary Indian is the mild mannered one.
Deja View - the feeling that you've seen this post before.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Pete O`Hanlon wrote: Obviously, judging by the hysteria here in the UK
I think she forgot to tell anyone that if she were killed she'd be more powerful that anyone could have imagined.
It was 10 years ago FFS!!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I remember being bemused at the time, I ended up on some chat room where someone was saying 'she was the people's princess'. I made the mistake of commenting, I just had to give up, reason was dead.
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 )
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Pete O`Hanlon wrote: fuzzy (darkened) princess Di picture
link please
Roswell
"Angelinos -- excuse me. There will be civility today." Antonio VillaRaigosa City Mayor, Los Angeles, CA
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Nish tells me that photo has changed on the site.
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 )
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
 |
If everyone blogged about BuzzyCode's code thievery we could probably surpass them in google's search results 
Todd Smith
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I was contemplating signing up to post 'this is mine' messages with links back to CP.
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 )
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Well, I'm thinking of doing just that - I'm trying to write a series of blog posts on DALs at the moment, but I've not figured out how I'm going to plan it all out despite the fact I published part one already.
In the mean time I have this odd post about Pedester vallis viridis (The Glasgow Pedestrian)[^]*
* And any Latin scholars are free to tell me how to correct the latin. Glasgow is derived from the Gaelic (Glaschu) meaning Green Hollow
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
True.
I would suggest, we should compile a post comprehensively addressing the following 'nagging' issues on the software development:
1) Software Piracy 2) Plagarizm on the Web/Discussion Boards 3) How to Report 4) Measures To Safeguard ourselves from being victimized by such bullies.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |