No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
6 Posted Topics
Hi *, I have some doubts about passing parameters to a method of a class. I am not sure if it is a problem of my design of the app or a problem of the implementation, I mean C++ knowledge. I have a class called MatrixHandler : The idea is …
Hi, Can you put an example of your .txt file?, in order to know the format. :D
Hi *, I have a file like this : [CODE]Example : 10 2 0 1 234.5677 0 2 345.6786 0 3 678.6764 .... [/CODE] From the first line the first number is number of lines and the second one is the number of nodes, so the thing is I need …
Dear all, is there is a way to go trough a matrix using just one "for" loop?, I mean I have this snippet: [CODE] #define WIDTH 5 #define HEIGHT 3 int mat [HEIGHT * WIDTH]; int n,m; int main () { for (n=0;n<HEIGHT;n++) for (m=0;m<WIDTH;m++) { mat[n*WIDTH+m]=(n+1)*(m+1); } return 0; …
Hi *, I have been trying to convert a string to a double but I can not get all the digits, for example : [CODE] string g = "345.3456788"; [/CODE] I tried this : [CODE] string g = "345.3456788"; double e; e = atof(g); [/CODE] and [CODE] stringstream aux; string …
Hi I am fjrivash. I have been using DaniWeb for a couple of months and finally I decided to be a member of this friendly and smart community. So I jus want to thanks you to all of you for post solutions and comments; I am glad to see people …
The End.
fjrivash