473,385 Members | 1,888 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,385 software developers and data experts.

function

I am trying to write a utility that takes as argument 1 a file name to
write to and as argument 2 takes num as a number of zeros to write a
argument 1. A file of zeros. This is how far I have got. Why would I want a
file of zeros? To mount to a loopback device.

#include <stdio.h>
#include <stdlib.h>

int
main (int argc, char *argv[])
{
if (argc != 3)
{
puts ("usage error");
exit (EXIT_FAILURE);
}
char a = '0';
int b, num;
FILE *fp;
num = atoi (argv[2]);
fp = fopen (argv[1], "wb");

I am thinking that I would need a for loop involved here somewhere. I am
not sure what to put in the body.

Bill
May 31 '08 #1
26 1919
Bill Cunningham wrote:
I am trying to write a utility that takes as argument 1 a file
name to write to and as argument 2 takes num as a number of zeros to
write a argument 1. A file of zeros. This is how far I have got. Why
would I want a file of zeros? To mount to a loopback device.
[OT]
dd if=/dev/zero of=<your filecount=<your size>
[/OT]
#include <stdio.h>
#include <stdlib.h>

int
main (int argc, char *argv[])
{
if (argc != 3)
{
puts ("usage error");
exit (EXIT_FAILURE);
}
char a = '0';
char a = '\0';
int b, num;
FILE *fp;
num = atoi (argv[2]);
fp = fopen (argv[1], "wb");

I am thinking that I would need a for loop involved here
somewhere. I am not sure what to put in the body.
while (num--)
fputc(a, fp);
fclose(fp);
return 0;
}

Still needs some error checking (num>=0, fp != NULL, fclose and fput worked)
Bill
Bye, Jojo
May 31 '08 #2

"Joachim Schmitz" <no*********@schmitz-digital.dewrote in message
news:g1**********@online.de...
[OT]
dd if=/dev/zero of=<your filecount=<your size>
[/OT]
Ah. The easy way out :)
>#include <stdio.h>
#include <stdlib.h>

int
main (int argc, char *argv[])
{
if (argc != 3)
{
puts ("usage error");
exit (EXIT_FAILURE);
}
char a = '0';
char a = '\0';
Why the termination string character? Do you mean to replace my line or
are you adding one?
> int b, num;
FILE *fp;
num = atoi (argv[2]);
fp = fopen (argv[1], "wb");

I am thinking that I would need a for loop involved here
somewhere. I am not sure what to put in the body.

while (num--)
fputc(a, fp);
fclose(fp);
return 0;
}

Still needs some error checking (num>=0, fp != NULL, fclose and fput
worked)
I can get that part. I think.
>Bill
Bye, Jojo

May 31 '08 #3

"Joachim Schmitz" <no*********@schmitz-digital.dewrote in message
news:g1**********@online.de...

[snip]
while (num--) fputc(a, fp);
fclose(fp);
return 0;
}

Still needs some error checking (num>=0, fp != NULL, fclose and fput
worked)
>Bill
Bye, Jojo
While(num--) What's that? Is that the same as what I was thinking here.

int c;
for(c=1;c<num;c++)

Bill
May 31 '08 #4
Bill Cunningham wrote:
"Joachim Schmitz" <no*********@schmitz-digital.dewrote in message
news:g1**********@online.de...
>[OT]
dd if=/dev/zero of=<your filecount=<your size>
[/OT]

Ah. The easy way out :)
Jep 8-) Why reinventing the wheel...
>>#include <stdio.h>
#include <stdlib.h>

int
main (int argc, char *argv[])
{
if (argc != 3)
{
puts ("usage error");
exit (EXIT_FAILURE);
}
char a = '0';
char a = '\0';

Why the termination string character?
It's not just that, it also is the nul character, a byte with all bits
unset.
Do you mean to replace my
line or are you adding one?
Replacing. Do you want zeros in the file or the ascii representation of the
charcter 0? I believe the earlier.
>> int b, num;
FILE *fp;
num = atoi (argv[2]);
fp = fopen (argv[1], "wb");

I am thinking that I would need a for loop involved here
somewhere. I am not sure what to put in the body.

while (num--)
fputc(a, fp);
fclose(fp);
return 0;
}

Still needs some error checking (num>=0, fp != NULL, fclose and fput
worked)

I can get that part. I think.
Yep, left as an excercise to the reader 8-)
>>Bill
Bye, Jojo

May 31 '08 #5
Bill Cunningham wrote:
"Joachim Schmitz" <no*********@schmitz-digital.dewrote in message
news:g1**********@online.de...

[snip]
>while (num--) fputc(a, fp);
fclose(fp);
return 0;
}

Still needs some error checking (num>=0, fp != NULL, fclose and fput
worked)
>>Bill
Bye, Jojo

While(num--) What's that? Is that the same as what I was thinking
here.
int c;
for(c=1;c<num;c++)
for(c=1;c<=num;c++) /* if you want to loop num times */
It's equivalent, just counting backwards and not needing yet another
variable

Bye, Jojo
May 31 '08 #6

"Joachim Schmitz" <no*********@schmitz-digital.dewrote in message
news:g1**********@online.de...

[snip]
>>Still needs some error checking (num>=0, fp != NULL, fclose and fput
worked)

I can get that part. I think.
Yep, left as an excercise to the reader 8-)
Now here's what I tried in error checking that gave me a warning. I
must've messed up.

if((fputc(a,fp))!=NULL)
if((fclose(fp))!=NULL)

comparing argument with a without a cast or something like that the compiler
said. Without cast and comparing was mentioned by the compiler but it
compiled and didn't work. So I tried this.

if((fputc(a,fp))==NULL)
puts("fputc error");

When I ran the binary fputc error was mentioned 10 times. My 2nd arg was 10.

Bill
May 31 '08 #7
Bill Cunningham wrote:
>
.... snip ...
>
While(num--) What's that? Is that the same as what I was thinking here.
That means while the expression num-- is non-zero, do the
following. The expression value is num before decrementing it.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
** Posted from http://www.teranews.com **
May 31 '08 #8
Bill Cunningham wrote:
>
.... snip ...
>
comparing argument with a without a cast or something like that
the compiler said. Without cast and comparing was mentioned by
the compiler but it compiled and didn't work. So I tried this.

if((fputc(a,fp))==NULL)
puts("fputc error");

When I ran the binary fputc error was mentioned 10 times. My
2nd arg was 10.
Look up what a function does and returns before you use it. In
this case:

7.19.7.3 The fputc function

Synopsis
[#1]
#include <stdio.h>
int fputc(int c, FILE *stream);

Description

[#2] The fputc function writes the character specified by c
(converted to an unsigned char) to the output stream pointed
to by stream, at the position indicated by the associated
file position indicator for the stream (if defined), and
advances the indicator appropriately. If the file cannot
support positioning requests, or if the stream was opened
with append mode, the character is appended to the output
stream.

Returns

[#3] The fputc function returns the character written. If a
write error occurs, the error indicator for the stream is
set and fputc returns EOF.

Note the returned value.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
** Posted from http://www.teranews.com **
May 31 '08 #9
Bill Cunningham wrote:

<snip>
Now here's what I tried in error checking that gave me a warning.
must've messed up.

if((fputc(a,fp))!=NULL)
If you read your system's documentation for fputc you'll find that it
returns either the character passed (as an int) or EOF on error. NULL
is the wrong value to be comparing with. The above is better written
as:

if (fputc(ch, stream) == EOF) {
/* error */
}
if((fclose(fp))!=NULL)
Again, fclose will return EOF on failure.

<snip>

May 31 '08 #10

"santosh" <sa*********@gmail.comwrote in message
news:g1**********@registered.motzarella.org...
Bill Cunningham wrote:

<snip>
> Now here's what I tried in error checking that gave me a warning.
must've messed up.

if((fputc(a,fp))!=NULL)

If you read your system's documentation for fputc you'll find that it
returns either the character passed (as an int) or EOF on error. NULL
is the wrong value to be comparing with. The above is better written
as:

if (fputc(ch, stream) == EOF) {
/* error */
}
>if((fclose(fp))!=NULL)

Again, fclose will return EOF on failure.

<snip>
I usually don't miss these things in error checking. I was suprised when
it didn't work but I guess I've had NULL on my mind. Earlier in this post I
wanted to write zeros to a file and found out the proper use was with the
string terminating character '\0' which is a byte with all the bits turned
off. Now a questions about the *putc functions. Do they take and write a
char or 8 bits, or an unsigned int? Fputc's first parameter is an int and I
declared an int and gave it the value of '\0'. If the char is taken from the
first int parameter why an int instead of a char? Is more information needed
than the char itself like padding or the like?

Bill
May 31 '08 #11

"CBFalconer" <cb********@yahoo.comwrote in message
news:48***************@yahoo.com...

[snip]
That means while the expression num-- is non-zero, do the
following. The expression value is num before decrementing it.
conditionals. One of my weak points now. I can barely use while. I have
for and it down well. Switch is unusable and unreadable to me at this point.

Bill
May 31 '08 #12
"Bill Cunningham" <no****@nspam.comwrites:
"CBFalconer" <cb********@yahoo.comwrote in message
news:48***************@yahoo.com...

[snip]
>That means while the expression num-- is non-zero, do the
following. The expression value is num before decrementing it.
conditionals. One of my weak points now. I can barely use while. I have
for and it down well. Switch is unusable and unreadable to me at this point.

Bill
"while" is about 3x easier to understand than "for". See if you can see why.
May 31 '08 #13
Bill Cunningham wrote:
>
"santosh" <sa*********@gmail.comwrote in message
news:g1**********@registered.motzarella.org...
>Bill Cunningham wrote:

<snip>
>> Now here's what I tried in error checking that gave me a
warning. must've messed up.

if((fputc(a,fp))!=NULL)

If you read your system's documentation for fputc you'll find that it
returns either the character passed (as an int) or EOF on error. NULL
is the wrong value to be comparing with. The above is better written
as:

if (fputc(ch, stream) == EOF) {
/* error */
}
>>if((fclose(fp))!=NULL)

Again, fclose will return EOF on failure.

<snip>

I usually don't miss these things in error checking. I was
suprised when
it didn't work but I guess I've had NULL on my mind. Earlier in this
post I wanted to write zeros to a file and found out the proper use
was with the string terminating character '\0' which is a byte with
all the bits turned off.
Not necessarily. It's just a byte with value zero.
Now a questions about the *putc functions. Do
they take and write a char or 8 bits, or an unsigned int?
They take an int and a FILE * parameter and they attempt to write the
int parameter, cast to an unsigned char, to the stream indicated. A
char is commonly, but not necessarily eight bits. It's needs to be at
least eight bits, but could be more, as in the Cray or in most DSPs.
Fputc's
first parameter is an int and I declared an int and gave it the value
of '\0'. If the char is taken from the first int parameter why an int
instead of a char? Is more information needed than the char itself
like padding or the like?
This is I think just for compatibility with fgetc.

May 31 '08 #14
santosh <sa*********@gmail.comwrites:
Bill Cunningham wrote:
>>
"santosh" <sa*********@gmail.comwrote in message
news:g1**********@registered.motzarella.org...
>>Bill Cunningham wrote:

<snip>

Now here's what I tried in error checking that gave me a
warning. must've messed up.

if((fputc(a,fp))!=NULL)

If you read your system's documentation for fputc you'll find that it
returns either the character passed (as an int) or EOF on error. NULL
is the wrong value to be comparing with. The above is better written
as:

if (fputc(ch, stream) == EOF) {
/* error */
}

if((fclose(fp))!=NULL)

Again, fclose will return EOF on failure.

<snip>

I usually don't miss these things in error checking. I was
suprised when
it didn't work but I guess I've had NULL on my mind. Earlier in this
post I wanted to write zeros to a file and found out the proper use
was with the string terminating character '\0' which is a byte with
all the bits turned off.

Not necessarily. It's just a byte with value zero.
Why on earth would you say that? It serves ZERO purpose whatsoever to
someone with such obvious difficulties as Bill.. All you will do is
confuse the guy more.
>
>Now a questions about the *putc functions. Do
they take and write a char or 8 bits, or an unsigned int?

They take an int and a FILE * parameter and they attempt to write the
int parameter, cast to an unsigned char, to the stream indicated. A
char is commonly, but not necessarily eight bits. It's needs to be at
least eight bits, but could be more, as in the Cray or in most DSPs.
Ditto. Refer the man to the man page or whatever.
May 31 '08 #15
santosh wrote:
Bill Cunningham wrote:
>Earlier in this
post I wanted to write zeros to a file and found out the proper use
was with the string terminating character '\0' which is a byte with
all the bits turned off.

Not necessarily. It's just a byte with value zero.
Bill is right, you are wrong.

5.2 Environmental considerations
5.2.1 Character sets

A byte with all bits set to 0, called the null character,
shall exist in the basic execution character set;
it is used to terminate a character string literal.

--
pete
May 31 '08 #16
"Bill Cunningham" <no****@nspam.comwrites:
"Joachim Schmitz" <no*********@schmitz-digital.dewrote in message
news:g1**********@online.de...

[snip]
>>>Still needs some error checking (num>=0, fp != NULL, fclose and fput
worked)

I can get that part. I think.
Yep, left as an excercise to the reader 8-)

Now here's what I tried in error checking that gave me a warning. I
must've messed up.

if((fputc(a,fp))!=NULL)
if((fclose(fp))!=NULL)

comparing argument with a without a cast or something like that the compiler
said. Without cast and comparing was mentioned by the compiler but it
compiled and didn't work.
"something like that"? Is there some reason you couldn't tell us
*exactly* what the compiler said?

(Incidentally, be wary of any compiler diagnostic that implies a cast
is missing. 99% of the time a cast is exactly the wrong solution.)
So I tried this.

if((fputc(a,fp))==NULL)
puts("fputc error");

When I ran the binary fputc error was mentioned 10 times. My 2nd arg was 10.
RTFM. (Read The Fine Manual.)

Read the documentation for fputc, either your system's online
documentation, or your C textbook, or some version or draft of the C
standard. What type does it return? What do different returned
values mean? What value or values does it return to indicate that
there was an error? Does fputc return a pointer type? Does it make
any sense to compare its result to NULL, which is a null pointer
constant?

Repeat the above paragraph, replacing "fputc" with "fclose".

(Don't bother posting the answers here; most of us already know them.)

You're obviously guessing, yet again. Don't do that. Don't even
think about using a function until you've read and understood the
documentation for that function. If your compiler warns you about a
function call, it's very likely that you're using that function
incorrectly; consult the function's documentation *before* (or instead
of) posting here.

And add some whitespace to make your code more readable. You wrote:

if((fputc(a,fp))!=NULL)

I'd write:

if (fputc(a, fp) != NULL)

Note that I've also dropped an extraneous set of parentheses.

(I just fixed the layout, not the error; I'll leave that to you.)

--
Keith Thompson (The_Other_Keith) ks***@mib.org <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"
May 31 '08 #17
santosh <sa*********@gmail.comwrites:
Bill Cunningham wrote:
>"santosh" <sa*********@gmail.comwrote in message
news:g1**********@registered.motzarella.org...
[...]
>it didn't work but I guess I've had NULL on my mind. Earlier in this
post I wanted to write zeros to a file and found out the proper use
was with the string terminating character '\0' which is a byte with
all the bits turned off.

Not necessarily. It's just a byte with value zero.
Which, for all practical purposes, *is* a byte with all the bits
turned off.

(If plain char is signed, and if it has more than one representation
of zero, it's conceivable that storing '\0' in a char object might
give it a representation other all-bits-zero -- but even in such an
implementation, I'd be astonished if it didn't choose the
all-bits-zero representation.)

Incidentally, it's true that '\0' is used to terminate a string, but I
don't think that's relevant in this case. You're writing zero bytes
to a binary file. The data isn't being treated as a string or
strings, so the fact that '\0' happens to be a string terminator isn't
relevant.

[...]

--
Keith Thompson (The_Other_Keith) ks***@mib.org <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"
May 31 '08 #18

"santosh" <sa*********@gmail.comwrote in message
news:g1**********@registered.motzarella.org...
Not necessarily. It's just a byte with value zero.
I wrote this program in my djgpp compile not my gcc one and got the
ascii value of 48.

printf("%i\n",'0');

Bill
Jun 1 '08 #19
In comp.lang.c, Bill Cunningham wrote:
>
"santosh" <sa*********@gmail.comwrote in message
news:g1**********@registered.motzarella.org...
>Not necessarily. It's just a byte with value zero.
I wrote this program in my djgpp compile not my gcc one and got the
ascii value of 48.

printf("%i\n",'0');
Right. That's not a "byte with value zero". That's a character with a value
of '0' (much like a character with a value of 'Q').

--
Lew Pitcher

Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------
Jun 1 '08 #20
"Bill Cunningham" <no****@nspam.comwrites:
"santosh" <sa*********@gmail.comwrote in message
news:g1**********@registered.motzarella.org...
>Not necessarily. It's just a byte with value zero.
I wrote this program in my djgpp compile not my gcc one and got the
ascii value of 48.

printf("%i\n",'0');
'0' and '\0' are two very different things.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <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"
Jun 1 '08 #21
Bill Cunningham wrote:
>
.... snip ...
>
I wrote this program in my djgpp compile not my gcc one and got
the ascii value of 48.
The DJGPP compiler IS gcc.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
** Posted from http://www.teranews.com **
Jun 1 '08 #22
On Sat, 31 May 2008 16:16:25 GMT, "Bill Cunningham" <no****@nspam.com>
wrote:
>
"Joachim Schmitz" <no*********@schmitz-digital.dewrote in message
news:g1**********@online.de...

[snip]
>>>Still needs some error checking (num>=0, fp != NULL, fclose and fput
worked)

I can get that part. I think.
Yep, left as an excercise to the reader 8-)

Now here's what I tried in error checking that gave me a warning. I
must've messed up.

if((fputc(a,fp))!=NULL)
if((fclose(fp))!=NULL)
What is the return type of fputc and fclose? What is the type of
NULL? Is there any implicit conversion between the two types? Why do
you think either function returns NULL on error? Do you have a
reference text of any kind? Have you downloaded any of the free
standard drafts (they all provide complete prototypes for every
standard function)? Somewhere along the line you determined that
fputc takes an int and a FILE*. How come you cannot use the same
source to determine its return type?
>
comparing argument with a without a cast or something like that the compiler
What do you mean "something like that"? You are not a novice poster,
regardless of your skill at C. What is so prohibitively difficult
that you cannot cut and paste the text of the diagnostic into your
message when asking for help?
>said. Without cast and comparing was mentioned by the compiler but it
compiled and didn't work. So I tried this.
If it produced a diagnostic that you don't understand, it did not
compile cleanly.
>
if((fputc(a,fp))==NULL)
puts("fputc error");

When I ran the binary fputc error was mentioned 10 times. My 2nd arg was 10.
Your 2nd arg of what? Not fputc, the 2nd arg there is fp, not 10. Not
puts, it only has one arg.
>
Bill

Remove del for email
Jun 1 '08 #23

"CBFalconer" <cb********@yahoo.comwrote in message
news:48***************@yahoo.com...
The DJGPP compiler IS gcc.
Oh yes sorry it is. I mean my windows environment compiler not my linux
gcc which I use mostly.

Bill
Jun 1 '08 #24
Barry Schwarz wrote:
On Sat, 31 May 2008 16:16:25 GMT, "Bill Cunningham" <no****@nspam.com>
wrote:
<snip>
>>
if((fputc(a,fp))==NULL)
puts("fputc error");

When I ran the binary fputc error was mentioned 10 times. My 2nd arg
was 10.

Your 2nd arg of what? Not fputc, the 2nd arg there is fp, not 10. Not
puts, it only has one arg.
2nd arg to his program, AKA argv[2], obviously (if you look upthread), the
number of null bytes to writen to a file (who's name is given in argv[1])

Bye, JOjo
Jun 1 '08 #25
"Bill Cunningham" <no****@nspam.comwrites:
"santosh" <sa*********@gmail.comwrote in message
news:g1**********@registered.motzarella.org...
>Not necessarily. It's just a byte with value zero.
I wrote this program in my djgpp compile not my gcc one and got the
ascii value of 48.

printf("%i\n",'0');

Bill
Come on. Please stop trolling.
Jun 1 '08 #26
On Sun, 1 Jun 2008 12:13:19 +0200, "Joachim Schmitz"
<no*********@schmitz-digital.dewrote:
>Barry Schwarz wrote:
>On Sat, 31 May 2008 16:16:25 GMT, "Bill Cunningham" <no****@nspam.com>
wrote:
<snip>
>>>
if((fputc(a,fp))==NULL)
puts("fputc error");

When I ran the binary fputc error was mentioned 10 times. My 2nd arg
was 10.

Your 2nd arg of what? Not fputc, the 2nd arg there is fp, not 10. Not
puts, it only has one arg.
2nd arg to his program, AKA argv[2], obviously (if you look upthread), the
number of null bytes to writen to a file (who's name is given in argv[1])
If it is relevant to the current message, it should be quoted in the
current message. Do you really keep old messages around to resolve
unspecified references? Does you news server always deliver messages
in the proper order?
Remove del for email
Jun 1 '08 #27

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

Similar topics

3
by: domeceo | last post by:
can anyone tell me why I cannot pass values in a setTimeout function whenever I use this function it says "menu is undefined" after th alert. function imgOff(menu, num) { if (document.images) {...
5
by: phil_gg04 | last post by:
Dear Javascript Experts, Opera seems to have different ideas about the visibility of Javascript functions than other browsers. For example, if I have this code: if (1==2) { function...
2
by: laredotornado | last post by:
Hello, I am looking for a cross-browser way (Firefox 1+, IE 5.5+) to have my Javascript function execute from the BODY's "onload" method, but if there is already an onload method defined, I would...
2
by: sushil | last post by:
+1 #include<stdio.h> +2 #include <stdlib.h> +3 typedef struct +4 { +5 unsigned int PID; +6 unsigned int CID; +7 } T_ID; +8 +9 typedef unsigned int (*T_HANDLER)(void); +10
8
by: Olov Johansson | last post by:
I just found out that JavaScript 1.5 (I tested this with Firefox 1.0.7 and Konqueror 3.5) has support not only for standard function definitions, function expressions (lambdas) and Function...
3
by: Beta What | last post by:
Hello, I have a question about casting a function pointer. Say I want to make a generic module (say some ADT implementation) that requires a function pointer from the 'actual/other modules'...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
28
by: Larax | last post by:
Best explanation of my question will be an example, look below at this simple function: function SetEventHandler(element) { // some operations on element element.onclick = function(event) {
4
by: alex | last post by:
I am so confused with these three concept,who can explained it?thanks so much? e.g. var f= new Function("x", "y", "return x * y"); function f(x,y){ return x*y } var f=function(x,y){
7
by: VK | last post by:
I was getting this effect N times but each time I was in rush to just make it work, and later I coudn't recall anymore what was the original state I was working around. This time I nailed the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.