#include<iostream.h>
#include<conio.h>
int main()
{
clrscr();
int *pArr=new int[10];
int *pin=new int;
cout<<"Enter the number of elements in an array"<<endl;
cin>> *pin;
cout<<"Enter the elements one by one" <<endl;
for (int i=0; i<*pin; i++)
{
cin>>pArr[i];
}
cout<<"Array elements are"<<endl;
for (int j=0; j<*pin; j++)
{
cout<<endl<<pArr[j];
}
delete pin;
delete[]pArr;
getch();
return 0;
}
-->
- Intro
- Basics
- Compiling your first program
- Structure of a program
- Comments
- A first look at variables (and cin)
- A few common C++ problems
- A first look at operators
- A first look at functions
- Whitespace and basic formatting
- Forward declarations
- Header files
- Programs with multiple files
- A first look at the preprocessor
- Variables
- IDE
- Operators
- Variable
- Control Flow
- Array
- Functions
- OOPS
- Overloading
- Composition
- Inheritance
- Programs
I always emailed this website post page to all my associates, for the
ReplyDeletereason that if like to read it then my contacts will too.
Here is my weblog ; advice
What's Happening i am new to this, I stumbled upon this I have found It positively useful and it has helped me out loads. I hope to give a contribution & help different customers like its aided me. Good job.
ReplyDeleteAlso visit my web blog ... www.propertywide.co.uk
I am not sure where you're getting your info, but great topic. I needs to spend some time learning much more or understanding more. Thanks for wonderful information I was looking for this info for my mission.
ReplyDeleteFeel free to surf to my site - site
My brother suggested I might like this blog. He was totally right.
ReplyDeleteThis post actually made my day. You cann't imagine just how much time I had spent for this info! Thanks!
Also visit my blog post View Website