Forum: C++ May 5th, 2008 |
| Replies: 15 Views: 947 Re: 2D array memory allocation error That's exactly the part that I missed out, I got the program working now. Thank you so much for your helpful comments, mitrmkar and salem, I am very appreciated for your time and comments.
Best... |
Forum: C++ May 4th, 2008 |
| Replies: 15 Views: 947 Re: 2D array memory allocation error Thanks for the replies.
I still can not get this program to work. I changed the method getMapInfo() to this:
void MapInfo::getMapInfo(std::string file_name)
{
char str[256];
int max_corner_no =... |
Forum: C++ May 4th, 2008 |
| Replies: 15 Views: 947 Re: 2D array memory allocation error Hello, Salem,
I did some modifications of my code as you suggested, and here is what I got:
#ifndef MAPINFO_H
#define MAPINFO_H
#include <iostream>
#include <vector>
class MapInfo
{ |
Forum: C++ May 3rd, 2008 |
| Replies: 15 Views: 947 |
Forum: C++ May 2nd, 2008 |
| Replies: 15 Views: 947 Re: 2D array memory allocation error Hello all,
So I am just wondering if I can do this in c++:
I got one class (called "MapInfo")with 2 member functions, one is used to get the content of the file and save all the numbers in the file... |
Forum: C++ May 2nd, 2008 |
| Replies: 15 Views: 947 Re: 2D array memory allocation error Hello, mitrmkar,
Thank you for your reply.
I have looked at some references on passing by value and passing by reference, so basically instead of passing the entire object as the function argument,... |
Forum: C++ May 1st, 2008 |
| Replies: 15 Views: 947 |
Forum: C++ May 1st, 2008 |
| Replies: 15 Views: 947 Re: 2D array memory allocation error Hello, Salem,
Thank you very much for your reply, regarding to that:
> for (int i=0; i<=no_of_blds-1; i++)
> bld_info[i]=new double[max_corner_no*2+3]; //*2 because we need x and y coordinates, >rest... |
Forum: C++ Apr 30th, 2008 |
| Replies: 15 Views: 947 2D array memory allocation error Hello, all,
I am pretty new to C++ and I need to write a program for calculating radio propagation path loss based on ray tracing, C++ is used for its faster processing rather than MATLAB. I have a... |