473,396 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

DEVCPP + rewind(stdin)

Where is exactly neccesary to put "rewind(stdin)"?
After a printf? Before a scanf?

I have a lot of problems with strings...
If somebody know any good document, please let me know where is...

Thank you.
May 24 '06 #1
24 3372
Olaf "El Blanco" wrote:
Where is exactly neccesary to put "rewind(stdin)"?
After a printf? Before a scanf?
I've never needed to put it anywhere. I have, on the other hand, needed
to use fflush(stdout) before waiting for input.
I have a lot of problems with strings...
If somebody know any good document, please let me know where is...


The comp.lang.c FAQ http://c-faq.com/
K&R2 (see the FAQ for the full reference).
--
Flash Gordon, living in interesting times.
Web site - http://home.flash-gordon.me.uk/
comp.lang.c posting guidelines and intro:
http://clc-wiki.net/wiki/Intro_to_clc
May 24 '06 #2
Olaf "El Blanco" said:
Where is exactly neccesary to put "rewind(stdin)"?
I've never done that in my life.

Think about what it would mean.

puts("Dear user: I know you have just spent the last twenty");
puts("minutes typing in all that stuff, and I thank you for");
puts("it - but now I'd like you to do it all again, EXACTLY");
puts("THE SAME as you did it last time.");

rewind(stdin);

I don't see that program lasting through to a second run.
After a printf? Before a scanf?
Neither.
I have a lot of problems with strings...
If somebody know any good document, please let me know where is...


The best way to capture text input is either a single character at a time,
ONLY, or a line at a time, ONLY. One or the other, and which one you choose
depends on what you're doing.

I've put a little essay together on the subject of capturing text data a
line at a time, and you can find it at:

<http://www.cpax.org.uk/prg/writings/fgetdata.php>

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
May 24 '06 #3
Richard Heathfield <in*****@invalid.invalid> writes:
Olaf "El Blanco" said:
Where is exactly neccesary to put "rewind(stdin)"?


I've never done that in my life.

Think about what it would mean.

puts("Dear user: I know you have just spent the last twenty");
puts("minutes typing in all that stuff, and I thank you for");
puts("it - but now I'd like you to do it all again, EXACTLY");
puts("THE SAME as you did it last time.");

rewind(stdin);

I don't see that program lasting through to a second run.

[...]

If stdin is coming from an interactive device, rewind()ing it doesn't
make much sense. But if it's coming from, say, a disk file, then
rewind() *might* be a sensible thing to do.

However, the source from which stdin receives its input is generally
outside the control of the program. The rewind() function has its
uses, but if you're going to need to rewind() something, it should
probably be a named file (opened with fopen()), not stdin.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
May 24 '06 #4
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.org> wrote:
However, the source from which stdin receives its input is generally
outside the control of the program. The rewind() function has its
uses, but if you're going to need to rewind() something, it should
probably be a named file (opened with fopen()), not stdin.


I find this unconvincing. The program has no control over whether
stdin is rewindable, but equally it has no control over whether stdin
is a file containing the right data, or even data in the right format.
It has no control over whether it's a file that it makes sense to open
in text mode. And on the other hand on many modern operating systems
it has no control over whether a named file is rewindable, especially
if the file name is not built in to the program. About the only way
to be sure a file is rewindable is for the program to create it
itself!

If you want to make your program robust against non-rewindable (or
non-fseekable) files, whether named or not, you need to use some
mechanism outside the C standard. For example in unix you might
test a file with stat() and copy it to a temporary file if necessary.

-- Richard
May 24 '06 #5
ri*****@cogsci.ed.ac.uk (Richard Tobin) writes:
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.org> wrote:
However, the source from which stdin receives its input is generally
outside the control of the program. The rewind() function has its
uses, but if you're going to need to rewind() something, it should
probably be a named file (opened with fopen()), not stdin.


I find this unconvincing. The program has no control over whether
stdin is rewindable, but equally it has no control over whether stdin
is a file containing the right data, or even data in the right format.
It has no control over whether it's a file that it makes sense to open
in text mode. And on the other hand on many modern operating systems
it has no control over whether a named file is rewindable, especially
if the file name is not built in to the program. About the only way
to be sure a file is rewindable is for the program to create it
itself!

If you want to make your program robust against non-rewindable (or
non-fseekable) files, whether named or not, you need to use some
mechanism outside the C standard. For example in unix you might
test a file with stat() and copy it to a temporary file if necessary.


I suppose it's a matter of style. There's nothing illegal about
rewind(stdin), but in practice it's more likely to fail than
rewind(some_file_I_opened_explicitly).

I would consider it poor style to attempt to call rewind(stdin). In
normal usage, my expectation is that a program will read its standard
input from beginning to end, and will not attempt to do any
re-positioning.

I was about to mention that you should, of course, always check
whether rewind() was successful -- but I see that you can't do that.
rewind(stream) is equivalent to (void)fseek(stream, 0L, SEEK_SET),
except that it clears the error indicator for the stream. In other
words, it deliberately ignores any errors.

Why was rewind() defined this way?

Based on that, I think I'd avoid using rewind() at all.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
May 24 '06 #6
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.org> wrote:
In
normal usage, my expectation is that a program will read its standard
input from beginning to end, and will not attempt to do any
re-positioning.


I suppose expectations vary :-) I regard standard input as a natural
way to provide a program's primary input, regardless of how it is used
(I usually follow the unix convention of using stdin if no file name
is given on the command line).

Rewinding standard input in C has a long history. Here is an amusing
example predating the modern standard i/o library:

http://minnie.tuhs.org/UnixTree/V5/u...s1/goto.c.html

-- Richard
May 24 '06 #7
Keith Thompson wrote:
Richard Heathfield <in*****@invalid.invalid> writes:
Olaf "El Blanco" said:
Where is exactly neccesary to put "rewind(stdin)"?


I've never done that in my life.

Think about what it would mean.

puts("Dear user: I know you have just spent the last twenty");
puts("minutes typing in all that stuff, and I thank you for");
puts("it - but now I'd like you to do it all again, EXACTLY");
puts("THE SAME as you did it last time.");

rewind(stdin);

I don't see that program lasting through to a second run.

[...]

If stdin is coming from an interactive device, rewind()ing it
doesn't make much sense. But if it's coming from, say, a disk
file, then rewind() *might* be a sensible thing to do.

However, the source from which stdin receives its input is
generally outside the control of the program. The rewind()
function has its uses, but if you're going to need to rewind()
something, it should probably be a named file (opened with
fopen()), not stdin.


And if the systems works the way I think it should work, then
rewind will fail when stdin is interactive, and work when stdin has
been redirected to a disk file.

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>
May 24 '06 #8
CBFalconer <cb********@yahoo.com> writes:
Keith Thompson wrote:

[...]
If stdin is coming from an interactive device, rewind()ing it
doesn't make much sense. But if it's coming from, say, a disk
file, then rewind() *might* be a sensible thing to do.

However, the source from which stdin receives its input is
generally outside the control of the program. The rewind()
function has its uses, but if you're going to need to rewind()
something, it should probably be a named file (opened with
fopen()), not stdin.


And if the systems works the way I think it should work, then
rewind will fail when stdin is interactive, and work when stdin has
been redirected to a disk file.


Except that rewind() has no mechanism for telling you that it failed.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
May 24 '06 #9
On 2006-05-24, Keith Thompson <ks***@mib.org> wrote:
Richard Heathfield <in*****@invalid.invalid> writes:
Olaf "El Blanco" said:
Where is exactly neccesary to put "rewind(stdin)"?


I've never done that in my life.

Think about what it would mean.

puts("Dear user: I know you have just spent the last twenty");
puts("minutes typing in all that stuff, and I thank you for");
puts("it - but now I'd like you to do it all again, EXACTLY");
puts("THE SAME as you did it last time.");

rewind(stdin);

I don't see that program lasting through to a second run.

[...]

If stdin is coming from an interactive device, rewind()ing it doesn't
make much sense. But if it's coming from, say, a disk file, then
rewind() *might* be a sensible thing to do.

However, the source from which stdin receives its input is generally
outside the control of the program. The rewind() function has its
uses, but if you're going to need to rewind() something, it should
probably be a named file (opened with fopen()), not stdin.


You could attempt to rewind (or seek) and complain loudly when it fails.
May 25 '06 #10
On 2006-05-24, Richard Tobin <ri*****@cogsci.ed.ac.uk> wrote:
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.org> wrote:
In
normal usage, my expectation is that a program will read its standard
input from beginning to end, and will not attempt to do any
re-positioning.


I suppose expectations vary :-) I regard standard input as a natural
way to provide a program's primary input, regardless of how it is used
(I usually follow the unix convention of using stdin if no file name
is given on the command line).

Rewinding standard input in C has a long history. Here is an amusing
example predating the modern standard i/o library:

http://minnie.tuhs.org/UnixTree/V5/u...s1/goto.c.html


It wouldn't work on a modern system since child processes don't share
the file position indicator.

right?

because that would be insane.

right?
May 25 '06 #11
In article <sl***********************@random.yi.org>,
Jordan Abel <ra*******@gmail.com> wrote:
It wouldn't work on a modern system since child processes don't share
the file position indicator.

right?

because that would be insane.

right?


Wrong! If they didn't share the file position, a shell script of
programs that read from standard input would all read from the start
of it.

-- Richard

May 25 '06 #12
ri*****@cogsci.ed.ac.uk (Richard Tobin) writes:
In article <sl***********************@random.yi.org>,
Jordan Abel <ra*******@gmail.com> wrote:
It wouldn't work on a modern system since child processes don't share
the file position indicator.

right?

because that would be insane.

right?


Wrong! If they didn't share the file position, a shell script of
programs that read from standard input would all read from the start
of it.


I don't know whether that's correct or not. I could probably figure
it out if I spent some time either thinking about it, looking it up,
or trying it.

But since standard C has no concept of child processes, the question
is off-topic here. Try comp.unix.programmer if you want to discuss it
further.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
May 25 '06 #13
Keith Thompson wrote:
CBFalconer <cb********@yahoo.com> writes:
Keith Thompson wrote:

[...]
If stdin is coming from an interactive device, rewind()ing it
doesn't make much sense. But if it's coming from, say, a disk
file, then rewind() *might* be a sensible thing to do.

However, the source from which stdin receives its input is
generally outside the control of the program. The rewind()
function has its uses, but if you're going to need to rewind()
something, it should probably be a named file (opened with
fopen()), not stdin.


And if the systems works the way I think it should work, then
rewind will fail when stdin is interactive, and work when stdin
has been redirected to a disk file.


Except that rewind() has no mechanism for telling you that it failed.


Ulp. This may be an indication of how often I use rewind.

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>
May 25 '06 #14
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.org> wrote:
But since standard C has no concept of child processes, the question
is off-topic here. Try comp.unix.programmer if you want to discuss it
further.


In that case your assertions about rewinding stdin are off topic,
since some of its effects (and has its advisability) depend on the
operating system.

But in any case, I've no intention of switching newsgroups whenever a
thread drifts a little.

-- Richard
May 25 '06 #15
Richard Tobin wrote:

In article <sl***********************@random.yi.org>,
Jordan Abel <ra*******@gmail.com> wrote:
It wouldn't work on a modern system since child processes don't share
the file position indicator.

right?

because that would be insane.

right?


Wrong! If they didn't share the file position, a shell script of
programs that read from standard input would all read from the start
of it.


Wrong. It's right.

<OT>
When a child process is started, it may inherit the current file
positions from its parent. However, they aren't "shared" in the
sense of being related once the new process has been spawned.
That is, the child moving the file position has no effect on the
parent's or sibling's file position.
</OT>

--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:Th*************@gmail.com>
May 25 '06 #16
In article <44***************@spamcop.net>,
Kenneth Brody <ke******@spamcop.net> wrote:
<OT>
When a child process is started, it may inherit the current file
positions from its parent. However, they aren't "shared" in the
sense of being related once the new process has been spawned.
That is, the child moving the file position has no effect on the
parent's or sibling's file position.
</OT>
No, this is not true in unix. If it were, then how would the second
"head" command in the following shell command print the second line?

$ (head -1; head -1) <<EOF one
two
EOF

one
two

The first child must move the pointer for the parent shell process,
which is then inherited by the second child.

Of course, stdio buffering may obscure what is happening.

Try the following (obviously not pure standard C) program. Give it
at least three characters of input, say 123. The child will print
1 and 3 and the parent will print 2.

#include <stdio.h>
#include <unistd.h>

int main(void)
{
char buf[1];

if(fork() == 0)
{
read(0, buf, 1);
printf("child read %c\n", buf[0]);
sleep(2);
read(0, buf, 1);
printf("child read %c\n", buf[0]);
}
else
{
sleep(1);
read(0, buf, 1);
printf("parent read %c\n", buf[0]);
}

return 0;
}

-- Richard
May 25 '06 #17
ri*****@cogsci.ed.ac.uk (Richard Tobin) writes:
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.org> wrote:
But since standard C has no concept of child processes, the question
is off-topic here. Try comp.unix.programmer if you want to discuss it
further.


In that case your assertions about rewinding stdin are off topic,
since some of its effects (and has its advisability) depend on the
operating system.


stdin and rewind() are standard. General discussions of how they
should be used seem to me to be sufficiently topical.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
May 25 '06 #18
On 2006-05-25, Keith Thompson <ks***@mib.org> wrote:
ri*****@cogsci.ed.ac.uk (Richard Tobin) writes:
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.org> wrote:
But since standard C has no concept of child processes, the question
is off-topic here. Try comp.unix.programmer if you want to discuss it
further.


In that case your assertions about rewinding stdin are off topic,
since some of its effects (and has its advisability) depend on the
operating system.


stdin and rewind() are standard. General discussions of how they
should be used seem to me to be sufficiently topical.


Given the complete and total lack of error reporting, I'd go so far as
to say "never". They can't do anything that fseek can't.
May 25 '06 #19
Jordan Abel wrote:

On 2006-05-25, Keith Thompson <ks***@mib.org> wrote:

[...]
stdin and rewind() are standard. General discussions of how they
should be used seem to me to be sufficiently topical.


Given the complete and total lack of error reporting, I'd go so far as
to say "never". They can't do anything that fseek can't.


On my system, rewind() says it also clears any error status, which is
something fseek() doesn't do.

I don't know if that's standard or not, however.

--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:Th*************@gmail.com>

May 26 '06 #20
Kenneth Brody <ke******@spamcop.net> writes:
Jordan Abel wrote:

On 2006-05-25, Keith Thompson <ks***@mib.org> wrote:

[...]
> stdin and rewind() are standard. General discussions of how they
> should be used seem to me to be sufficiently topical.


Given the complete and total lack of error reporting, I'd go so far as
to say "never". They can't do anything that fseek can't.


On my system, rewind() says it also clears any error status, which is
something fseek() doesn't do.

I don't know if that's standard or not, however.


Yes, it is.

C99 7.19.9.5:

The rewind function sets the file position indicator for the
stream pointed to by stream to the beginning of the file. It is
equivalent to

(void)fseek(stream, 0L, SEEK_SET)

except that the error indicator for the stream is also cleared.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
May 26 '06 #21
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.org> wrote:
The rewind function sets the file position indicator for the
stream pointed to by stream to the beginning of the file. It is
equivalent to

(void)fseek(stream, 0L, SEEK_SET)

except that the error indicator for the stream is also cleared.


Is this a mistake? Perhaps the intention was that it should clear the
error indication *before* the fseek? Or that a successful call should
clear it (as with fseek and the end-of-file indication)? That would
make a lot more sense.

-- Richard
May 26 '06 #22
ri*****@cogsci.ed.ac.uk (Richard Tobin) writes:
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.org> wrote:
The rewind function sets the file position indicator for the
stream pointed to by stream to the beginning of the file. It is
equivalent to

(void)fseek(stream, 0L, SEEK_SET)

except that the error indicator for the stream is also cleared.


Is this a mistake? Perhaps the intention was that it should clear the
error indication *before* the fseek? Or that a successful call should
clear it (as with fseek and the end-of-file indication)? That would
make a lot more sense.


Yes, it would, but I think it was deliberate.

fseek() returns an int value that indicates whether it succeeded.
rewind() returns void. That can't have been accidental. The wording
is identical in the C90 standard. (Prior to that, rewind() would have
implicitly returned int; I don't know whether the result was
meaningful in pre-ANSI implementations.)

The Rationale says:

Resetting the end-of-file and error indicators was added to the
specification of rewind to make the specification more logically
consistent.

Perhaps this is a question for comp.std.c.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
May 26 '06 #23
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.org> wrote:
fseek() returns an int value that indicates whether it succeeded.
rewind() returns void. That can't have been accidental. The wording
is identical in the C90 standard. (Prior to that, rewind() would have
implicitly returned int; I don't know whether the result was
meaningful in pre-ANSI implementations.)


K&R2's description of rewind is:

void rewind(FILE *stream)
rewind(fp) is equivalent to fseek(fp,0L,SEEK_SET); clearerr(fp) .

That's pretty clear that the error is cleared even if the fseek() fails.
--
"It is important to remember that when it comes to law, computers
never make copies, only human beings make copies. Computers are given
commands, not permission. Only people can be given permission."
-- Brad Templeton
May 26 '06 #24
On 2006-05-26, Keith Thompson <ks***@mib.org> wrote:
ri*****@cogsci.ed.ac.uk (Richard Tobin) writes:
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.org> wrote:
The rewind function sets the file position indicator for the
stream pointed to by stream to the beginning of the file. It is
equivalent to

(void)fseek(stream, 0L, SEEK_SET)

except that the error indicator for the stream is also cleared.
Is this a mistake? Perhaps the intention was that it should clear the
error indication *before* the fseek? Or that a successful call should
clear it (as with fseek and the end-of-file indication)? That would
make a lot more sense.


Yes, it would, but I think it was deliberate.

fseek() returns an int value that indicates whether it succeeded.
rewind() returns void. That can't have been accidental. The wording
is identical in the C90 standard. (Prior to that, rewind() would have
implicitly returned int; I don't know whether the result was
meaningful in pre-ANSI implementations.)


http://minnie.tuhs.org/UnixTree/V7/u...dio/rew.c.html

If it was significant (it would be so by being the return value of
lseek, presumably), it was only so by accident.
The Rationale says:

Resetting the end-of-file and error indicators was added to the
specification of rewind to make the specification more logically
consistent.

Perhaps this is a question for comp.std.c.


Crossposted, but I suspect the reason is to clear any error which was
set before which is no longer relevant at the beginning of the file
(say, a write error due to no more space being available) Though I'd
wonder why fseek doesn't do the same thing for the same reason.
May 27 '06 #25

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: gc | last post by:
I was having trouble getting fgets to read a string from stdin, it was reading a '\n' already in the buffer. Someone told me to rewind stdin before calling fgets. It works, but is it permissible?
3
by: Josh Wilson | last post by:
OK, somewhat new to C, have searched the group and haven't found an answer that has fixed my problem, so I am just going to try posting it. I am taking really large image files(128x128x35) and...
3
by: Mike | last post by:
I am writing this program that first asks the user to type today's exchange rate between U.S. dollars and Japanese yen, then reads U.S. dollar value and converts each. I am attemtping to use 0 or...
15
by: ais523 | last post by:
I was just wondering whether there was a portable way to use gets() safely, and came up with this: #include <stdio.h> #include <stdlib.h> int main() { FILE* temp; char buf;
83
by: deppy_3 | last post by:
Hi.I am started learning Programm language C before some time.I am trying to make a programm about a very simple "sell shop".This programm hasn't got any compile problem but when i run it i face...
1
by: goldenllama | last post by:
Hi, thanks in advance for the assistance. I need to make a program that will take a string using gets() (I know gets() is bad, but it's what I'm supposed to use), and then print the message in...
1
by: amhjones | last post by:
Hi, I am trying to get an employee database to work correctly, I thought that all the coding was correct but everytime I run my code i get a return of -1, help would be appreciated: #include...
22
cat
by: Jag | last post by:
I've read parts of K&R's ANSI C v2 and this is what their cat looked like but when I compared the speed of this code to gnu cat, it seems very slow. How do I optimize this for greater speeds? is...
4
by: Robert Blass | last post by:
I am looking to get my feet wet with encryption. When I say encryption program I am talking about something to get me off to a quick start. Something very simple, far less than the 40+ bit...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.