473,396 Members | 1,712 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.

How to use EOF in C

Hi friends,
I want to learn how to use EOF in C.Please help me.

Jul 11 '07 #1
29 49903
On Jul 11, 10:41 am, Ramesh <chary...@gmail.comwrote:
Hi friends,
I want to learn how to use EOF in C.Please help me.
C provides u with EOF denoting end of file. The following code may
help you.
int get_line(char line[], int max)
{
int nch = 0;
int ch;
max = max - 1; //initally max is pointing to \0
//So we need to get the char before \0

while((ch = getchar()) != EOF) //getchar returns char from
{
if(ch == '\n')
break;

if(nch < max)
{
line[nch] = ch;
nch = nch + 1;
}
}

if(ch == EOF && nch == 0)
return EOF;

line[nch] = '\0';
return nch;
}

#include <stdio.h>
extern int get_line(char [], int);
main()
{
char l[200];

while(getline(l, 200) != EOF)
printf("line read\"%s\"\n", l);

return 0;
}

Jul 11 '07 #2
sumedh wrote:
On Jul 11, 10:41 am, Ramesh <chary...@gmail.comwrote:
Hi friends,
I want to learn how to use EOF in C.Please help me.

C provides u with EOF denoting end of file.
To be precise, EOF is a macro defined in stdio.h that yields an
integer constant. It is used as the return value by many of C's I/O
functions when they encounter an end-of-file condition or an error.
The pair of functions feof and ferror are typically used to find out
which of the two it is.
The following code may
help you.
int get_line(char line[], int max)
{
int nch = 0;
int ch;
max = max - 1; //initally max is pointing to \0
//So we need to get the char before \0
This type of comment is only supported as of C99. Also it tends to
break when used in posts to Usenet.
while((ch = getchar()) != EOF) //getchar returns char from
{
if(ch == '\n')
break;

if(nch < max)
{
line[nch] = ch ;
nch = nch + 1;
}
}

if(ch == EOF && nch == 0)
return EOF;

line[nch] = '\0';
return nch;
}

#include <stdio.h>
extern int get_line(char [], int);
main()
Declare main to explicitly return an int. And if you don't intend to
access the command line you can use void to indicate that it does not
take any parameters.

int main(void) {
{
char l[200];

while(getline(l, 200) != EOF)
Where is getline defined?
printf("line read\"%s\"\n", l);

return 0;
}
Jul 11 '07 #3
Ramesh <ch******@gmail.comwrites:
I want to learn how to use EOF in C.Please help me.
Any decent C textbook will explain this. I recommend Kernighan &
Ritchie's _The C Programming Language_, 2nd Edition, commonly known as
K&R2.

But I think you're asking the wrong question. Rather than asking how
to use EOF, you should probably be trying to learn how to read and
process input. The use of EOF is just a part of that.

--
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."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jul 11 '07 #4
[snips]

On Tue, 10 Jul 2007 22:51:21 -0700, sumedh wrote:
max = max - 1;
If the user does something silly, such as passing in 0, or a negative
value, doesn't this end up doing bad things to your loop?

while((ch = getchar()) != EOF) //getchar returns char from
{
if(ch == '\n')
break;

if(nch < max)
{
line[nch] = ch;
nch = nch + 1;
}
}

if(ch == EOF && nch == 0)
return EOF;
Hmm. So if we get EOF, we simply discard the data read to that point,
even though it may be perfectly good data? Why not slap a \0 on the
sucker to turn it into a proper string?
Jul 11 '07 #5

"Ramesh" <ch******@gmail.comwrote in message
news:11**********************@o11g2000prd.googlegr oups.com...
Hi friends,
I want to learn how to use EOF in C.Please help me.
the function fgetc() will return an integer, not a character as you may have
imagined, in the range 0-255 except some very odd systems that don't use 8
bit bytes. It returns -1 or EOF to indicate the end of input. That's why it
returns an integer instead of a char. Othewise there would be one value that
could not be represented.

In practise you always need this construct

int ch;
FILE *fp;

while( (ch = fgetc(fp)) != EOF)
{
/* process characters here */
printf("val %d char %c\n", ch, ch);
}

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

Jul 11 '07 #6
Malcolm McLean wrote:
"Ramesh" <ch******@gmail.comwrote in message
news:11**********************@o11g2000prd.googlegr oups.com...
Hi friends,
I want to learn how to use EOF in C.Please help me.
the function fgetc() will return an integer, not a character as you may have
imagined, in the range 0-255 except some very odd systems that don't use 8
bit bytes. It returns -1 or EOF to indicate the end of input.
EOF needn't equal -1.

Jul 11 '07 #7
In article <pt******************************@bt.com>,
Malcolm McLean <re*******@btinternet.comwrote:
>the function fgetc() will return an integer, not a character as you may have
imagined, in the range 0-255 except some very odd systems that don't use 8
bit bytes. It returns -1 or EOF to indicate the end of input.
To be more precise, it returns some specific (implementation-
defined) negative value to indicate the end of input, and the
particular implementation negative value is available by using
the macro EOF -- no matter what -particular- value the implementation
uses, if you refer to EOF then you will get the right value for
that implementation. But the implementation value is not
necessarily -1, so do not hard-code comparisons to -1. You
could code checks for < 0 if you wanted though, as the only
negative value allowed to be returned by fgetc() is whatever
the system is using for EOF.

>In practise you always need this construct
>int ch;
Annotating slightly for the OP: notice Malcolm used 'int'
as the type, not 'char'.
>FILE *fp;
>while( (ch = fgetc(fp)) != EOF)
Another annotation for the OP: notice that the assignment
to ch is within () . If you were to leave out the () and code

while ( ch = fgetc(fp) != EOF ) /* WRONG */

then this would be wrong because C would parse this as

while ( ch = (fgetc(fp) != EOF) )

that is, ch would get assigned the result of the -comparison-
rather than the character that was read in.
>{
/* process characters here */
printf("val %d char %c\n", ch, ch);
}
--
Programming is what happens while you're busy making other plans.
Jul 11 '07 #8

Kelsey Bjarnason wrote:
[snips]

On Tue, 10 Jul 2007 22:51:21 -0700, sumedh wrote:
max = max - 1;

If the user does something silly, such as passing in 0, or a negative
value, doesn't this end up doing bad things to your loop?

while((ch = getchar()) != EOF) //getchar returns char from
{
if(ch == '\n')
break;

if(nch < max)
{
line[nch] = ch ;
nch = nch + 1;
}
}

if(ch == EOF && nch == 0)
return EOF;

Hmm. So if we get EOF, we simply discard the data read to that point,
even though it may be perfectly good data?
Notice the other half of the expression? Anyway, regardless the code
is broken since if nch is not less than max, then additional input is
simply discarded.
Why not slap a \0 on the
sucker to turn it into a proper string?
An '\0' by itself is not a string.

Jul 11 '07 #9
"Malcolm McLean" <re*******@btinternet.comwrites:
"Ramesh" <ch******@gmail.comwrote in message
news:11**********************@o11g2000prd.googlegr oups.com...
>Hi friends,
I want to learn how to use EOF in C.Please help me.
the function fgetc() will return an integer, not a character as you
may have imagined, in the range 0-255 except some very odd systems
that don't use 8 bit bytes.
It returns an int (one of several integer types), not a char (also one
of several integer types, as well as being one of several character
types).

"int" and "integer" mean very different things, as do "char" and
"character".
It returns -1 or EOF to indicate the end
of input. That's why it returns an integer instead of a char. Othewise
there would be one value that could not be represented.
EOF is typically defined as (-1), but the only requirement is that
it's of type int with a negative value. I actually don't know of any
implementation where EOF has a value other than -1; nevertheless I
would consider something like

while( (ch = fgetc(fp)) != -1) /* ... */

to be badly broken (even if it happens to work).

[snip]

--
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."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jul 11 '07 #10
santosh said:

<snip>
An '\0' by itself is not a string.
The Standard says: "A string is a contiguous sequence of characters
terminated by and including the first null character."

The Standard mentions "empty strings" on several occasions. An empty
string is still a string.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Jul 11 '07 #11
santosh <sa*********@gmail.comwrites:
Kelsey Bjarnason wrote:
[...]
> Why not slap a \0 on the
sucker to turn it into a proper string?

An '\0' by itself is not a string.
A sequence consisting of a single '\0' character is a string,
specifically an empty string. (I'm ignoring whatever context led up
to this.)

(Just out of curiosity, how do you pronounce '\0' so that it's
"An '\0'" rather than "A '\0'"?)

--
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."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jul 11 '07 #12
santosh <sa*********@gmail.comwrites:
Kelsey Bjarnason wrote:
>[snips]

On Tue, 10 Jul 2007 22:51:21 -0700, sumedh wrote:
max = max - 1;

If the user does something silly, such as passing in 0, or a negative
value, doesn't this end up doing bad things to your loop?

while((ch = getchar()) != EOF) //getchar returns char from
{
if(ch == '\n')
break;

if(nch < max)
{
line[nch] = ch ;
nch = nch + 1;
}
}

if(ch == EOF && nch == 0)
return EOF;

Hmm. So if we get EOF, we simply discard the data read to that point,
even though it may be perfectly good data?

Notice the other half of the expression? Anyway, regardless the code
is broken since if nch is not less than max, then additional input is
simply discarded.
> Why not slap a \0 on the
sucker to turn it into a proper string?

An '\0' by itself is not a string.
Of course it is.

If you have a character pointer pointing to that then the pointer is
still pointing to a character string.
Jul 11 '07 #13
Keith Thompson wrote:
santosh <sa*********@gmail.comwrites:
Kelsey Bjarnason wrote:
[...]
Why not slap a \0 on the
sucker to turn it into a proper string?
An '\0' by itself is not a string.

A sequence consisting of a single '\0' character is a string,
specifically an empty string. (I'm ignoring whatever context led up
to this.)
Okay, you're correct, (also Richard Heathfield and Richard). I must
consult the Standard more before posting.
(Just out of curiosity, how do you pronounce '\0' so that it's
"An '\0'" rather than "A '\0'"?)
I don't. It's a mistake obviously.

Jul 12 '07 #14
On 11 Jul, 06:51, sumedh <excuseme2...@gmail.comwrote:
On Jul 11, 10:41 am, Ramesh <chary...@gmail.comwrote:
Hi friends,
I want to learn how to use EOF in C.Please help me.

C provides u with EOF denoting end of file. The following code may
help you.
int get_line(char line[], int max)
{
int nch = 0;
int ch;
max = max - 1; //initally max is pointing to \0
//So we need to get the char before \0

while((ch = getchar()) != EOF) //getchar returns char from
{
if(ch == '\n')
break;

if(nch < max)
{
line[nch] = ch ;
nch = nch + 1;
}
}

if(ch == EOF && nch == 0)
return EOF;

line[nch] = '\0';
return nch;

}

#include <stdio.h>
extern int get_line(char [], int);
main()
{
char l[200];

while(getline(l, 200) != EOF)
printf("line read\"%s\"\n", l);

return 0;

}

This will not compile for 2 reasons:
1) You define get_line but you call getline
(mentioned already).
2) You use EOF before including <stdio.h>
If I remember correctly macros are defined from
the point they appear until the end of file.

With the obvious corrections the code would compile,
work and shows some sort of usage for EOF. Others
have commented that it truncates the line read but
that doesn't mean that it's broken. On several occasions
I've needed the first n characters of each line of a file
for fixed n.

Jul 12 '07 #15

"Keith Thompson" <ks***@mib.orgwrote in message
news:ln************@nuthaus.mib.org...
santosh <sa*********@gmail.comwrites:
>Kelsey Bjarnason wrote:
[...]
>> Why not slap a \0 on the
sucker to turn it into a proper string?

An '\0' by itself is not a string.

A sequence consisting of a single '\0' character is a string,
specifically an empty string. (I'm ignoring whatever context led up
to this.)

(Just out of curiosity, how do you pronounce '\0' so that it's
"An '\0'" rather than "A '\0'"?)
"An ought". Or maybe "An ul". I've even heard "An ee-oh-ess".

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

Jul 12 '07 #16

"Richard Heathfield" <rj*@see.sig.invalidwrote in message
The Standard mentions "empty strings" on several occasions. An empty
string is still a string.
A string of no sausages is a very different thing to no string of sausages.

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

Jul 12 '07 #17
"Malcolm McLean" <re*******@btinternet.comwrites:
"Richard Heathfield" <rj*@see.sig.invalidwrote in message
>The Standard mentions "empty strings" on several occasions. An empty
string is still a string.
A string of no sausages is a very different thing to no string of
sausages.
There may be no sausages on it, but the string is still there.
Jul 12 '07 #18
Richard wrote, On 12/07/07 10:57:
"Malcolm McLean" <re*******@btinternet.comwrites:
>"Richard Heathfield" <rj*@see.sig.invalidwrote in message
>>The Standard mentions "empty strings" on several occasions. An empty
string is still a string.
A string of no sausages is a very different thing to no string of
sausages.

There may be no sausages on it, but the string is still there.
The standard even provides methods of expressing these things Malcolm
acknowledges as different.

char *sausages = NULL; /* No string */
char *sausages == ""; /* Empty string */
--
Flash Gordon
Jul 12 '07 #19
On Wed, 11 Jul 2007 21:39:58 +0000, santosh wrote:
Kelsey Bjarnason wrote:
Notice the other half of the expression?
Grr. Damn this being human thing sucks. :)
Anyway, regardless the code
is broken since if nch is not less than max, then additional input is
simply discarded.
> Why not slap a \0 on the
sucker to turn it into a proper string?

An '\0' by itself is not a string.
Pass it to strlen, it'll work. Pass the results of whatever you've got
instead, it'll scream and die - if you're lucky.
Jul 12 '07 #20
Flash Gordon said:

<snip>
The standard even provides methods of expressing these things Malcolm
acknowledges as different.

char *sausages = NULL; /* No string */
char *sausages == ""; /* Empty string */
/* ITYM syntax error */

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Jul 12 '07 #21
Kelsey Bjarnason <kb********@gmail.comwrites:
On Wed, 11 Jul 2007 21:39:58 +0000, santosh wrote:
[...]
>An '\0' by itself is not a string.

Pass it to strlen, it'll work.
strlen('\0') invokes undefined behavior.

I know that's not what you meant. If you pass the address of a
character with value '\0' to strlen(), it will return 0.

--
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."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jul 12 '07 #22
Richard Heathfield wrote, On 12/07/07 21:10:
Flash Gordon said:

<snip>
>The standard even provides methods of expressing these things Malcolm
acknowledges as different.

char *sausages = NULL; /* No string */
char *sausages == ""; /* Empty string */
/* ITYM syntax error */
s/==/=/
--
Flash Gordon
Jul 12 '07 #23

"Flash Gordon" <sp**@flash-gordon.me.ukwrote in message
news:rj************@news.flash-gordon.me.uk...
Richard Heathfield wrote, On 12/07/07 21:10:
>Flash Gordon said:

<snip>
>>The standard even provides methods of expressing these things Malcolm
acknowledges as different.

char *sausages = NULL; /* No string */
char *sausages == ""; /* Empty string */
/* ITYM syntax error */

s/==/=/
--
Flash Gordon
char O=0; /* sausage */

char *sausages = 0-0-0-0-0-0-0; /* no string */
char *sausage = &O; /* empty string */

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

Jul 12 '07 #24
"Malcolm McLean" <re*******@btinternet.comwrites:
char O=0; /* sausage */

char *sausages = 0-0-0-0-0-0-0; /* no string */
char *sausage = &O; /* empty string */
char *confusing_sausage = &O-0-0-0-0-0-0-0; /* empty string */
--
char a[]="\n .CJacehknorstu";int putchar(int);int main(void){unsigned long b[]
={0x67dffdff,0x9aa9aa6a,0xa77ffda9,0x7da6aa6a,0xa6 7f6aaa,0xaa9aa9f6,0x11f6},*p
=b,i=24;for(;p+=!*p;*p/=4)switch(0[p]&3)case 0:{return 0;for(p--;i--;i--)case+
2:{i++;if(i)break;else default:continue;if(0)case 1:putchar(a[i&15]);break;}}}
Jul 12 '07 #25
"Malcolm McLean" <re*******@btinternet.comwrote:
char O=0; /* sausage */

char *sausages = 0-0-0-0-0-0-0; /* no string */
char *sausage = &O; /* empty string */
# Constraints
# 1 The operand of the unary & operator shall be either a function
# designator, the result of a [] or unary * operator, or an lvalue
# that designates an object that is not a bit-field and is not
# declared with the register storage-class specifier.

A literal 0 is not any of those, so &0 violates this constraint. Did you
perhaps mean "0" (or even &"0")?

Richard
Jul 13 '07 #26
rl*@hoekstra-uitgeverij.nl (Richard Bos) writes:
"Malcolm McLean" <re*******@btinternet.comwrote:
>char O=0; /* sausage */

char *sausages = 0-0-0-0-0-0-0; /* no string */
char *sausage = &O; /* empty string */

# Constraints
# 1 The operand of the unary & operator shall be either a function
# designator, the result of a [] or unary * operator, or an lvalue
# that designates an object that is not a bit-field and is not
# declared with the register storage-class specifier.

A literal 0 is not any of those, so &0 violates this constraint. Did you
perhaps mean "0" (or even &"0")?
Get a better font, or copy-and-paste the code and try to compile it.
The initializer for 'sausage' is '&O', not '&0' (the letter, not the
digit); 'O' was declared three lines earlier as an object of type
char, initialized to zero.

--
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."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jul 13 '07 #27
On Thu, 12 Jul 2007 13:59:20 -0700, Keith Thompson wrote:
Kelsey Bjarnason <kb********@gmail.comwrites:
>On Wed, 11 Jul 2007 21:39:58 +0000, santosh wrote:
[...]
>>An '\0' by itself is not a string.

Pass it to strlen, it'll work.

strlen('\0') invokes undefined behavior.
True.
I know that's not what you meant. If you pass the address of a
character with value '\0' to strlen(), it will return 0.

In the context used. '\0' "works". In the general case, it doesn't, for
hopefully obvious reasons.
Jul 13 '07 #28

"Keith Thompson" <ks***@mib.orgwrote in message
news:ln************@nuthaus.mib.org...
rl*@hoekstra-uitgeverij.nl (Richard Bos) writes:
>"Malcolm McLean" <re*******@btinternet.comwrote:
>>char O=0; /* sausage */

char *sausages = 0-0-0-0-0-0-0; /* no string */
char *sausage = &O; /* empty string */

# Constraints
# 1 The operand of the unary & operator shall be either a function
# designator, the result of a [] or unary * operator, or an lvalue
# that designates an object that is not a bit-field and is not
# declared with the register storage-class specifier.

A literal 0 is not any of those, so &0 violates this constraint. Did you
perhaps mean "0" (or even &"0")?

Get a better font, or copy-and-paste the code and try to compile it.
The initializer for 'sausage' is '&O', not '&0' (the letter, not the
digit); 'O' was declared three lines earlier as an object of type
char, initialized to zero.
It was a charred sausage.

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

Jul 14 '07 #29
"Malcolm McLean" <re*******@btinternet.comwrote:
"Keith Thompson" <ks***@mib.orgwrote in message
news:ln************@nuthaus.mib.org...
rl*@hoekstra-uitgeverij.nl (Richard Bos) writes:
"Malcolm McLean" <re*******@btinternet.comwrote:
char O=0; /* sausage */

char *sausages = 0-0-0-0-0-0-0; /* no string */
char *sausage = &O; /* empty string */

# Constraints
# 1 The operand of the unary & operator shall be either a function
# designator, the result of a [] or unary * operator, or an lvalue
# that designates an object that is not a bit-field and is not
# declared with the register storage-class specifier.

A literal 0 is not any of those, so &0 violates this constraint. Did you
perhaps mean "0" (or even &"0")?
Get a better font, or copy-and-paste the code and try to compile it.
The initializer for 'sausage' is '&O', not '&0' (the letter, not the
digit); 'O' was declared three lines earlier as an object of type
char, initialized to zero.
*Hangs head in shame*
It was a charred sausage.
*Groans*

Richard
Jul 16 '07 #30

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

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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.