Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > How to change handle range of integer

Reply
Thread Tools

How to change handle range of integer

 
 
Keith Thompson
Guest
Posts: n/a
 
      02-27-2011
moonhkt <> writes:
> On 2月27日, 上午5時53分, MartinBroadhurst <martin.broadhu...@gmail.com>
> wrote:
>> On Feb 26, 7:09*am, moonhkt <moon...@gmail.com> wrote:
>>
>> > Hi All

>>
>> > How to using C to change input value "0-4,10,20,40-45" to *to
>> > "0,1,2,3,4,10,20,40,41,42,43,44,45" ?

>>
>> > moonhkt

>>
>> If you use Perl, you can just *eval* ranges containing hyphenated
>> spans. There is a module called Set::IntSpan that is built on this
>> principle:
>>
>> http://search.cpan.org/dist/Set-IntSpan/IntSpan.pm

>
> Due to I try using C.


I can't even figure out how many words you left out of that sentence.

--
Keith Thompson (The_Other_Keith) kst- <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
 
Reply With Quote
 
 
 
 
Hans Vlems
Guest
Posts: n/a
 
      02-27-2011
> > Due to I try using C.
>
> I can't even figure out how many words you left out of that sentence.
>

Possibly none when translated back to the OP's native language <g>
Hans
 
Reply With Quote
 
 
 
 
Kenny McCormack
Guest
Posts: n/a
 
      02-27-2011
In article <7d5646c4-e481-49b2-8a9a->,
Hans Vlems <> wrote:
>> > Due to I try using C.

>>
>> I can't even figure out how many words you left out of that sentence.
>>

>Possibly none when translated back to the OP's native language <g>
>Hans


And yet, for all that, it is perfectly clear what he meant.

--
Faced with the choice between changing one's mind and proving that there is
no need to do so, almost everyone gets busy on the proof.

- John Kenneth Galbraith -

 
Reply With Quote
 
moonhkt
Guest
Posts: n/a
 
      02-27-2011
On Feb 27, 9:44*pm, gaze...@shell.xmission.com (Kenny McCormack)
wrote:
> In article <7d5646c4-e481-49b2-8a9a-a621e5ed0...@q14g2000vbf.googlegroups..com>,
> Hans Vlems *<hvl...@freenet.de> wrote:
>
> >> > Due to I try using C.

>
> >> I can't even figure out how many words you left out of that sentence.

>
> >Possibly none when translated back to the OP's native language <g>
> >Hans

>
> And yet, for all that, it is perfectly clear what he meant.
>
> --
> Faced with the choice between changing one's mind and proving that there is
> no need to do so, almost everyone gets busy on the proof.
>
> * * - John Kenneth Galbraith -



I found 'cut' source code in Internet, 'cut' using -c parameter. But I
can not understanding, how Set_list and set field_list[prevField++]
works. I try to add code to display field_list array. But, I still can
not understand. (I am not a C programmer, I am UNIX script Writer)
 
Reply With Quote
 
Hans Vlems
Guest
Posts: n/a
 
      02-27-2011
On 27 feb, 14:44, gaze...@shell.xmission.com (Kenny McCormack) wrote:
> In article <7d5646c4-e481-49b2-8a9a-a621e5ed0...@q14g2000vbf.googlegroups..com>,
> Hans Vlems *<hvl...@freenet.de> wrote:
>
> >> > Due to I try using C.

>
> >> I can't even figure out how many words you left out of that sentence.

>
> >Possibly none when translated back to the OP's native language <g>
> >Hans

>
> And yet, for all that, it is perfectly clear what he meant.
>


Absolutely
 
Reply With Quote
 
Keith Thompson
Guest
Posts: n/a
 
      02-27-2011
Hans Vlems <> writes:
>> > Due to I try using C.

>>
>> I can't even figure out how many words you left out of that sentence.
>>

> Possibly none when translated back to the OP's native language <g>
> Hans


Hans, your newsreader should add attribution lines when you post
a followup, such as the "Hans Vlems <> writes:"
lines above. Please leave those lines in place. Knowing who said
what makes it easier to follow the discussion.

--
Keith Thompson (The_Other_Keith) kst- <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Change a string to an integer, report an error if the string does not represent an integer? Randy Kramer Ruby 12 10-25-2007 09:56 PM
Possible to handle web requests without an ASPX page? i.e. have DLL handle request. jdlwright@shaw.ca ASP .Net 2 05-31-2005 05:42 PM
how to handle command line output(not terminal handle) Leon Python 2 11-04-2004 05:16 AM
File Handle Reading Blues: Rereading a File Handle for Input Dietrich Perl 1 07-22-2004 10:02 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57