473,397 Members | 2,028 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,397 software developers and data experts.

LoadControl() and Constructor Parameters

How do I accomplish the fallowing (is it even possible). Say I write a UserControl
"MyControl.ascx". Now I use LoadControl("MyControl.ascx"). But I really
want MyControl to require parameters in the constructor for example MyContorl
oMyControl = new MyContorl(employeeid). However I need to load the control
at runtime so the have to call it this way LoadControl("MyControl.ascx")
and I get an error that I have not supplied any parameter to the constructor.
Is there anyway around this? I guess I could change the control so that
I can insatiate it without supplying parameters and assigning the properties
later; but that doesn't seem like a very clean solution. Thanks in advance.
Nov 19 '05 #1
8 5218
Controls have to have a paramerter-less constructor. You could use a
factory type pattern to keep a clean design. Perhaps even a static
method on the class like so:

MyUserControl uc = MyUserControl.Create(param1, param2) { ... }
What do you think?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 10 Feb 2005 13:25:41 -0800, Sam Kuehn <sa******@hotmail.com>
wrote:
How do I accomplish the fallowing (is it even possible). Say I write a UserControl
"MyControl.ascx". Now I use LoadControl("MyControl.ascx"). But I really
want MyControl to require parameters in the constructor for example MyContorl
oMyControl = new MyContorl(employeeid). However I need to load the control
at runtime so the have to call it this way LoadControl("MyControl.ascx")
and I get an error that I have not supplied any parameter to the constructor.
Is there anyway around this? I guess I could change the control so that
I can insatiate it without supplying parameters and assigning the properties
later; but that doesn't seem like a very clean solution. Thanks in advance.


Nov 19 '05 #2
Hello Scott,
That would work great if I didn't have to load the control at runtime. See
I don't know what UserContol I am going to add at design time. It is dependant
on user input at runtime. Therefore, I cannot call a method (or throw parameters
at the constructor for that matter). Also, are you saying that I couldn't
do something like:

public class MyControl: System.Web.UI.UserControl
{
//Constructor
MyControll(int employeeid){.....}
}
Casue it seem that would work just fine.
Controls have to have a paramerter-less constructor. You could use a
factory type pattern to keep a clean design. Perhaps even a static
method on the class like so:

MyUserControl uc = MyUserControl.Create(param1, param2) { ... }

What do you think?

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Thu, 10 Feb 2005 13:25:41 -0800, Sam Kuehn <sa******@hotmail.com>
wrote:
How do I accomplish the fallowing (is it even possible). Say I write
a UserControl "MyControl.ascx". Now I use
LoadControl("MyControl.ascx"). But I really want MyControl to
require parameters in the constructor for example MyContorl
oMyControl = new MyContorl(employeeid). However I need to load the
control at runtime so the have to call it this way
LoadControl("MyControl.ascx") and I get an error that I have not
supplied any parameter to the constructor. Is there anyway around
this? I guess I could change the control so that I can insatiate it
without supplying parameters and assigning the properties later; but
that doesn't seem like a very clean solution. Thanks in advance.


Nov 19 '05 #3
Hi Sam:

See my notes inline.

On Thu, 10 Feb 2005 14:14:30 -0800, Sam Kuehn <sa******@hotmail.com>
wrote:
Hello Scott,
That would work great if I didn't have to load the control at runtime. See
I don't know what UserContol I am going to add at design time. It is dependant
on user input at runtime. Therefore, I cannot call a method (or throw parameters
at the constructor for that matter).
That's perfect for the factory pattern - it encapsulates all of the
logic needed to create and initialize an object, it also hides the
Type of the object being created. Some more details here:
http://msdn.microsoft.com/library/de...ctopattern.asp
Also, are you saying that I couldn't
do something like:

public class MyControl: System.Web.UI.UserControl
{
//Constructor
MyControll(int employeeid){.....}
}
Casue it seem that would work just fine.


Unfortunately not. When the runtime creates an instance of the control
it does so with the paramerter-less ctor.

--
Scott
http://www.OdeToCode.com/blogs/scott/
Controls have to have a paramerter-less constructor. You could use a
factory type pattern to keep a clean design. Perhaps even a static
method on the class like so:

MyUserControl uc = MyUserControl.Create(param1, param2) { ... }

What do you think?

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Thu, 10 Feb 2005 13:25:41 -0800, Sam Kuehn <sa******@hotmail.com>
wrote:
How do I accomplish the fallowing (is it even possible). Say I write
a UserControl "MyControl.ascx". Now I use
LoadControl("MyControl.ascx"). But I really want MyControl to
require parameters in the constructor for example MyContorl
oMyControl = new MyContorl(employeeid). However I need to load the
control at runtime so the have to call it this way
LoadControl("MyControl.ascx") and I get an error that I have not
supplied any parameter to the constructor. Is there anyway around
this? I guess I could change the control so that I can insatiate it
without supplying parameters and assigning the properties later; but
that doesn't seem like a very clean solution. Thanks in advance.



Nov 19 '05 #4
All ascxs have only 1 constructor. Maybe the class MyControl.ascx inherits
from has overloaded constructors, but the asp.net runtime will call the
default constructor. You're going to need to take a different approach. If
you want the control to know the employeeid, use the session or something.

"Sam Kuehn" <sa******@hotmail.com> wrote in message
news:12**********************@msnews.microsoft.com ...
How do I accomplish the fallowing (is it even possible). Say I write a
UserControl "MyControl.ascx". Now I use LoadControl("MyControl.ascx").
But I really want MyControl to require parameters in the constructor for
example MyContorl oMyControl = new MyContorl(employeeid). However I need
to load the control at runtime so the have to call it this way
LoadControl("MyControl.ascx") and I get an error that I have not supplied
any parameter to the constructor. Is there anyway around this? I guess I
could change the control so that I can insatiate it without supplying
parameters and assigning the properties later; but that doesn't seem like
a very clean solution. Thanks in advance.

Nov 19 '05 #5
Thanks! This is exactly the type of info I was looking for. I will try
and implment a solution using the factory pattern.
Hi Sam:

See my notes inline.

On Thu, 10 Feb 2005 14:14:30 -0800, Sam Kuehn <sa******@hotmail.com>
wrote:
Hello Scott,
That would work great if I didn't have to load the control at
runtime. See
I don't know what UserContol I am going to add at design time. It is
dependant
on user input at runtime. Therefore, I cannot call a method (or
throw parameters
at the constructor for that matter).

That's perfect for the factory pattern - it encapsulates all of the
logic needed to create and initialize an object, it also hides the
Type of the object being created. Some more details here:
http://msdn.microsoft.com/library/de...ry/en-us/dnbda
/html/factopattern.asp
Also, are you saying that I couldn't do something like:

public class MyControl: System.Web.UI.UserControl
{
//Constructor
MyControll(int employeeid){.....}
}
Casue it seem that would work just fine.

Unfortunately not. When the runtime creates an instance of the control
it does so with the paramerter-less ctor.

--
Scott
http://www.OdeToCode.com/blogs/scott/
Controls have to have a paramerter-less constructor. You could use a
factory type pattern to keep a clean design. Perhaps even a static
method on the class like so:

MyUserControl uc = MyUserControl.Create(param1, param2) { ... }

What do you think?

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Thu, 10 Feb 2005 13:25:41 -0800, Sam Kuehn <sa******@hotmail.com>
wrote:
How do I accomplish the fallowing (is it even possible). Say I
write a UserControl "MyControl.ascx". Now I use
LoadControl("MyControl.ascx"). But I really want MyControl to
require parameters in the constructor for example MyContorl
oMyControl = new MyContorl(employeeid). However I need to load the
control at runtime so the have to call it this way
LoadControl("MyControl.ascx") and I get an error that I have not
supplied any parameter to the constructor. Is there anyway around
this? I guess I could change the control so that I can insatiate
it without supplying parameters and assigning the properties later;
but that doesn't seem like a very clean solution. Thanks in
advance.


Nov 19 '05 #6
I didn't want to call any Session stuff in my control. I was hoping not
to have to couple the control to this specific app that much. I would rather
pass the value in. Although the value I pass in will probably come form
the session object. Also all of the control in question do inherit from
a base control. Just for further claification here is the full picure of
what I am trying to do.

//The Base Control
namespace ExpenseReimbursment.GUI.Controls.Add
{
public delegate void ItemAddedEventHandler(object sender, EventArgs ea);
public class BaseControl : System.Web.UI.UserControl
{
// ToDo: Create constructor with params
// public BaseControl(SubCategoryEntity Subcategory)
// {
// _Subcategory = Subcategory;
// }
// private SubCategoryEntity _Subcategory;
// public SubCategoryEntity Subcategory
// {
// get
// {
// return _Subcategory;
// }
// set
// {
// _Subcategory = value;
// }
// }
#region Public Events
public event ItemAddedEventHandler ItemAdded;
protected virtual void OnItemAdded(EventArgs ea)
{
if (ItemAdded != null)
ItemAdded(this, ea);
}
#endregion

#region Public Methods
public void AddItem(ExpenseReportDetailEntity lineItem)
{
lineItem.Save();
OnItemAdded(new EventArgs());
}
public void AddItem(ExpenseReportDetailCollection lineItems)
{
lineItems.SaveMulti();
OnItemAdded(new EventArgs());
}
#endregion

}

}

The actual control will depend on the type of expense they are adding for
example:

public class DefaultControl : BaseControl {} //the default control.

And is called form the "Master Page" like this:
private void LoadAddItemsControl(int Subcategoryid)
{
phAdd.Controls.Clear();
SubCategoryEntity ojbSubCategoryEntity = new SubCategoryEntity(Subcategoryid);
string control = "~/Controls/Add/Default.ascx";
if (ojbSubCategoryEntity.Inputcontrol.ToString() != "")
control = "~/Controls/Add/" + ojbSubCategoryEntity.Inputcontrol;
GUI.Controls.Add.BaseControl ctlAddDetail = (GUI.Controls.Add.BaseControl)LoadControl(control) ;
ctlAddDetail.ID = "AddItem";
//Add Event Handler
ctlAddDetail.ItemAdded += new GUI.Controls.Add.ItemAddedEventHandler(this.ItemAd ded);
//Add control
phAdd.Controls.Add(ctlAddDetail);
}
All ascxs have only 1 constructor. Maybe the class MyControl.ascx
inherits from has overloaded constructors, but the asp.net runtime
will call the default constructor. You're going to need to take a
different approach. If you want the control to know the employeeid,
use the session or something.

"Sam Kuehn" <sa******@hotmail.com> wrote in message
news:12**********************@msnews.microsoft.com ...
How do I accomplish the fallowing (is it even possible). Say I write
a UserControl "MyControl.ascx". Now I use
LoadControl("MyControl.ascx"). But I really want MyControl to require
parameters in the constructor for example MyContorl oMyControl = new
MyContorl(employeeid). However I need to load the control at runtime
so the have to call it this way LoadControl("MyControl.ascx") and I
get an error that I have not supplied any parameter to the
constructor. Is there anyway around this? I guess I could change the
control so that I can insatiate it without supplying parameters and
assigning the properties later; but that doesn't seem like a very
clean solution. Thanks in advance.


Nov 19 '05 #7
I think you're going to need a virtual Init[ializer] method and use that as
your 'constructor'. Though, to keep it flexible. I would make the method
signature
void Init[ializer](params object[] parameters). Just note that interfaces
are a collection virtual methods so you can do something like

puvlic Interface IBaseControl
{
void Initialize(params object[] parameters);
}

//then somehere in ur aspx code. but make sure this is done during the
Page_Init phase as because if you do this on say, Page_Load, the control
will execute all sequences to reach the same state as the caller (in this
case, Page_Load). It depends on what your intentions are and how the code
was written for the control though.

IBaseControl control = (IBaseControl) LoadControl("MyControl.ascx").
control.Initialize(employeeid);

or

public BaseControl
{
public virtual void Initialize(params object[] parameters);
}

//somewhere in aspx code.
BaseControl control = (BaseControl) LoadControl("MyControl.ascx").
control.Initialize(employeeid);
In the past, I never had a situation where a control or a page depended on a
non-default constructor to work. I've always used a system of, a well known
interface, or a class with virtual methods to expose methods (properties are
also methods) I needed to get the job done. And I disable session state and
other modules whenever I start a web project, I enable it as\when I need it
=]

And also, looking at your sample? code, you have the subcategory set in the
constructor, yet it does nothing, and you expose a get/set property that can
change the same field Why even have it in the constructor?!?!?. You should
also make the _Subcategory a public field and rename it to Subcategory,
because it would be no different (other than the lines of code saved) than
adding the get/set property that modify _Subcategory.

"Sam Kuehn" <sa******@hotmail.com> wrote in message
news:12**********************@msnews.microsoft.com ...
I didn't want to call any Session stuff in my control. I was hoping not to
have to couple the control to this specific app that much. I would rather
pass the value in. Although the value I pass in will probably come form
the session object. Also all of the control in question do inherit from a
base control. Just for further claification here is the full picure of
what I am trying to do.

//The Base Control
namespace ExpenseReimbursment.GUI.Controls.Add
{
public delegate void ItemAddedEventHandler(object sender, EventArgs ea);
public class BaseControl : System.Web.UI.UserControl
{
// ToDo: Create constructor with params
// public BaseControl(SubCategoryEntity Subcategory)
// {
// _Subcategory = Subcategory;
// }
// private SubCategoryEntity _Subcategory;
// public SubCategoryEntity Subcategory
// {
// get
// {
// return _Subcategory;
// }
// set
// {
// _Subcategory = value;
// }
// }
#region Public Events
public event ItemAddedEventHandler ItemAdded;
protected virtual void OnItemAdded(EventArgs ea)
{
if (ItemAdded != null)
ItemAdded(this, ea);
}
#endregion

#region Public Methods
public void AddItem(ExpenseReportDetailEntity lineItem)
{
lineItem.Save();
OnItemAdded(new EventArgs());
}
public void AddItem(ExpenseReportDetailCollection lineItems)
{
lineItems.SaveMulti();
OnItemAdded(new EventArgs());
}
#endregion

}

}

The actual control will depend on the type of expense they are adding for
example:

public class DefaultControl : BaseControl {} //the default control.

And is called form the "Master Page" like this:
private void LoadAddItemsControl(int Subcategoryid)
{
phAdd.Controls.Clear();
SubCategoryEntity ojbSubCategoryEntity = new
SubCategoryEntity(Subcategoryid);
string control = "~/Controls/Add/Default.ascx";
if (ojbSubCategoryEntity.Inputcontrol.ToString() != "")
control = "~/Controls/Add/" + ojbSubCategoryEntity.Inputcontrol;
GUI.Controls.Add.BaseControl ctlAddDetail =
(GUI.Controls.Add.BaseControl)LoadControl(control) ;
ctlAddDetail.ID = "AddItem";
//Add Event Handler
ctlAddDetail.ItemAdded += new
GUI.Controls.Add.ItemAddedEventHandler(this.ItemAd ded);
//Add control
phAdd.Controls.Add(ctlAddDetail);
}
All ascxs have only 1 constructor. Maybe the class MyControl.ascx
inherits from has overloaded constructors, but the asp.net runtime
will call the default constructor. You're going to need to take a
different approach. If you want the control to know the employeeid,
use the session or something.

"Sam Kuehn" <sa******@hotmail.com> wrote in message
news:12**********************@msnews.microsoft.com ...
How do I accomplish the fallowing (is it even possible). Say I write
a UserControl "MyControl.ascx". Now I use
LoadControl("MyControl.ascx"). But I really want MyControl to require
parameters in the constructor for example MyContorl oMyControl = new
MyContorl(employeeid). However I need to load the control at runtime
so the have to call it this way LoadControl("MyControl.ascx") and I
get an error that I have not supplied any parameter to the
constructor. Is there anyway around this? I guess I could change the
control so that I can insatiate it without supplying parameters and
assigning the properties later; but that doesn't seem like a very
clean solution. Thanks in advance.


Nov 19 '05 #8
I was hoping that I could require that a subcategory be set when the BaseControl
was instantiated (to help prevent errors and keep code clear). Right now
it is commented out for the reasons that I listed below (I get an error when
trying to instantiate a control based on this base control cause LoadControl()
was not passing parameters, subcategoryid, to the constructor). As far as
the getters and setters go: CodeRush creates them automatically and I am
just used to seeing things that way so I don't worry about changing it.
I guess if later on (will never happen) I could modify the private members
from within the class (again, I know in this situation it will never happen
but the code is already there so what the heck). Also, at some point, I
heard you should never have public variables, although the reason was never
really clear.
I think you're going to need a virtual Init[ializer] method and use
that as
your 'constructor'. Though, to keep it flexible. I would make the
method
signature
void Init[ializer](params object[] parameters). Just note that
interfaces
are a collection virtual methods so you can do something like
puvlic Interface IBaseControl
{
void Initialize(params object[] parameters);
}
//then somehere in ur aspx code. but make sure this is done during the
Page_Init phase as because if you do this on say, Page_Load, the
control will execute all sequences to reach the same state as the
caller (in this case, Page_Load). It depends on what your intentions
are and how the code was written for the control though.

IBaseControl control = (IBaseControl) LoadControl("MyControl.ascx").
control.Initialize(employeeid);

or

public BaseControl
{
public virtual void Initialize(params object[] parameters);
}
//somewhere in aspx code.
BaseControl control = (BaseControl) LoadControl("MyControl.ascx").
control.Initialize(employeeid);
In the past, I never had a situation where a control or a page
depended on a non-default constructor to work. I've always used a
system of, a well known interface, or a class with virtual methods to
expose methods (properties are also methods) I needed to get the job
done. And I disable session state and other modules whenever I start a
web project, I enable it as\when I need it =]

And also, looking at your sample? code, you have the subcategory set
in the constructor, yet it does nothing, and you expose a get/set
property that can change the same field Why even have it in the
constructor?!?!?. You should also make the _Subcategory a public field
and rename it to Subcategory, because it would be no different (other
than the lines of code saved) than adding the get/set property that
modify _Subcategory.

"Sam Kuehn" <sa******@hotmail.com> wrote in message
news:12**********************@msnews.microsoft.com ...
I didn't want to call any Session stuff in my control. I was hoping
not to have to couple the control to this specific app that much. I
would rather pass the value in. Although the value I pass in will
probably come form the session object. Also all of the control in
question do inherit from a base control. Just for further
claification here is the full picure of what I am trying to do.

//The Base Control
namespace ExpenseReimbursment.GUI.Controls.Add
{
public delegate void ItemAddedEventHandler(object sender, EventArgs
ea);
public class BaseControl : System.Web.UI.UserControl
{
// ToDo: Create constructor with params
// public BaseControl(SubCategoryEntity Subcategory)
// {
// _Subcategory = Subcategory;
// }
// private SubCategoryEntity _Subcategory;
// public SubCategoryEntity Subcategory
// {
// get
// {
// return _Subcategory;
// }
// set
// {
// _Subcategory = value;
// }
// }
#region Public Events
public event ItemAddedEventHandler ItemAdded;
protected virtual void OnItemAdded(EventArgs ea)
{
if (ItemAdded != null)
ItemAdded(this, ea);
}
#endregion
#region Public Methods
public void AddItem(ExpenseReportDetailEntity lineItem)
{
lineItem.Save();
OnItemAdded(new EventArgs());
}
public void AddItem(ExpenseReportDetailCollection lineItems)
{
lineItems.SaveMulti();
OnItemAdded(new EventArgs());
}
#endregion
}

}

The actual control will depend on the type of expense they are adding
for example:

public class DefaultControl : BaseControl {} //the default control.

And is called form the "Master Page" like this:
private void LoadAddItemsControl(int Subcategoryid)
{
phAdd.Controls.Clear();
SubCategoryEntity ojbSubCategoryEntity = new
SubCategoryEntity(Subcategoryid);
string control = "~/Controls/Add/Default.ascx";
if (ojbSubCategoryEntity.Inputcontrol.ToString() != "")
control = "~/Controls/Add/" + ojbSubCategoryEntity.Inputcontrol;
GUI.Controls.Add.BaseControl ctlAddDetail =
(GUI.Controls.Add.BaseControl)LoadControl(control) ;
ctlAddDetail.ID = "AddItem";
//Add Event Handler
ctlAddDetail.ItemAdded += new
GUI.Controls.Add.ItemAddedEventHandler(this.ItemAd ded);
//Add control
phAdd.Controls.Add(ctlAddDetail);
}
All ascxs have only 1 constructor. Maybe the class MyControl.ascx
inherits from has overloaded constructors, but the asp.net runtime
will call the default constructor. You're going to need to take a
different approach. If you want the control to know the employeeid,
use the session or something.

"Sam Kuehn" <sa******@hotmail.com> wrote in message
news:12**********************@msnews.microsoft.com ...

How do I accomplish the fallowing (is it even possible). Say I
write a UserControl "MyControl.ascx". Now I use
LoadControl("MyControl.ascx"). But I really want MyControl to
require parameters in the constructor for example MyContorl
oMyControl = new MyContorl(employeeid). However I need to load the
control at runtime so the have to call it this way
LoadControl("MyControl.ascx") and I get an error that I have not
supplied any parameter to the constructor. Is there anyway around
this? I guess I could change the control so that I can insatiate
it without supplying parameters and assigning the properties later;
but that doesn't seem like a very clean solution. Thanks in
advance.


Nov 19 '05 #9

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

Similar topics

18
by: Matt | last post by:
I try to compare the default constructor in Java and C++. In C++, a default constructor has one of the two meansings 1) a constructor has ZERO parameter Student() { //etc... } 2) a...
26
by: Paul | last post by:
public class A { public A () { // here I would like to call the second version of _ctor, how to accomplish this ? } public A (int a, int b, int c) {
45
by: Ben Blank | last post by:
I'm writing a family of classes which all inherit most of their methods and code (including constructors) from a single base class. When attempting to instance one of the derived classes using...
2
by: a | last post by:
Hi Extremely easy question for someone who knows the answer I'm sure :-) (aren't they all) What exactly does LoadControl do? Whats the difference between calling this and just constructing a...
5
by: alecyy | last post by:
hi, I create a UserControl called "RegInfo.ascx", then i add a PlaceHolder to WebForm1, and in WebForm1.Page_Load() i wrote the follow statement: placeHolder.Controls.Add(new RegInfo()); but...
7
by: Geoffrey | last post by:
Hello, I wan't to have optionnal parameter in my cronstructor, so, I define 2 constructors. when I call the constructor without the "optional" parameter, I want to call the constructor...
0
by: Carl Wright | last post by:
Hi I'm having this major issue loading a usercontrol at runtime using the overload on Loadcontrol(type,object). Here's the code in the aspx code-behind file Dim myControl As New Control Dim...
13
by: sam_cit | last post by:
Hi Everyone, I have the following unit to explain the problem that i have, class sample { public : sample() { printf("in sample...\n"); }
0
by: =?Utf-8?B?U0VHQUNP?= | last post by:
Hi, someone knows about an example of the method LoadControl(Type, Object), I search everything in the web but I don't find it and if someone can tell me about the implementation of the constructor...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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.