rohitmc 0 Newbie Poster

thanku for all the help...i will give another shot and post it here....

rohitmc 0 Newbie Poster

ok here we go.....ERRORS...

#include <iostream>
using namespace std;

int main ()
{
	int num_cells=10;
	int * a;
	a * new int[num_cells];
	for (int i=0; i<num_cells; i++)
		a(i)=30*1+1;
	cout<<"a:";
	for (i=0; i<num_cells; i++)
		int=b;
	b=new int [3*num_cells];
	cout<<a(i)<<
		cout <<endl;
	for(i=0; i<num_cells; i++)
		b (i) = a(i);
	delete [] a;
	num_cells *=3;
		a=b;
		b=nul;
	cout << "Size of array has tripled\n";
		for (i=num_cells; i<num_cells; i++)
			a(i>=10*i+1);
			cout<<"a:";
		for (i=0; i<num_cells; i++)
			cout << a [1]<<"";
		cout<<endl;
		delete [] a;
		return 0;
}

<< moderator edit: added [code][/code] tags >>

rohitmc 0 Newbie Poster

ok i will do this...and post here...and if there's any error pls help me out

rohitmc 0 Newbie Poster

hi i am new to this forum and my major is computer science...this is the best thing i found on the web yet....i will try to help you out anyway i can.....i need help on this program...thanks


1. create a dynamicarray to hold the first 10 odd intergers. now create the array to triple its size to hold the first 30 odd integers.