finding the header include file for matrix class

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
MVM said:
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|Console 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-us/vclang98/HTML/VALARRAY_valarray.asp?frame=true

-cd
 
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
(e-mail address removed)
Remove only "_nos_pam"
 
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
 
MVM said:
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
 
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
(e-mail address removed)
Remove only "_nos_pam"
 
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
 
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
(e-mail address removed)
Remove only "_nos_pam"
 
MVM said:
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
 
Back
Top