Click here to Skip to main content
15,908,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Create Trial Version of an appliation Pin
Blake Miller16-Jun-05 5:15
Blake Miller16-Jun-05 5:15 
GeneralRe: Create Trial Version of an appliation Pin
Bob Stanneveld16-Jun-05 22:00
Bob Stanneveld16-Jun-05 22:00 
Generalhelp in c++ program Pin
kosamoza15-Jun-05 21:11
kosamoza15-Jun-05 21:11 
GeneralRe: help in c++ program Pin
David Crow16-Jun-05 3:47
David Crow16-Jun-05 3:47 
GeneralRe: help in c++ program Pin
kosamoza16-Jun-05 9:58
kosamoza16-Jun-05 9:58 
GeneralRe: help in c++ program Pin
David Crow16-Jun-05 10:10
David Crow16-Jun-05 10:10 
GeneralRe: help in c++ program Pin
kosamoza16-Jun-05 13:09
kosamoza16-Jun-05 13:09 
GeneralRe: help in c++ program Pin
David Crow16-Jun-05 17:04
David Crow16-Jun-05 17:04 
Try:

double  *vector;
double  **matrix;
int     num,
        row,
        col;
 
cout << "Enter the size of the vector: ";
cin >> num;
cout << endl;
 
vector = new double[num];
 
for (int i = 0; i < num; i++)
{
    cout << "Enter the element " << i + 1 << " in the vector: ";
    cin >> vector[i];
}
 
cout << endl << "Enter the number of rows then columns in the matrix: ";
cin >> row >> col;
cout << endl;
 
matrix = new double*[row];
 
for (int j = 0; j < row; j++)
{
    matrix[j] = new double[col];
     
    for (int k = 0; k < col; k++)
    {
        cout << "Enter the element " << k + 1 <<" in the row " << j + 1 << ": ";
        cin >> matrix[j][k];
    }
}




"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown


GeneralRe: help in c++ program Pin
kosamoza16-Jun-05 20:59
kosamoza16-Jun-05 20:59 
GeneralShutdown permittion Pin
Duong Tien Nam15-Jun-05 21:11
Duong Tien Nam15-Jun-05 21:11 
GeneralRe: Shutdown permittion Pin
NormDroid15-Jun-05 21:45
professionalNormDroid15-Jun-05 21:45 
GeneralRe: Shutdown permittion Pin
P-Rex15-Jun-05 21:50
P-Rex15-Jun-05 21:50 
GeneralRe: Shutdown permittion Pin
Duong Tien Nam15-Jun-05 21:51
Duong Tien Nam15-Jun-05 21:51 
GeneralRe: Shutdown permittion Pin
P-Rex15-Jun-05 22:24
P-Rex15-Jun-05 22:24 
GeneralRe: Shutdown permittion Pin
Duong Tien Nam16-Jun-05 23:27
Duong Tien Nam16-Jun-05 23:27 
GeneralRe: Shutdown permittion Pin
NormDroid15-Jun-05 22:34
professionalNormDroid15-Jun-05 22:34 
GeneralRe: Shutdown permittion Pin
Anonymous16-Jun-05 23:21
Anonymous16-Jun-05 23:21 
GeneralRe: Shutdown permittion Pin
Duong Tien Nam16-Jun-05 23:25
Duong Tien Nam16-Jun-05 23:25 
GeneralRe: Shutdown permittion Pin
NormDroid17-Jun-05 0:07
professionalNormDroid17-Jun-05 0:07 
GeneralRe: Shutdown permittion Pin
toxcct16-Jun-05 0:11
toxcct16-Jun-05 0:11 
GeneralRe: Shutdown permittion Pin
Bob Stanneveld16-Jun-05 0:14
Bob Stanneveld16-Jun-05 0:14 
GeneralRe: Shutdown permittion Pin
toxcct16-Jun-05 0:15
toxcct16-Jun-05 0:15 
Generalneed help again! :( Pin
c_ngo15-Jun-05 21:03
c_ngo15-Jun-05 21:03 
GeneralRe: need help again! :( Pin
NormDroid15-Jun-05 21:40
professionalNormDroid15-Jun-05 21:40 
GeneralRe: need help again! :( Pin
Nilesh K.15-Jun-05 22:04
Nilesh K.15-Jun-05 22:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.