In class Matrix, I rather have just
virtual T& operator () (int i, int j)
{
}
since
virtual T& operator () (int i, int j)
{
}
and
virtual T& _ij_val(int i, int j)
{
}
do the same thing (accessing an element in my matrix) but I need both
since
init(int i, int j, int value)
{
this->(i,j)=value //compile error
this->_ij_value(i,j) =value //ok
}
Why doesnt it work??? Any solution??? 1 1227
<bl**********@g mail.com> wrote in message
news:11******** *************@z 14g2000cwz.goog legroups.com... In class Matrix, I rather have just virtual T& operator () (int i, int j) { }
since virtual T& operator () (int i, int j) { } and virtual T& _ij_val(int i, int j) { }
do the same thing (accessing an element in my matrix) but I need both since init(int i, int j, int value) { this->(i,j)=value //compile error this->_ij_value(i,j) =value //ok }
Why doesnt it work??? Any solution???
The synatx you are using is not supported. (look a few posts down) Ie.
this->(i,j) is not the syntax to call the member operator(). You can fix it
by either typing (*this)(i,j), or this->operator()(i,j ).
--
Regards,
Ferdi Smit
smit xs4all nl This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Savas Ates |
last post by:
CREATE PROCEDURE st_deneme @userid numeric (18) ,@result numeric (18) output
AS
select * from users
return "10"
GO
****************************
<!--METADATA TYPE="typelib"
NAME="Microsoft ActiveX Data Objects 2.8 Library"
|
by: x muzuo |
last post by:
Hi guys,
I have got a prob of javascript form validation which just doesnt work
with my ASP code. Can any one help me out please.
Here is the code:
///////////////////////////////////////////////
<%
ntlogon = (Request.ServerVariables("LOGON_USER"))
|
by: Station Media |
last post by:
Hi,
here my problem, i use stored procedure in ACCESS database(latest
version), and i would like to use this procedure but it doesnt work,
do you know why ?
Procedure:
PARAMETERS MyField Text ( 255 );
SELECT DISTINCT MyField AS Result
FROM tb_Client;
|
by: Clouds |
last post by:
Hi !
How do I add the dynamic event handler for a dropdownlist present in the
itemtemplate of a datalist !!
I am doing it in the itemdatabound event of the datalist but it doesnt
work... I am also setting the autopostback property to true for the dropdown
list and it works but the handler doesnt get invoked at runtime...
I have to do it in itemdatabound becaz whether to add the handler or not is
driven based on the information which i...
|
by: Juna |
last post by:
I have been working in vs2003, but now started to work in
vs2005 but the problem,
I have simple web application not website, which work i mean open in
browser when we press F5 or run the application by pressing run button.
but it doesnt work when we type the path directly in the browser's
address bar eg. http://localhost/testapplicationdefault.aspx
error it gives is "COULD NOT LOAD testapplication._default". IN
default.aspx.
While in...
| |
by: jx2 |
last post by:
hi guys
i would appriciate your coments on this code - when i ran it for the very first time it doesnt see @last = LAST_INSERT_ID() but when i ran it next time it read it properly i need to know it imiedietely after i insert value into session1...
is there any other way to do it? insert into 2 tables at the same time ...?
if(!($sessid)){
session_register('sessid');
mysql_query("insert into session1 set
sessid=null,
|
by: thread |
last post by:
hi all,
i'm trying to hide by database with this code:
Application.CurrentDb.TableDefs(CurrentDb.TableDefs(i).Name).Properties("Attributes").Value
= dbhiddenobject
from some reason it doesnt work
the table are not hidden,does anyone have an idea what can cause this
problem?
|
by: Dany13 |
last post by:
hi all.
i using some text box for input value and some localvarible for passing this data to dataset . give instance for correct row of dataset and data in data table . use one gird view for showing curent data in dataset . in end i am calling update metod to insert data in sql database but this metod doesnt work correctly.
at all doesnt work. but givenot any error .
fill data from my database (work propebly)
...
|
by: Hush |
last post by:
Hi,
The following code works fine in IE7 but FF returns with an error:
Access denied to achieve the property Element.firstChild. In this
line:
nodes = xmlDoc.documentElement.childNodes;
My code:
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |