Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #163774
| From | Keith Thompson <Keith.S.Thompson+u@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: I need a c program that prints the following statement |
| Date | 2021-12-10 11:04 -0800 |
| Organization | None to speak of |
| Message-ID | <87wnkc9t8b.fsf@nosuchdomain.example.com> (permalink) |
| References | <866a68aa-fd34-4e8e-ac55-824bf83c9412n@googlegroups.com> <3da845b5-5ac4-4fda-8ec5-f2d57acbbf37n@googlegroups.com> <035a433d-a532-46e4-aa22-912c42c1f297n@googlegroups.com> <sot5po$o4u$1@dont-email.me> <cffc2fb1-f83f-4820-8602-c03987d071den@googlegroups.com> |
Suresh Devanathan <idatarm@gmail.com> writes:
> On Thursday, December 9, 2021 at 10:02:31 AM UTC-5, Lew Pitcher wrote:
>> On Thu, 09 Dec 2021 06:15:38 -0800, Suresh Devanathan wrote:
>>
>> > On Thursday, December 9, 2021 at 7:31:10 AM UTC-5, Suresh Devanathan
>> > wrote:
>> >> On Friday, October 16, 2020 at 5:39:58 PM UTC-4, Suresh Devanathan
>> >> wrote:
>> >> > "FC: 100% VL:1 time:0.0s"
>> >
>> > if the output of the program is unpredictable unless you run it. what
>> > will a program that prints the above statement look like?
>> Only you can tell us the answer to that question.
>>
>> Outside of the limited requirements that you have posted already (in
>> 2020, and now), we have no idea of what this program does, or how it does
>> it. In 2020, you received a number of suggestions, including both a
>> solution to the problem as you presented it then, and a framework
>> solution for the problem as you present it now. I suggest that you either
>> review those solutions posted in 2020, or provide more details on the
>> function and operation of the program you seek.
>> >> >
>> >> > and you need to also add the output of the program here
>> HTH
>
> no, i changed from "FL:1" to "VL:1"
>
> the actual statement is
> "FC: 100% VL:1 time:0.0s"
You seem not to understand what people are asking from you.
You've asked us how to write a C program to display a particular string.
You've only shown us the string itself, and told us nothing about its
meaning. We can see that it includes some numbers, but you haven't told
us how they're computed or what they mean, if anything. As far as we
can tell, they're just sequences of decimal digits. The whole string
you showed us is fundamentally different than "hello, world"
This line of code:
puts("FC: 100% VL:1 time:0.0s");
satisfies your requirements *as you have stated them to us*. We all
understand that it doesn't meet your actual requirements, but you
haven't told us what those requirements are. Can the "FC" and "VL"
substrings vary? If so, how? Can the 100% and 0.0 numbers vary? If
so, how are they determined?
You've also shown no attempt to solve the problem yourself.
We have given you all the help that we can with the information we have.
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Philips
void Void(void) { Void(); } /* The recursive call of the void */
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: I need a c program that prints the following statement Suresh Devanathan <idatarm@gmail.com> - 2021-12-09 04:29 -0800
Re: I need a c program that prints the following statement Suresh Devanathan <idatarm@gmail.com> - 2021-12-09 06:15 -0800
Re: I need a c program that prints the following statement Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2021-12-09 15:02 +0000
Re: I need a c program that prints the following statement Suresh Devanathan <idatarm@gmail.com> - 2021-12-10 05:42 -0800
Re: I need a c program that prints the following statement Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2021-12-10 15:48 +0000
Re: I need a c program that prints the following statement Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2021-12-10 11:04 -0800
Re: I need a c program that prints the following statement James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-12-09 14:50 -0500
csiph-web