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

is this correct

Q6: Write a function that accepts two strings. Count the number of
characters in each, and return a pointer to the longer string.
and please comment

/* LEN_STRING.C PROGRAM TO RETURN LONGEST STRING */
#include<stdio.h>
#include<string.h>

void length(char [ ], char [ ]);

int main(void)
{

char a[100];
char b[100];

printf("Enter string1\n");
fgets(a,100,stdin);

printf("Enter string2\n");
fgets(b,100,stdin);

length(a,b);

return 0;
}

void length(char string1[ ], char string2[ ])
{
char *line;

if((strlen(string1)) > (strlen(string2)))
{
line = string1;
printf("\nstring 1 is the longest\n%s\n",line);
}
else if(strlen(string1) < strlen(string2))
{
line = string2;
printf("\nstring 2 is the longest\n%s\n",line);
}
else
printf("\nBoth strings are the same length\n");
}
Nov 14 '05 #1
28 2010
Darklight <ng******@netscape.net> writes:
Q6: Write a function that accepts two strings. Count the number of
characters in each, and return a pointer to the longer string.
and please comment

/* LEN_STRING.C PROGRAM TO RETURN LONGEST STRING */
#include<stdio.h>
#include<string.h>

void length(char [ ], char [ ]);
The question asks to return a pointer to the longer string, but your
`length' function returns nothing. Also, a better function name would be
something like `longer_string', since that's what the function is
supposed to return.
int main(void)
{

char a[100];
char b[100];

printf("Enter string1\n");
fgets(a,100,stdin);

printf("Enter string2\n");
fgets(b,100,stdin);
If the user enters 100 or more characters after the first prompt, these
additional characters are read by the second `fgets' call.
length(a,b);

return 0;
}

void length(char string1[ ], char string2[ ])
{
char *line;

if((strlen(string1)) > (strlen(string2)))
{
line = string1;
printf("\nstring 1 is the longest\n%s\n",line);
}
else if(strlen(string1) < strlen(string2))
{
line = string2;
printf("\nstring 2 is the longest\n%s\n",line);
}
else
printf("\nBoth strings are the same length\n");
}


It's probably a good idea not to do any output in the `length' function,
but just return a pointer to the longer string (as required in the
question). Do the output in `main' instead.

It is good that you thought about the case when both strings have the
same length, although the question doesn't specify what to do in this
case.

Calling `strlen' twice for each string could degrade the performance.
Use variables instead

const size_t len1 = strlen (string1);
const size_t len2 = strlen (string2);

and compare these.

The `line' variable is not really needed. In the block where you /know/
that `string1' is longer, you can just use `string1'. Likewise for
`string2'.

Finally, identifiers starting with `str' followed by a lowercase letter
are reserved for the implementation. Consider different names, e.g.
`str1' and `str2'.

Martin
--
,--. Martin Dickopp, Dresden, Germany ,= ,-_-. =.
/ ,- ) http://www.zero-based.org/ ((_/)o o(\_))
\ `-' `-'(. .)`-'
`-. Debian, a variant of the GNU operating system. \_/
Nov 14 '05 #2
Darklight <ng******@netscape.net> writes:
Mail-Copies-To: ng******@netscape.net


You set the above header in your posting. This caused my newsreader to
send a mail copy of my reply to you, however it was returned due to an
invalid email address.

Don't set Mail-Copies-To to an invalid email address, please!

Martin
--
,--. Martin Dickopp, Dresden, Germany ,= ,-_-. =.
/ ,- ) http://www.zero-based.org/ ((_/)o o(\_))
\ `-' `-'(. .)`-'
`-. Debian, a variant of the GNU operating system. \_/
Nov 14 '05 #3


Darklight wrote:
Q6: Write a function that accepts two strings. Count the number of
characters in each, and return a pointer to the longer string.
and please comment

void length(char [ ], char [ ]);


Looking at your requirements, one wonders what you want to
return should the lengths be equal.

Longing at your prototype, it does not meet the requirements
because it does not return anything. Also, since the strings
are not going to be modified, you can make the parameters
const char.

const char *length(const char *s1, const char *s2);

If it doesn't matter which string pointer is returned should
the lengths be equal, then the definition is simple.

#include <stdio.h>
#include <string.h>

const char *length(const char *string1, const char *string2)
{
return strlen(string1)>=strlen(string2)?string1:string2;
}

int main(void)
{
char *str1 = "Good Morning";
char *str2 = "Good Night";

printf("The longer of \"%s\" and \"%s\"\n"
"is \"%s\"\n",str1,str2,length(str1,str2));
return 0;
}

--
Al Bowers
Tampa, Fl USA
mailto: xa******@myrapidsys.com (remove the x to send email)
http://www.geocities.com/abowers822/

Nov 14 '05 #4
Is this any better

/* LEN_STRING1.C PROGRAM TO RETURN LONGEST STRING */
#include<stdio.h>
#include<string.h>

char *length(char [ ], char [ ]);

int main(void)
{

char a[100];
char b[100];
char *c;

printf("Enter string1\n");
fgets(a,100,stdin);

printf("Enter string2\n");
fgets(b,100,stdin);

c = length(a,b);

printf("\nThe longest string is %s\n",c);
return 0;
}

char *length(char str1[ ], char str2[ ])
{
char *line;

if((strlen(str1)) > (strlen(str2)))
{
line = str1;
}
else
{
line = str2;
}

return line;
}
Nov 14 '05 #5

"Darklight" <ng******@netscape.net> wrote in message
/* LEN_STRING1.C PROGRAM TO RETURN LONGEST STRING */
#include<stdio.h>
#include<string.h>

char *length(char [ ], char [ ]);

int main(void)
{

char a[100];
char b[100];
char *c;

printf("Enter string1\n");
fgets(a,100,stdin);

printf("Enter string2\n");
fgets(b,100,stdin);
You still haven't fixed the fgets() problem. fgets() is actually quite a
difficult function to use.
c = length(a,b);

printf("\nThe longest string is %s\n",c);
return 0;
}

char *length(char str1[ ], char str2[ ])
It's much mode idiomatic to use the char *str1, char *str2 notation. The
pointers can also be const since they are not modified.
{
char *line;

if((strlen(str1)) > (strlen(str2)))
{
line = str1;
}
else
{
line = str2;
}

return line;
}

You do need to know what is supposed to happen if the strings are of equal
length. This is an oversight in your specification.
Nov 14 '05 #6
Darklight <ng******@netscape.net> writes:
Mail-Copies-To: ng******@netscape.net
Once again, please don't do that.
Is this any better


Yes, it is better, although some of the comments you have received from
me and others still apply. :)

Martin
--
,--. Martin Dickopp, Dresden, Germany ,= ,-_-. =.
/ ,- ) http://www.zero-based.org/ ((_/)o o(\_))
\ `-' `-'(. .)`-'
`-. Debian, a variant of the GNU operating system. \_/
Nov 14 '05 #7
Darklight wrote:
Q6: Write a function that accepts two strings. Count the number of
characters in each, and return a pointer to the longer string.
and please comment


Is this a homework? Cause if it is, you got it wrong..

In a homework situation, the tutor is probably suggesting that YOU
create the strlen() function and not to use the ready one...

--
Giannis Papadopoulos
http://dop.users.uth.gr/
University of Thessaly
Computer & Communications Engineering dept.
Nov 14 '05 #8
// here's my solution to this homework assignment

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

size_t Strlen(const char *str)
{
const char *p=str;
while(*p) ++p;
return p-str;
}

const char *LongestString(const char (*s1),const char (*s2)) {
size_t l1=Strlen(s1),l2=Strlen(s2);
return (l1>l2) ? s1 : (l1<l2) ? s2 : NULL;
}

int main(int argc,char **argv)
{
const char *longest;

if(argc!=3) {
fprintf(stderr,"Usage:\n\t%s <string1> <string2>\n",argv[0]);
exit(EXIT_FAILURE);
}

longest=LongestString(argv[1],argv[2]);
if(longest)
printf("The longest string is \"%s\"\n",longest);
else printf("Both strings are equal length.\n");

return 0;
}
Nov 14 '05 #9
In <cu*************@zero-based.org> Martin Dickopp <ex****************@zero-based.org> writes:
Darklight <ng******@netscape.net> writes:
Mail-Copies-To: ng******@netscape.net


You set the above header in your posting. This caused my newsreader to
send a mail copy of my reply to you, however it was returned due to an
invalid email address.

Don't set Mail-Copies-To to an invalid email address, please!


Which RFC defines this header?

AFAIK, the right header for this purpose is, and has always been,
Followup-To.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #10
Malcolm wrote:
printf("Enter string1\n");
fgets(a,100,stdin);

printf("Enter string2\n");
fgets(b,100,stdin);

You still haven't fixed the fgets() problem. fgets() is actually quite a
difficult function to use.


i was not aware there was a fgets problem could you please explain.
Nov 14 '05 #11
Martin Dickopp wrote:
Darklight <ng******@netscape.net> writes:
Mail-Copies-To: ng******@netscape.net


Once again, please don't do that.

sorry about that i have dealt with it

Nov 14 '05 #12
Papadopoulos Giannis wrote:
Darklight wrote:
Q6: Write a function that accepts two strings. Count the number of
characters in each, and return a pointer to the longer string.
and please comment


Is this a homework? Cause if it is, you got it wrong..

In a homework situation, the tutor is probably suggesting that YOU
create the strlen() function and not to use the ready one...

Question taken from a book hence i need people like your
self to look at my code. And correct me if i am wrong
Nov 14 '05 #13
Da*****@cern.ch (Dan Pop) writes:
In <cu*************@zero-based.org> Martin Dickopp <ex****************@zero-based.org> writes:
Darklight <ng******@netscape.net> writes:
Mail-Copies-To: ng******@netscape.net
You set the above header in your posting. This caused my newsreader to
send a mail copy of my reply to you, however it was returned due to an
invalid email address.

Don't set Mail-Copies-To to an invalid email address, please!


Which RFC defines this header?


AFAIKT it's a non-standard, but widely implemented header.
The RFC apparently never made it beyond draft stage
(cf. <99**************@newsreaders.com>).
AFAIK, the right header for this purpose is, and has always been,
Followup-To.


As I understand RFC 1036, Followup-To doesn't allow it to request
followups to be posted to newsgroup(s) /and/ mailed to an email address.

Martin
--
,--. Martin Dickopp, Dresden, Germany ,= ,-_-. =.
/ ,- ) http://www.zero-based.org/ ((_/)o o(\_))
\ `-' `-'(. .)`-'
`-. Debian, a variant of the GNU operating system. \_/
Nov 14 '05 #14
Darklight <ng******@netscape.net> writes:
Malcolm wrote:
printf("Enter string1\n");
fgets(a,100,stdin);

printf("Enter string2\n");
fgets(b,100,stdin);

You still haven't fixed the fgets() problem. fgets() is actually quite a
difficult function to use.


i was not aware there was a fgets problem could you please explain.


If the user enters 100 or more characters after the first prompt, the
first `fgets' will read 99 characters, store them in the buffer, and
append a '\0' character. The remaining (again up to 99) characters will
be read by the second `fgets' call, so the user never has a chance to
enter a second string in this case. Part of what the user considers the
first string will be stored in `b'.

If this is not clear, just try it. Enter more than 99 characters and see
what happens.

Martin
--
,--. Martin Dickopp, Dresden, Germany ,= ,-_-. =.
/ ,- ) http://www.zero-based.org/ ((_/)o o(\_))
\ `-' `-'(. .)`-'
`-. Debian, a variant of the GNU operating system. \_/
Nov 14 '05 #15
in comp.lang.c i read:
In <cu*************@zero-based.org> Martin Dickopp
<ex****************@zero-based.org> writes:
Don't set Mail-Copies-To to an invalid email address, please!


Which RFC defines this header?


much of usenet operates without proper rfc's.
AFAIK, the right header for this purpose is, and has always been,
Followup-To.


mail-copies-to is orthogonal to followup-to (except that m-c-t shouldn't be
used when followup-to poster is used), it controls follow-up copies, either
requesting them and specifying the address to use, or requesting that they
never be sent, it does not change the venue of the discussion.

--
a signature
Nov 14 '05 #16
Martin Dickopp wrote:
Darklight <ng******@netscape.net> writes:
Mail-Copies-To: ng******@netscape.net


Once again, please don't do that.


I am confused. I see no such phrase in the article to which you
are replying. That address appears only in the 'From:' header
line. There is such a line in the headers, but that seems to be
something peculiar to his system. He has no reply-to: header.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Nov 14 '05 #17
CBFalconer <cb********@yahoo.com> writes:
Martin Dickopp wrote:
Darklight <ng******@netscape.net> writes:
> Mail-Copies-To: ng******@netscape.net
Once again, please don't do that.


I am confused. I see no such phrase in the article to which you
are replying.


That line was not in the message body, but in the headers. I didn't
mention that fact because I had already asked the OP to remove the
header or point it to valid address in an earlier reply. Sorry for the
confusion.

My apologies to the OP for pointing it out /twice/. I realize now that
that was perhaps unnecessarily harsh.
That address appears only in the 'From:' header line. There is such a
line in the headers, but that seems to be something peculiar to his
system. He has no reply-to: header.


Are we talking about the same message (<c1**********@titan.btinternet.com>)?
It has that address in the From, Reply-To, and Mail-Copies-To headers.
However, only Mail-Copies-To asks for mail copies of replies, while
Reply-To states the address that mail should be send to if the person
replying decides to do so by mail.

Martin
--
,--. Martin Dickopp, Dresden, Germany ,= ,-_-. =.
/ ,- ) http://www.zero-based.org/ ((_/)o o(\_))
\ `-' `-'(. .)`-'
`-. Debian, a variant of the GNU operating system. \_/
Nov 14 '05 #18
Martin Dickopp wrote:
Darklight <ng******@netscape.net> writes:
Malcolm wrote:
printf("Enter string1\n");
fgets(a,100,stdin);

printf("Enter string2\n");
fgets(b,100,stdin);

You still haven't fixed the fgets() problem. fgets() is actually quite a
difficult function to use.


i was not aware there was a fgets problem could you please explain.


If the user enters 100 or more characters after the first prompt, the
first `fgets' will read 99 characters, store them in the buffer, and
append a '\0' character. The remaining (again up to 99) characters will
be read by the second `fgets' call, so the user never has a chance to
enter a second string in this case. Part of what the user considers the
first string will be stored in `b'.

If this is not clear, just try it. Enter more than 99 characters and see
what happens.

Martin

Thanks for that but at this stage i just want the program to work.
But now i am aware of the problem thanks.
Nov 14 '05 #19
In <m1*************@usa.net> those who know me have no need of my name <no****************@usa.net> writes:
in comp.lang.c i read:
In <cu*************@zero-based.org> Martin Dickopp
<ex****************@zero-based.org> writes:

Don't set Mail-Copies-To to an invalid email address, please!


Which RFC defines this header?


much of usenet operates without proper rfc's.

^^^^^^^^^^^^^^
Care to provide some concrete examples?

AFAICT, the Usenet is misused/abused when its usage goes beyond its
relevant RFCs.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #20
In <cu*************@zero-based.org> Martin Dickopp <ex****************@zero-based.org> writes:
Da*****@cern.ch (Dan Pop) writes:
In <cu*************@zero-based.org> Martin Dickopp <ex****************@zero-based.org> writes:
Darklight <ng******@netscape.net> writes:

Mail-Copies-To: ng******@netscape.net

You set the above header in your posting. This caused my newsreader to
send a mail copy of my reply to you, however it was returned due to an
invalid email address.

Don't set Mail-Copies-To to an invalid email address, please!


Which RFC defines this header?


AFAIKT it's a non-standard, but widely implemented header.


I.e. it's a bug in the software implementing it. If it didn't make its
way into an RFC, there must be a reason.

Even the Followup-to header is a mistake, IMHO. The poster has no
business controlling the options of the people who decide to reply.

He may kindly suggest followups to a subset of the Newsgroups header or
even by private email, but not enforce it.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #21

On Tue, 2 Mar 2004, Dan Pop wrote:

Martin Dickopp <ex****************@zero-based.org> writes:
Da*****@cern.ch (Dan Pop) writes:
Martin Dickopp <ex****************@zero-based.org> writes:
Darklight <ng******@netscape.net> writes:

> Mail-Copies-To: ng******@netscape.net

Don't set Mail-Copies-To to an invalid email address, please!

Which RFC defines this header?
AFAIKT it's a non-standard, but widely implemented header.


I.e. it's a bug in the software implementing it.


No, it's a feature. (How do you draw half a smiley?)
If it didn't make its way into an RFC, there must be a reason.
AFAIK, sliced bread doesn't have its own RFC, either. I
hardly think that is a valid argument.
Even the Followup-to header is a mistake, IMHO. The poster has no
business controlling the options of the people who decide to reply.

He may kindly suggest followups to a subset of the Newsgroups header or
even by private email, but not enforce it.


Duh. What do you think the "Followup-To" header is used for?
It's a standardized way of suggesting where "Followups" should go
"To." It would be impolite to force your readers to cut-and-paste
a list of followup groups from the message body, wouldn't it?
Usenet is a text medium, and text never "enforces" anything unless
the reader's news client wants it to.

-Arthur
Nov 14 '05 #22
In <Pi**********************************@unix48.andre w.cmu.edu> "Arthur J. O'Dwyer" <aj*@nospam.andrew.cmu.edu> writes:

On Tue, 2 Mar 2004, Dan Pop wrote:

Martin Dickopp <ex****************@zero-based.org> writes:
>Da*****@cern.ch (Dan Pop) writes:
>> Martin Dickopp <ex****************@zero-based.org> writes:
>>>Darklight <ng******@netscape.net> writes:
>>>
>>>> Mail-Copies-To: ng******@netscape.net
>>>
>>>Don't set Mail-Copies-To to an invalid email address, please!
>>
>> Which RFC defines this header?
>
>AFAIKT it's a non-standard, but widely implemented header.
I.e. it's a bug in the software implementing it.


No, it's a feature. (How do you draw half a smiley?)
If it didn't make its way into an RFC, there must be a reason.


AFAIK, sliced bread doesn't have its own RFC, either.


If it were relevant in any way to Usenet, you may have had a point...
I hardly think that is a valid argument.


RFC 1036 is to the Usenet what the C standard is to C programming.
By your logic, HTML posts and MIME attachments should be fine, too.
Even the Followup-to header is a mistake, IMHO. The poster has no
business controlling the options of the people who decide to reply.

He may kindly suggest followups to a subset of the Newsgroups header or
even by private email, but not enforce it.


Duh. What do you think the "Followup-To" header is used for?
It's a standardized way of suggesting where "Followups" should go
"To." It would be impolite to force your readers to cut-and-paste
a list of followup groups from the message body, wouldn't it?
Usenet is a text medium, and text never "enforces" anything unless
the reader's news client wants it to.


2.2.3. Followup-To

This line has the same format as "Newsgroups". If present, follow-
up messages are to be posted to the newsgroup or newsgroups listed
here. ^^^^^^^^^^^^^^^^

It's imperative to the client software, not a mere suggestion. And it's
not uncommon for clients to behave accordingly.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #23
> RFC 1036 is to the Usenet what the C standard is to C programming.
By your logic, HTML posts and MIME attachments should be fine, too.


The C standard, like all 'standards' are mere guidelines not rules. Do you
also condemn all C compilers that offer extensions to the standard? Those
that make system calls outside the scope of standardised C?
Nov 14 '05 #24
Mark Henning wrote:
RFC 1036 is to the Usenet what the C standard is to C programming.
By your logic, HTML posts and MIME attachments should be fine, too.
The C standard, like all 'standards' are mere guidelines not rules.


Please don't quote Pirates Of The Carribean
to substantiate your beliefs about C.
Do you also condemn all C compilers that offer extensions to the
standard?
There are rules about that.
If the behavior of any conforming program is not
altered by the extensions,
then extensions don't affect the conformance of the compiler.
Those
that make system calls outside the scope of standardised C?


Those programs are OK where they're OK,
but they're not OK on this newsgroup.

--
pete
Nov 14 '05 #25
In <c2**********@taliesin2.netcom.net.uk> "Mark Henning" <ma*******@btopenworld.com> writes:
RFC 1036 is to the Usenet what the C standard is to C programming.
By your logic, HTML posts and MIME attachments should be fine, too.
The C standard, like all 'standards' are mere guidelines not rules. Do you
also condemn all C compilers that offer extensions to the standard?


If their extensions to the standard break correct C programs, yes, of
course. Otherwise, such extensions are *explicitly* allowed by the C
standard itself, so I have no reason to condemn them.
Those that make system calls outside the scope of standardised C?


I'm not sure what you mean here. It is C programs that may make
function calls outside the scope of standardised C, not C compilers.
For all we know, C compilers need not be even written in C.

I do condemn C implementations whose headers declare/define identifiers
not belonging to the implementation name space, when invoked in
conforming mode.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #26
[fu-t set]

in comp.lang.c i read:
In <m1*************@usa.net> those who know me have no need of my name
<no****************@usa.net> writes:

much of usenet operates without proper rfc's.

^^^^^^^^^^^^^^
Care to provide some concrete examples?


i believe you could find them yourself, and this is the wrong forum, but
i'll mention that rfc 1036 is the last rfc on the topic but is no longer
what is generally used, son-of-1036 is closer to what is actively used and
it is not an rfc (and is somewhat ignored because it doesn't provide enough
support and has flaws). if you want to learn how the usenet is operating
today and under what (non)standards the appropriate groups are
news.admin.technical (nearly dead) or news.software.nntp, or even the
venerable news.answers or news.newusers.questions are not inappropriate
even for an old-hand.

--
a signature
Nov 14 '05 #27
> Please don't quote Pirates Of The Carribean
to substantiate your beliefs about C.


I quote nothing.

Nov 14 '05 #28
"Mark Henning" <ma*******@btopenworld.com> writes:
Please don't quote Pirates Of The Carribean
to substantiate your beliefs about C.


I quote nothing.


But you just did!
--
int main(void){char p[]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuv wxyz.\
\n",*q="kl BIcNBFr.NKEzjwCIxNJC";int i=sizeof p/2;char *strchr();int putchar(\
);while(*q){i+=strchr(p,*q++)-p;if(i>=(int)sizeof p)i-=sizeof p-1;putchar(p[i]\
);}return 0;}
Nov 14 '05 #29

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

Similar topics

6
by: David Opstad | last post by:
I have a question about text rendering I'm hoping someone here can answer. Is there a way of doing linguistically correct rendering of Unicode strings in Python? In simple cases like Latin or...
0
by: Sarah Tegtmeier | last post by:
Hi I have a question about the correct use of the attribute xsi:schemaLocation. My programm has to process XML files where the value of this attribute causes some problems. The programm is...
1
by: Richard Golebiowski | last post by:
I have been trying to figure this out for quite some time and cannot find any examples in VB.Net or in VB that work correctly. I am working on an application where I want the user to be able to...
14
by: john.burton.email | last post by:
I've done some extensive searching and can't seem to find an answer to this - Is it correct to using "using" with templates, for example: using std::vector; Or do I need to specify the type...
6
by: Rob Thorpe | last post by:
Given the code:- r = sscanf (s, "%lf", x); What is the correct output if the string s is simply "-" ? If "-" is considered the beginning of a number, that has been cut-short then the...
5
by: blackg | last post by:
Input string not in correct format -------------------------------------------------------------------------------- I am trying to view a picture from a table. I am getting this error Input string...
2
by: thisis | last post by:
Hi All, I need the PUBS.mdb for pulling images: PUBS.mdb must have the table: pub_info tbl_pub_info : has 3 fields Data_Type : ok Data_Type : ok
0
by: sehguh | last post by:
Hiya Folks, I am Currently using windows xp. Also using Visual Web Developer 2005 and Microsoft Sql server 2005. The main page consists of an aspx page and a master page. The page also...
3
lee123
by: lee123 | last post by:
I have a problem getting the correct to count +1 every time I get an answer right and the incorrect is the same. I have two lbl's named number1 and number2 which produces a Rnd# in each lbl. ...
10
by: onetruelove | last post by:
I want to creat a post like this blog: http://onlinetoefltest.blogspot.com/2007/08/level-c-lesson-1.html When you chose all the answers and click show answer a msg box will appear and tells how...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.