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

if cookie = ""

OKay so im new to Javascript Cookies....

I am able to set and return cookie values but i know want to create an
if statement!

One of my cookies is called "color" and i wish to write a script that
displays a certain graphic if "Color" equals "White" for example.

The code i have so far is...
<script type="text/javascript">
color=getCookie('color')
if (color="White")
{
alert('Color = '+color+'!')
}
</script>

The alert appears when the page loads but ignores the IF statement so
just displays the value of "color" regardless of wether its value is
"White".

Im stuck and google searching is getting me knowhere, can this be
done?

Your help is greaty appreciated!

Sep 26 '07 #1
26 1749
On Sep 26, 4:21 pm, "screechy...@googlemail.com"
<screechy...@googlemail.comwrote:
OKay so im new to Javascript Cookies....

I am able to set and return cookie values but i know want to create an
if statement!
You now want to create an if statement?
>
One of my cookies is called "color" and i wish to write a script that
displays a certain graphic if "Color" equals "White" for example.

The code i have so far is...
<script type="text/javascript">
color=getCookie('color')
if (color="White")
Use == for comparisons. The single = is for assignments.

Sep 26 '07 #2
okay changed to...

<script type="text/javascript">
color=getCookie('color')
if (color!=="White")
{
alert('Color = '+color+'!')
}
</script>

Same result returns "color" regardless. Oh and yes i meant "now want
to create an if statement".

Sep 26 '07 #3
On Sep 26, 4:45 pm, "screechy...@googlemail.com"
<screechy...@googlemail.comwrote:
okay changed to...

<script type="text/javascript">
color=getCookie('color')
var color = getCookie('color');
if (color!=="White")
{
alert('Color = '+color+'!')}

</script>

Same result returns "color" regardless. Oh and yes i meant "now want
to create an if statement".
What do you mean it returns "color?" Do you mean it alerts "Color =
color?" If so, then either your getCookie function has a problem or
the "color" cookie is actually "color."

Sep 26 '07 #4
sc*********@googlemail.com wrote:
okay changed to...

<script type="text/javascript">
color=getCookie('color')
if (color!=="White")
{
alert('Color = '+color+'!')
}
</script>

Same result returns "color" regardless. Oh and yes i meant "now want
to create an if statement".
The easiest way to find out what's going on is to just remove the logic,
like this:

color=getCookie('color');
alert(color);

Then you'll see immediately what's being returned.
Sep 26 '07 #5
So on a previous page i set the value of the cookie "color", it could
be "Red", "Blue", "Green", "Black" or "White".

When i execute the code above it correctly returns the value of the
cookie "color" be it "Red", "Blue", "Green", "Black" or "White".

The purpose of my if statement is to only display the alert if the
value fo the cookie "color" is "White".

Thus if color=="White"
Sep 26 '07 #6
On Sep 26, 4:57 pm, "screechy...@googlemail.com"
<screechy...@googlemail.comwrote:
So on a previous page i set the value of the cookie "color", it could
be "Red", "Blue", "Green", "Black" or "White".
So who are you replying to?
>
When i execute the code above it correctly returns the value of the
cookie "color" be it "Red", "Blue", "Green", "Black" or "White".
What code?
>
The purpose of my if statement is to only display the alert if the
value fo the cookie "color" is "White".

Thus if color=="White"
Except that your last posted snippet did the opposite.

Sep 26 '07 #7
sc*********@googlemail.com wrote on 26 sep 2007 in comp.lang.javascript:
So on a previous page i set the value of the cookie "color", it could
be "Red", "Blue", "Green", "Black" or "White".
Are you responding to something?

[please always quote on usenet]
When i execute the code above it correctly returns the value of the
cookie "color" be it "Red", "Blue", "Green", "Black" or "White".

The purpose of my if statement is to only display the alert if the
value fo the cookie "color" is "White".

Thus if color=="White"

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Sep 26 '07 #8
The Code i have is:
<script type="text/javascript">
color=getCookie('color')
if (color!=="White")
{
alert('Color = '+color+'!')
}
</script>
The bottom line is regardless of the line starting with IF it alerts
me! This shouldnt be happening or at least is not what i want to
happen!

Sep 26 '07 #9
sc*********@googlemail.com wrote on 26 sep 2007 in comp.lang.javascript:
The Code i have is:
><script type="text/javascript">
color=getCookie('color')
if (color!=="White")
!=
>{
alert('Color = '+color+'!')
}
</script>

The bottom line is regardless of the line starting with IF it alerts
me!
Could you refrase that?

This shouldnt be happening or at least is not what i want to
happen!



--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Sep 26 '07 #10
On Sep 26, 5:05 pm, "screechy...@googlemail.com"
<screechy...@googlemail.comwrote:
The Code i have is:
<script type="text/javascript">
color=getCookie('color')
if (color!=="White")
{
alert('Color = '+color+'!')
}
</script>

The bottom line is regardless of the line starting with IF it alerts
me! This shouldnt be happening or at least is not what i want to
happen!
Try this:

color = "White";
if (color!=="White")
{
alert('Color = '+color+'!')
}

You won't get an alert. The lesson is that your getCookie function
never returns "White."

Sep 26 '07 #11
On 26 Sep, 22:10, David Mark <dmark.cins...@gmail.comwrote:
On Sep 26, 5:05 pm, "screechy...@googlemail.com"

<screechy...@googlemail.comwrote:
The Code i have is:
<script type="text/javascript">
color=getCookie('color')
if (color!=="White")
{
alert('Color = '+color+'!')
}
</script>
The bottom line is regardless of the line starting with IF it alerts
me! This shouldnt be happening or at least is not what i want to
happen!

Try this:

color = "White";
if (color!=="White")
{
alert('Color = '+color+'!')
}

You won't get an alert. The lesson is that your getCookie function
never returns "White."
Your absolutley right, not that i ever doubted you! So now if you dont
mind i need help understanding why it doesnt return anything using
your code:

color = "White";
if (color!=="White")
{
alert('Color = '+color+'!')
}

You have set color to white so why dont we get an alert?

Sep 26 '07 #12
On Sep 27, 2:10 am, David Mark <dmark.cins...@gmail.comwrote:
On Sep 26, 5:05 pm, "screechy...@googlemail.com"

<screechy...@googlemail.comwrote:
The Code i have is:
<script type="text/javascript">
color=getCookie('color')
if (color!=="White")
{
alert('Color = '+color+'!')
}
</script>
The bottom line is regardless of the line starting with IF it alerts
me! This shouldnt be happening or at least is not what i want to
happen!

Try this:

color = "White";
if (color!=="White")
{
alert('Color = '+color+'!')
}

You won't get an alert. The lesson is that your getCookie function
never returns "White."
This world is going bananas. OP and everyone else who didn't mention
this, you guys need to pickup a book that teaches basics of javascript
and open the chapter that explains the comparison operators. Did
anyone notice this statement "if (color!=="White")"?

Sep 26 '07 #13
On Sep 26, 5:24 pm, haroon <haroon.sha...@gmail.comwrote:
On Sep 27, 2:10 am, David Mark <dmark.cins...@gmail.comwrote:


On Sep 26, 5:05 pm, "screechy...@googlemail.com"
<screechy...@googlemail.comwrote:
The Code i have is:
<script type="text/javascript">
color=getCookie('color')
if (color!=="White")
{
alert('Color = '+color+'!')
}
</script>
The bottom line is regardless of the line starting with IF it alerts
me! This shouldnt be happening or at least is not what i want to
happen!
Try this:
color = "White";
if (color!=="White")
{
alert('Color = '+color+'!')
}
You won't get an alert. The lesson is that your getCookie function
never returns "White."

This world is going bananas. OP and everyone else who didn't mention
No, I think you have gone bananas. Re-read the thread and try again.

Sep 26 '07 #14
On 26 Sep, 22:24, haroon <haroon.sha...@gmail.comwrote:
On Sep 27, 2:10 am, David Mark <dmark.cins...@gmail.comwrote:


On Sep 26, 5:05 pm, "screechy...@googlemail.com"
<screechy...@googlemail.comwrote:
The Code i have is:
<script type="text/javascript">
color=getCookie('color')
if (color!=="White")
{
alert('Color = '+color+'!')
}
</script>
The bottom line is regardless of the line starting with IF it alerts
me! This shouldnt be happening or at least is not what i want to
happen!
Try this:
color = "White";
if (color!=="White")
{
alert('Color = '+color+'!')
}
You won't get an alert. The lesson is that your getCookie function
never returns "White."

This world is going bananas. OP and everyone else who didn't mention
this, you guys need to pickup a book that teaches basics of javascript
and open the chapter that explains the comparison operators. Did
anyone notice this statement "if (color!=="White")"?- Hide quoted text -

- Show quoted text -
I dont have a book at present but clearly stated im a newbie to
javascript at the top of this thread, enlighten me please and i
promise i'll go read a book!

Sep 26 '07 #15
On Sep 26, 5:18 pm, "screechy...@googlemail.com"
<screechy...@googlemail.comwrote:
On 26 Sep, 22:10, David Mark <dmark.cins...@gmail.comwrote:


On Sep 26, 5:05 pm, "screechy...@googlemail.com"
<screechy...@googlemail.comwrote:
The Code i have is:
<script type="text/javascript">
color=getCookie('color')
if (color!=="White")
{
alert('Color = '+color+'!')
}
</script>
The bottom line is regardless of the line starting with IF it alerts
me! This shouldnt be happening or at least is not what i want to
happen!
Try this:
color = "White";
if (color!=="White")
{
alert('Color = '+color+'!')
}
You won't get an alert. The lesson is that your getCookie function
never returns "White."

Your absolutley right, not that i ever doubted you! So now if you dont
mind i need help understanding why it doesnt return anything using
your code:

color = "White";
if (color!=="White")
{
alert('Color = '+color+'!')

}

You have set color to white so why dont we get an alert?- Hide quoted text -

- Show quoted text -
You changed the comparison operator in mid-thread. I mentioned this
previously.

Sep 26 '07 #16
sc*********@googlemail.com wrote:
One of my cookies is called "color" and i wish to write a script that
displays a certain graphic if "Color" equals "White" for example.

The code i have so far is...
<script type="text/javascript">
color=getCookie('color')
Always declare your variables:

var color = getCookie("color");
if (color="White")
That is an *assignment* to `color', overwriting the previously initalized value.
{
alert('Color = '+color+'!')
}
</script>

The alert appears when the page loads but ignores the IF statement
Actually, it does not. Since "White" which becomes the value of `color' is
a true-value, the associated block statement is always executed.
so just displays the value of "color" regardless of wether its value is
"White".
The equals operator in ECMAScript implementations is

==
[...]
Im stuck and google searching is getting me knowhere,
Firefox' error console with enabled JavaScript warnings would have.
can this be done?
Of course.
PointedEars
--
"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Sep 26 '07 #17
haroon said the following on 9/26/2007 5:24 PM:
On Sep 27, 2:10 am, David Mark <dmark.cins...@gmail.comwrote:
>On Sep 26, 5:05 pm, "screechy...@googlemail.com"

<screechy...@googlemail.comwrote:
>>The Code i have is:
<script type="text/javascript">
color=getCookie('color')
if (color!=="White")
{
alert('Color = '+color+'!')
}
</script>
The bottom line is regardless of the line starting with IF it alerts
me! This shouldnt be happening or at least is not what i want to
happen!
Try this:

color = "White";
if (color!=="White")
{
alert('Color = '+color+'!')
}

You won't get an alert. The lesson is that your getCookie function
never returns "White."

This world is going bananas. OP and everyone else who didn't mention
this, you guys need to pickup a book that teaches basics of javascript
and open the chapter that explains the comparison operators. Did
anyone notice this statement "if (color!=="White")"?
Have you not noticed the several replies correcting that comparison?
Maybe you need to pickup the group FAQ and give it a good reading.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Sep 27 '07 #18
On Sep 26, 5:28 pm, "screechy...@googlemail.com"
<screechy...@googlemail.comwrote:
On 26 Sep, 22:24, haroon <haroon.sha...@gmail.comwrote:


On Sep 27, 2:10 am, David Mark <dmark.cins...@gmail.comwrote:
On Sep 26, 5:05 pm, "screechy...@googlemail.com"
<screechy...@googlemail.comwrote:
The Code i have is:
<script type="text/javascript">
color=getCookie('color')
if (color!=="White")
{
alert('Color = '+color+'!')
}
</script>
The bottom line is regardless of the line starting with IF it alerts
me! This shouldnt be happening or at least is not what i want to
happen!
Try this:
color = "White";
if (color!=="White")
{
alert('Color = '+color+'!')
}
You won't get an alert. The lesson is that your getCookie function
never returns "White."
This world is going bananas. OP and everyone else who didn't mention
this, you guys need to pickup a book that teaches basics of javascript
and open the chapter that explains the comparison operators. Did
anyone notice this statement "if (color!=="White")"?- Hide quoted text -
- Show quoted text -

I dont have a book at present but clearly stated im a newbie to
javascript at the top of this thread, enlighten me please and i
promise i'll go read a book!
He can't enlighten you as he is confused. I suspect he saw !== and
had the typical newb reaction of "too many equal signs." You should
read up on comparison operators though as you seem to have less than a
firm grasp on them.

Sep 27 '07 #19
On Sep 27, 2:28 am, David Mark <dmark.cins...@gmail.comwrote:
On Sep 26, 5:24 pm, haroon <haroon.sha...@gmail.comwrote:
On Sep 27, 2:10 am, David Mark <dmark.cins...@gmail.comwrote:
On Sep 26, 5:05 pm, "screechy...@googlemail.com"
<screechy...@googlemail.comwrote:
The Code i have is:
<script type="text/javascript">
color=getCookie('color')
if (color!=="White")
{
alert('Color = '+color+'!')
}
</script>
The bottom line is regardless of the line starting with IF it alerts
me! This shouldnt be happening or at least is not what i want to
happen!
Try this:
color = "White";
if (color!=="White")
{
alert('Color = '+color+'!')
}
You won't get an alert. The lesson is that your getCookie function
never returns "White."
This world is going bananas. OP and everyone else who didn't mention

No, I think you have gone bananas. Re-read the thread and try again.
Well to be honest, i didn't read your post in which you said "!==" is
wrong and "!=" is right. In your first reply you explained the
difference between "=" and "==" in your second post you were confused
about what the OP wants in your third post you told the OP that he was
doing opposite of color=="White which is color!="White which he was
_not_ doing and in your fourth post, you made the same mistake
yourself. And in your fifth post you are telling me that I have gone
bananas?

Sep 27 '07 #20
On Sep 27, 5:13 am, Randy Webb <HikksNotAtH...@aol.comwrote:
haroon said the following on 9/26/2007 5:24 PM:
On Sep 27, 2:10 am, David Mark <dmark.cins...@gmail.comwrote:
On Sep 26, 5:05 pm, "screechy...@googlemail.com"
<screechy...@googlemail.comwrote:
The Code i have is:
<script type="text/javascript">
color=getCookie('color')
if (color!=="White")
{
alert('Color = '+color+'!')
}
</script>
The bottom line is regardless of the line starting with IF it alerts
me! This shouldnt be happening or at least is not what i want to
happen!
Try this:
color = "White";
if (color!=="White")
{
alert('Color = '+color+'!')
}
You won't get an alert. The lesson is that your getCookie function
never returns "White."
This world is going bananas. OP and everyone else who didn't mention
this, you guys need to pickup a book that teaches basics of javascript
and open the chapter that explains the comparison operators. Did
anyone notice this statement "if (color!=="White")"?

Have you not noticed the several replies correcting that comparison?
Maybe you need to pickup the group FAQ and give it a good reading.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/
May be you need to open up your eyes.

Sep 27 '07 #21
On Sep 27, 6:50 am, haroon <haroon.sha...@gmail.comwrote:
On Sep 27, 2:28 am, David Mark <dmark.cins...@gmail.comwrote:


On Sep 26, 5:24 pm, haroon <haroon.sha...@gmail.comwrote:
On Sep 27, 2:10 am, David Mark <dmark.cins...@gmail.comwrote:
On Sep 26, 5:05 pm, "screechy...@googlemail.com"
<screechy...@googlemail.comwrote:
The Code i have is:
<script type="text/javascript">
color=getCookie('color')
if (color!=="White")
{
alert('Color = '+color+'!')
}
</script>
The bottom line is regardless of the line starting with IF it alerts
me! This shouldnt be happening or at least is not what i want to
happen!
Try this:
color = "White";
if (color!=="White")
{
alert('Color = '+color+'!')
}
You won't get an alert. The lesson is that your getCookie function
never returns "White."
This world is going bananas. OP and everyone else who didn't mention
No, I think you have gone bananas. Re-read the thread and try again.

Well to be honest, i didn't read your post in which you said "!==" is
wrong and "!=" is right. In your first reply you explained the
How do you figure that !== is "wrong." It is perfectly valid.
difference between "=" and "==" in your second post you were confused
about what the OP wants in your third post you told the OP that he was
doing opposite of color=="White which is color!="White which he was
Not technically the opposite operator, but logically he flip-flopped.
_not_ doing and in your fourth post, you made the same mistake
yourself. And in your fifth post you are telling me that I have
Make no mistake, I made no mistake.

gone
bananas?
You did go bananas.

Sep 27 '07 #22
On 27 Sep, 18:26, David Mark <dmark.cins...@gmail.comwrote:
On Sep 27, 6:50 am, haroon <haroon.sha...@gmail.comwrote:


On Sep 27, 2:28 am, David Mark <dmark.cins...@gmail.comwrote:
On Sep 26, 5:24 pm, haroon <haroon.sha...@gmail.comwrote:
On Sep 27, 2:10 am, David Mark <dmark.cins...@gmail.comwrote:
On Sep 26, 5:05 pm, "screechy...@googlemail.com"
<screechy...@googlemail.comwrote:
The Code i have is:
<script type="text/javascript">
color=getCookie('color')
if (color!=="White")
{
alert('Color = '+color+'!')
}
</script>
The bottom line is regardless of the line starting with IF it alerts
me! This shouldnt be happening or at least is not what i want to
happen!
Try this:
color = "White";
if (color!=="White")
{
alert('Color = '+color+'!')
}
You won't get an alert. The lesson is that your getCookie function
never returns "White."
This world is going bananas. OP and everyone else who didn't mention
No, I think you have gone bananas. Re-read the thread and try again.
Well to be honest, i didn't read your post in which you said "!==" is
wrong and "!=" is right. In your first reply you explained the

How do you figure that !== is "wrong." It is perfectly valid.
difference between "=" and "==" in your second post you were confused
about what the OP wants in your third post you told the OP that he was
doing opposite of color=="White which is color!="White which he was

Not technically the opposite operator, but logically he flip-flopped.
_not_ doing and in your fourth post, you made the same mistake
yourself. And in your fifth post you are telling me that I have

Make no mistake, I made no mistake.

gone
bananas?

You did go bananas.- Hide quoted text -

- Show quoted text -
Ok, Banana arguments aside i still dont have this code functioning as
i wish perhaps im going about it completly the wrong way!?!

Thanks to the above posts the code i now i have is:

<script type="text/javascript">
var color = getCookie("color");
if (color!=="White")
{
alert('Color = '+color+'!')
}
</script>

Ultimatley i would like it to perform a different action depending on
the value of the color cookie so i will definatly be needing an if
statement at some juncture. My problem is and always has been that
using this code the message box appears regardless of the value of the
cookie.

Sep 28 '07 #23
On Sep 28, 11:52 am, "screechy...@googlemail.com"
<screechy...@googlemail.comwrote:

[snip]
statement at some juncture. My problem is and always has been that
using this code the message box appears regardless of the value of the
cookie.
Actually, if you go back and find the post where I removed the cookie
processing from the equation, you will see that "White" won't alert.
This should be intuitively obvious if you understand what the !==
operator does.

Sep 28 '07 #24
Please trim your quotes.

sc*********@googlemail.com wrote:
Ok, Banana arguments aside i still dont have this code functioning as
i wish perhaps im going about it completly the wrong way!?!

Thanks to the above posts the code i now i have is:
Thanks to the "above" (above? Google Groups is not the Usenet standard!)
posts, you have been mislead.
<script type="text/javascript">
var color = getCookie("color");
if (color!=="White")
!== is the strict inequality operator; the exact opposite of what you are
looking for: ==
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Sep 28 '07 #25
Ok appologies i am as stated a newb and am using Googlegroups...

I have replace !== with just == now i dont get an alert at all.

My code is:

<script type="text/javascript">
var color = getCookie("color");
if (color=="white")
{
alert('Color = '+color+'!')
}
</script>

Sep 28 '07 #26
sc*********@googlemail.com wrote:
Ok appologies i am as stated a newb and am using Googlegroups...
You could start by using proper language, and reading the FAQ and FAQ Notes
before you post.

http://jibbering.com/faq/
I have replace !== with just == now i dont get an alert at all.
And what do you expect now? The code is *syntactically* correct. Unless
you post a URL, one cannot verify whether or not it also fits the semantics
of your application.
My code is:

<script type="text/javascript">
var color = getCookie("color");
if (color=="white")
{
alert('Color = '+color+'!')
}
</script>
This is different from what you have posted previously: it is "white" here
and "White" there.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>
Sep 28 '07 #27

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

Similar topics

2
by: Eino Mäkitalo | last post by:
It seems that urrlib2 default redirection does not allow me to handle Cookies. Service I'm trying seems to use IP switcher and session id's with cookies. After successful login it changes session...
1
by: dmgauntt2002 | last post by:
I have some javascript ASP code that sets the expiry date on a cookie to five years from now. The code worked until today, when I got the following error message: Microsoft JScript runtime...
6
by: Otto Wyss | last post by:
I've the following function declaration: wxTree GetLastChild (const wxTree& item, long& cookie) const; I'd like to make the cookie parameter optional, i.e. "long& cookie = ....", without...
9
by: Don | last post by:
I understand that when I send a cookie in a client-side page containing JS, it isn't actually "set" until the next page is loaded. Is there some way to "set" it within the same html/JS page so it...
1
by: Daniel Michaeloff | last post by:
Hi all, I have an application that when finished redirects to a non-ASP.NET app which is choking on a huge ASP.NET session cookie. The cookie "ASP.NET_SessionId" gets transmitted by the browser...
23
by: Phil Powell | last post by:
// OBTAINED FROM http://www.javascripter.net/faq/settinga.htm // NOTE THAT IF YOU SET days TO -1 THE COOKIE WILL BE SET TO YESTERDAY AND THUS EXPIRE function setCookie(name, value, days, docObj)...
1
by: juergen | last post by:
Hi, there are many postings on this subject, I have read them put don't have an answer. I get these warnings: Cannot send session cookie - headers already sent in, but my php-scripts are okay. ...
1
by: stdusererr | last post by:
I'm use HttpURLConnection get cookie information from a server. In the response header it uses "Set-Cookie" twice and I am only able to get the 2nd value. I've done some googling and found that I...
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: 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
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
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
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...

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.