473,756 Members | 5,660 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

finding the header include file for matrix class

MVM
I am new to VS 2003. I did programming in vb6 and vc6, but not through
studio. I am having lot of confusion on how to start, where to start?

I like to write a program in vc++ under vs 2003. i just need exe file that
can be used in command prompt. where do i start?

the program should read a file with unkown size matrix. get inverse, do some
manipulations and muliplications.

I see there is a class Matrix. which include file i should use?

Pl give me suggetions, code examples ect. to get me on track.
how do i start and become master in using vs 2003
thanks
MVM
Aug 26 '06 #1
8 1595
MVM wrote:
I am new to VS 2003. I did programming in vb6 and vc6, but not
through studio. I am having lot of confusion on how to start, where
to start?

I like to write a program in vc++ under vs 2003. i just need exe
file that can be used in command prompt. where do i start?

the program should read a file with unkown size matrix. get inverse,
do some manipulations and muliplications.

I see there is a class Matrix. which include file i should use?

Pl give me suggetions, code examples ect. to get me on track.
how do i start and become master in using vs 2003
New|Project, Visual C++ Projects|Win32 Projects|Consol e Program

You might want to look at std::valarray as your matrix. It's a C++ standard
library class, so you can find lots of documentation on it on the web, in
good C++ textbooks and the VC++ documentation.

for example:

http://msdn.microsoft.com/library/en...asp?frame=true

-cd
Aug 26 '06 #2
>I am new to VS 2003. I did programming in vb6 and vc6, but not through
studio. I am having lot of confusion on how to start, where to start?
www.codeproject.com is always a good place to start looking for tutorials.
I like to write a program in vc++ under vs 2003. i just need exe file
that
can be used in command prompt. where do i start?
a win32 console application is what you want.
You invoke it from the command line with appropriate parameters.
the program should read a file with unkown size matrix. get inverse, do
some
manipulations and muliplications.

I see there is a class Matrix. which include file i should use?
Always read the MSDN documentation.
But in your case, I think you'd better search for an open source math
library.
Pl give me suggetions, code examples ect. to get me on track.
As I said: codeproject.
how do i start and become master in using vs 2003
Practise and patience, grasshopper.

--

Kind regards,
Bruno van Dooren
br************* *********@hotma il.com
Remove only "_nos_pam"
Aug 26 '06 #3
MVM
I spend one full day of reading various things in MSDN, but could not figure
out the library needed to be included in the code for Matrix. Is there any
standard way to identify this.
Thanks
MVM

"Bruno van Dooren [MVP VC++]" wrote:
I am new to VS 2003. I did programming in vb6 and vc6, but not through
studio. I am having lot of confusion on how to start, where to start?

www.codeproject.com is always a good place to start looking for tutorials.
I like to write a program in vc++ under vs 2003. i just need exe file
that
can be used in command prompt. where do i start?

a win32 console application is what you want.
You invoke it from the command line with appropriate parameters.
the program should read a file with unkown size matrix. get inverse, do
some
manipulations and muliplications.

I see there is a class Matrix. which include file i should use?

Always read the MSDN documentation.
But in your case, I think you'd better search for an open source math
library.
Pl give me suggetions, code examples ect. to get me on track.

As I said: codeproject.
how do i start and become master in using vs 2003

Practise and patience, grasshopper.

--

Kind regards,
Bruno van Dooren
br************* *********@hotma il.com
Remove only "_nos_pam"
Aug 27 '06 #4
MVM wrote:
I spend one full day of reading various things in MSDN, but could not
figure out the library needed to be included in the code for Matrix.
Is there any standard way to identify this.
See my other reply.

The closest thing to a standard matrix in C++ is std::valarray, or in some
circumstances, std::vector.

#include <vector>
#include <valarray>

to get access to them.

-cd

Aug 27 '06 #5
The closest thing to a standard matrix in C++ is std::valarray, or in some
circumstances, std::vector.

#include <vector>
#include <valarray>

to get access to them.
But that would still mean that you have to program any algorithms yourself.
In that case you are better off searching for an open source math library.

--

Kind regards,
Bruno van Dooren
br************* *********@hotma il.com
Remove only "_nos_pam"
Aug 27 '06 #6
MVM
I found a Matrix class. How do I link it to my project?

Can you guide me how to learn .net C++ in a systematic way. I am having
hard time breaking into it.

Your suggestions are appreciated.

Thanks you
MVM

"MVM" wrote:
I am new to VS 2003. I did programming in vb6 and vc6, but not through
studio. I am having lot of confusion on how to start, where to start?

I like to write a program in vc++ under vs 2003. i just need exe file that
can be used in command prompt. where do i start?

the program should read a file with unkown size matrix. get inverse, do some
manipulations and muliplications.

I see there is a class Matrix. which include file i should use?

Pl give me suggetions, code examples ect. to get me on track.
how do i start and become master in using vs 2003
thanks
MVM
Sep 2 '06 #7
Can you guide me how to learn .net C++ in a systematic way. I am having
hard time breaking into it.
'The C++ programming language, 3d edition' by Bjarne Stroustrub is an
excellent book for learning C++.
For tutorials, www.codeproject.com is always a good place to look.

--

Kind regards,
Bruno van Dooren
br************* *********@hotma il.com
Remove only "_nos_pam"
Sep 3 '06 #8
MVM wrote:
I found a Matrix class. How do I link it to my project?

Can you guide me how to learn .net C++ in a systematic way. I am having
hard time breaking into it.

Your suggestions are appreciated.

Thanks you
MVM
MVM:

When you write .net C++ I hope you just mean you are using the Visual
Studio 2003.NET compiler. To write an application targeting the .NET
language in C++ is way too complicated for a beginner, especially using
VS2003 whose Managed C++ syntax is very messy. The C++/CLI syntax in
VS2005 is much better, but I would still not advise it for a beginner.
Stick to standard C++ for now.

If you have a matrix class, it probably has a header file (e.g.
Matrix.h) and an implementation file (e.g. Matrix.cpp). If it is a
template class it may only have a header file.

Copy the files to your project directory, and then add them to your
project. Include the header file in any of your implementation files
that use the class.

David Wilkinson
Sep 3 '06 #9

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

Similar topics

31
2801
by: Steven T. Hatton | last post by:
If a header is not necessarily a source file, and the sequences delimited by < and > in header names aren't necessarily valid source file names, what exactly is a header? -- p->m == (*p).m == p.m http://www.kdevelop.org http://www.suse.com http://www.mozilla.org
11
2762
by: Steven T. Hatton | last post by:
In the past there have been lengthy discussiions regarding the role of header files in C++. People have been very adamat about header files serving as in interface to the implementation. I do understand the objective. This example may represent an interface in need of a bit of refactoring, but it goes to demonstrate the basic idea as I understand it. http://developer.kde.org/documentation/library/cvs-api/kdevelop/html/ast_8h-source.html...
20
17048
by: Webdad | last post by:
Hi! I running my first year as industrial engineer (informatics) We have an assignment to do : .... create a playfield (matrix). Some places in that field are blocked, so you can't pass them. The others are free to go over ... (I already found that part) -> http://users.pandora.be/hebbrecht/jochen/c++/test.cpp
7
559
by: Roman Töngi | last post by:
When I declare a function prototype in a header-file, have I to include this header-file in the implemenation file? Example: //main #include "myfunction.h" int main() { myFunction(); return 0; }
16
2136
by: laclac01 | last post by:
I have developed my own copy function for coping my own dynamic memory structure. It works, but I feel its not too efficient. There must be a quicker way to copy the data. In some of the routines I have developed the copy function gets called several hundreds of times, with very large data structures. This can take some time.... If you can't tell by the code the data structure is a matrix for storing complex numbers. Attached is...
3
5741
by: Raider | last post by:
I need to have one object for each template argument(s) used. For example, I need to have one object of int. I tried the following code and it gives me all I want with Visual C++ 7.1. But is it portable??? Will all compilers produce code that prints "single"? Instancing of object right in header file (that can be include multiple times - i.e. in multiple cpp files) give rise to my doubts... Singleton.cpp
11
2806
by: Gary Wessle | last post by:
Hi is it right to have a line like #include <path/to/header.hfor a library on my system, in my header file and use some functions provided by this library in the implementation file (file.cpp) inside a class with out declaring those functions in the class declaration in the header file? thanks
36
3853
by: zouyongbin | last post by:
Stanley B Lippman in his "C++ Primer" that a definition like this should not appear in a header file: int ix; The inclusion of any of these definitions in two or more files of the same program will result in a linker error complaining about multiple definitions. So this kind of definition should be avoided as much as possible. But as we know, the definition of a class is always in a header file. And we can use "#ifndef" to eliminate...
2
281
by: beet | last post by:
Hi all, I tried to declare a c++ struct like following in a header file; I want to include this header file in other files to create and access this struct. ------ 1 #ifndef _SEARCHDATA_H_ 2 #define _SEARCHDATA_H_ 3
0
9487
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, 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...
0
9297
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10069
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, 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...
1
9884
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,...
0
9735
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 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...
0
8736
agi2029
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...
0
6556
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2697
bsmnconsultancy
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...

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.