PCbanter

PCbanter (http://www.pcbanter.net/index.php)
-   Windows 7 Forum (http://www.pcbanter.net/forumdisplay.php?f=48)
-   -   TICK NUMBERS!!!!!!!!!! (http://www.pcbanter.net/showthread.php?t=1097279)

Good Guy[_2_] June 24th 17 05:15 AM

TICK NUMBERS!!!!!!!!!!
 

Ticks #01: 40
Ticks #02: 24
Ticks #03: 23
Ticks #04: 15
Ticks #05: 11
Ticks #06: 22
Ticks #07: 43
Ticks #08: 16
Ticks #09: 01
Ticks #10: 24
Ticks #11: 56
Ticks #12: 55
Ticks #13: 21
Ticks #14: 05
Ticks #15: 11
Ticks #16: 29
Ticks #17: 04
Ticks #18: 13
Ticks #19: 35
Press any key to continue . . .

|

for (i = 1; i 10; i++)
{
Console.WriteLine("Ticks #{0}: {1}", i.ToString("D2"), rnd.Next(1, 60).ToString("D2") );
// int ticks = rnd.Next(1, 60);
}

for (i = 10; i 20; i++)
{
Console.WriteLine("Ticks #{0}: {1}", i.ToString("D2"), rnd.Next(1, 60).ToString("D2") );
// int ticks = rnd.Next(1, 60);
}

|

--
With over 500 million devices now running Windows 10, customer
satisfaction is higher than any previous version of windows.


T June 26th 17 05:11 PM

TICK NUMBERS!!!!!!!!!!
 
On 06/23/2017 09:15 PM, Good Guy wrote:

for (i = 1; i 10; i++)
{
Console.WriteLine("Ticks #{0}: {1}", i.ToString("D2"), rnd.Next(1, 60).ToString("D2") );
// int ticks = rnd.Next(1, 60);
}

for (i = 10; i 20; i++)
{
Console.WriteLine("Ticks #{0}: {1}", i.ToString("D2"), rnd.Next(1, 60).ToString("D2") );
// int ticks = rnd.Next(1, 60);
}

|



Hi Guy,

Loops, random numbers, and formatted strings. Why did you
post this? Was it in response to a question someone posted
about C?

-T


Good Guy[_2_] June 26th 17 05:15 PM

TICK NUMBERS!!!!!!!!!!
 
On 26/06/2017 17:11, T wrote:
On 06/23/2017 09:15 PM, Good Guy wrote:

for (i = 1; i 10; i++)
{
Console.WriteLine("Ticks #{0}: {1}",
i.ToString("D2"), rnd.Next(1, 60).ToString("D2") );
// int ticks = rnd.Next(1, 60);
}

for (i = 10; i 20; i++)
{
Console.WriteLine("Ticks #{0}: {1}",
i.ToString("D2"), rnd.Next(1, 60).ToString("D2") );
// int ticks = rnd.Next(1, 60);
}

|



Hi Guy,

Loops, random numbers, and formatted strings. Why did you
post this? Was it in response to a question someone posted
about C?

-T


We get all sorts here and I can't remember what this was for. My TB
keeps messages for 1 (one) day only so I don't have anything to check
against!!.


--
With over 500 million devices now running Windows 10, customer
satisfaction is higher than any previous version of windows.


T June 26th 17 05:19 PM

TICK NUMBERS!!!!!!!!!!
 
On 06/26/2017 09:15 AM, Good Guy wrote:
On 26/06/2017 17:11, T wrote:
On 06/23/2017 09:15 PM, Good Guy wrote:

for (i = 1; i 10; i++)
{
Console.WriteLine("Ticks #{0}: {1}",
i.ToString("D2"), rnd.Next(1, 60).ToString("D2") );
// int ticks = rnd.Next(1, 60);
}

for (i = 10; i 20; i++)
{
Console.WriteLine("Ticks #{0}: {1}",
i.ToString("D2"), rnd.Next(1, 60).ToString("D2") );
// int ticks = rnd.Next(1, 60);
}

|



Hi Guy,

Loops, random numbers, and formatted strings. Why did you
post this? Was it in response to a question someone posted
about C?

-T


We get all sorts here and I can't remember what this was for. My TB
keeps messages for 1 (one) day only so I don't have anything to check
against!!.


Well, the code sure was pretty. It was a good example
of formatted strings. Very easy to understand.


T June 26th 17 05:26 PM

TICK NUMBERS!!!!!!!!!!
 
On 06/26/2017 09:19 AM, T wrote:
On 06/26/2017 09:15 AM, Good Guy wrote:
On 26/06/2017 17:11, T wrote:
On 06/23/2017 09:15 PM, Good Guy wrote:

for (i = 1; i 10; i++)
{
Console.WriteLine("Ticks #{0}: {1}",
i.ToString("D2"), rnd.Next(1, 60).ToString("D2") );
// int ticks = rnd.Next(1, 60);
}

for (i = 10; i 20; i++)
{
Console.WriteLine("Ticks #{0}: {1}",
i.ToString("D2"), rnd.Next(1, 60).ToString("D2") );
// int ticks = rnd.Next(1, 60);
}

|


Hi Guy,

Loops, random numbers, and formatted strings. Why did you
post this? Was it in response to a question someone posted
about C?

-T


We get all sorts here and I can't remember what this was for. My TB
keeps messages for 1 (one) day only so I don't have anything to check
against!!.


Well, the code sure was pretty. It was a good example
of formatted strings. Very easy to understand.


"C" gives me a migraine. I usually do my heavy coding in
Perl 6. Sometimes Perl 5, if the modules haven't been fully
ported to 6. Perl can be made into a write only language
if you are not careful.

A lot of programmers use stream of conscience, making their code
devilishly difficult to understand. And the try to cram as
much on one line as possible to prove they can do it. Making
it worse to understand. Perl is really bad for this.

I was just admiring your easy to read layout.

I use "top down", which makes my code very easy to understand.
(I comes from a Modula 2 background.)

Paul[_32_] June 26th 17 05:31 PM

TICK NUMBERS!!!!!!!!!!
 
T wrote:
On 06/23/2017 09:15 PM, Good Guy wrote:

for (i = 1; i 10; i++)
{
Console.WriteLine("Ticks #{0}: {1}",
i.ToString("D2"), rnd.Next(1, 60).ToString("D2") );
// int ticks = rnd.Next(1, 60);
}

for (i = 10; i 20; i++)
{
Console.WriteLine("Ticks #{0}: {1}",
i.ToString("D2"), rnd.Next(1, 60).ToString("D2") );
// int ticks = rnd.Next(1, 60);
}

|



Hi Guy,

Loops, random numbers, and formatted strings. Why did you
post this? Was it in response to a question someone posted
about C?

-T


I think the languages used could be C#
which is otherwise known as "C sharp".

https://en.wikipedia.org/wiki/C_Shar...mming_language)

Paul

T June 26th 17 05:54 PM

TICK NUMBERS!!!!!!!!!!
 
On 06/26/2017 09:31 AM, Paul wrote:
T wrote:
On 06/23/2017 09:15 PM, Good Guy wrote:

for (i = 1; i 10; i++)
{
Console.WriteLine("Ticks #{0}: {1}",
i.ToString("D2"), rnd.Next(1, 60).ToString("D2") );
// int ticks = rnd.Next(1, 60);
}

for (i = 10; i 20; i++)
{
Console.WriteLine("Ticks #{0}: {1}",
i.ToString("D2"), rnd.Next(1, 60).ToString("D2") );
// int ticks = rnd.Next(1, 60);
}

|



Hi Guy,

Loops, random numbers, and formatted strings. Why did you
post this? Was it in response to a question someone posted
about C?

-T


I think the languages used could be C#
which is otherwise known as "C sharp".

https://en.wikipedia.org/wiki/C_Shar...mming_language)

Paul


"C" gives me a migraine. This does look a little too
elegant for C


All times are GMT +1. The time now is 12:13 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2004 - 2006 PCbanter
Comments are property of their posters