No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I am coding a program that requires a dynamic 2-d matrix. it is a finite element analysis program using stiffness method to give you some context. Can someone suggest a good free library for matrix operations? Thanks! |
|
[CODE]int main(){ string array[][]=get_element(2,3); return 0; } string get_element(int numrow,int numcol){ string result_array[numrow][numcol]; for (int i=0;i<numrow;i++) { for (int j=0;j<numcol;j++) { result_array[i][j]=" "; } } return result_array; //ERROR is on this line } [/CODE] I get error: conversion from ‘std::string (*)[(((long unsigned int)(((long int)numcol) + -0x00000000000000001)) + 1)]’ to non-scalar … |
|