473,320 Members | 1,884 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,320 software developers and data experts.

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 1557
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|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...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**********************@hotmail.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**********************@hotmail.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**********************@hotmail.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**********************@hotmail.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
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...
11
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...
20
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....
7
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...
16
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...
3
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...
11
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)...
36
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...
2
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_...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.