![]() |
|
#1
|
|||
|
|||
Stuck on CodesHi
I have been pulling my hair out trying to figure this out. Please help!!! Here is my project description: By using a pointer to pointers **A and **B and the function calloc() allocate the memory for the 4x4 matrices A[][] and B[][]. By using the pointers *a and *b and the function malloc() allocate the memory for the 4-dimensional vectors a[] and b[]. Read the components of a and A from the given input file matrix.dat (which is in the public/final directory; you need to copy it into your directory). The first line of the input file contains the components of a. The rows of matrix A are the last four lines of the input file. Print the components of a[] and A[][]. By calling the function pmatrix(A,B,a,b,n), n=4, which you will construct, determine the components of the matrix B=1.5*A*A, and the vector b=(A*a)+0.5*a. Print the components of the matrix B and the vector b in the main. Free dinamically allocated memory. .................................................. .............................. Output should look like: Vector a is: a[] = -1.200 1.200 -2.000 -0.500 Matrix A is: 2.700 1.500 3.200 2.400 -3.200 0.700 -2.600 4.300 1.400 0.600 2.100 -1.800 1.500 1.700 -2.600 -0.700 Matrix B is: ..... ...... ...... ...... ..... ...... ...... ...... ..... ...... ...... ...... ..... ...... ...... ...... Vector b is: b[] = ..... ..... ..... ..... My codes and I am stuck. CPP / C++ / C Code:
Last edited by LuciWiz : 08-Jun-2007 at 06:03.
Reason: Please insert your C/C++ code between [cpp] & [/cpp] tags
|
|||
|
#2
|
|||
|
|||
Re: Stuck on CodesSomething like the following:
CPP / C++ / C Code:
Regards, Dave |
|
#3
|
|||
|
|||
Re: Stuck on Codesthank you very much!
|
Recent GIDBlog
Problems with the Navy (Enlisted) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Checking source codes of image, audio and video files | onauc | C Programming Language | 5 | 26-Feb-2005 21:47 |
| Browser's Language Interpreters | onauc | Open Discussion Forum | 0 | 18-Nov-2004 18:53 |
| embedded C++ codes | mak90thug | C++ Forum | 0 | 25-Jan-2004 21:50 |
| New bbcode - [PHP]codes[/PHP] | admin | GIDForums™ | 0 | 25-Aug-2002 09:27 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The