by: Robert Scheer |
last post by:
Hi.
I am trying to use switch this way, without success:
//thedata is a numeric variable
switch (thedata) {
case < 10:
...
case < 20:
...
|
by: Tomas Larsson |
last post by:
Hi.
I have some problems when using a static readonly declaration of a guid in a
switch/case statement. I'll give you an example.
public sealed class Activites
{
private Activites(){}
|
by: Benny Raymond |
last post by:
I'm confused as to how fallthrough is limited in switch. For example
the following works:
string switch_test = "a";
switch (switch_test)
{
case "a":
case "b":
case "c":
doSomething(a);
|
by: graeme g |
last post by:
hi
how would i write the following in switch case statement:
if (x < 40)
y = 0;
else if (x < 65)
y = 1;
else if (x < 80)
y = 2;
|
by: sam_cit |
last post by:
Hi Everyone,
I read somewhere that there are some compile time operations behind
switch-case, which is why it can work for cases which evaluates to an
integer or character and not strings and...
|
by: Cloudbender |
last post by:
how to create a program in c that shows your zodiac sign by using switch case statement.
heres an example output:
1 - jan.
2 - feb.
3 - mar.
4 - apr.
5 - may
6 -...
|
by: Satya |
last post by:
Hi everyone,
This is the first time iam posting excuse me if iam making any
mistake. My question is iam using a switch case statement in which i
have around 100 case statements to compare. so...
|
by: CSharper |
last post by:
I have a hashtable which has key and value. If the key is set to 'a'
then I need to create a class1 and if it has key 'b' then I need to
create class2 etc. (There is no name relation between the...
|
by: jeepzhen |
last post by:
Hi experts, I'm now working on a project to convert vb6 code to c#.net. I am facing a problem when using switch case in side a for loop which concatenating a constant value with for loop counter in...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
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,...
|
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: 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...
|