Results 1 to 6 of 6
-
13th Nov 2010, 02:17 PM #1OPMember
compiling a program
I am learning c++ in my college. they we use turbo c++ for compiling but turbo c++ doesn't works on my computer because of winodws 7.
i tried to compile this program in visual c++ 2005 express edition but i failed. Please help me out...
#include <iostream.h>
#include <conio.h>
void main()
{
int n,i;
float a[100];
cout<<"How Many Elements You Want To Input";
cin>>n;
cout<<"\nEnter The elements of array\n";
for (i=0; i<=n; i++)
{
cin>>a[i];
}
cout<<"\nThe Array Given by you is\n";
for (i=o; i<n; i++)
{
cout<<a[i];
}
getch();
}DigitalLover Reviewed by DigitalLover on . compiling a program I am learning c++ in my college. they we use turbo c++ for compiling but turbo c++ doesn't works on my computer because of winodws 7. i tried to compile this program in visual c++ 2005 express edition but i failed. Please help me out... Rating: 5
-
13th Nov 2010, 02:32 PM #2MemberWebsite's:
PasteBot.appspot.comHave you Installed VC++ in the Default Directory ?
If yes then follow the below steps
Copy the Program to to C:\Program Files\Microsoft Visual Studio "w/e version u are using"\VC
Open the Visual Studio Command Prompt from start Menu
Type "cl <name of file with extension>" without the Quotes
e.g. If I have a C++ file with the name helloWorld.cc
Type "cl HelloWorld.cc" without the Quotes
You will get an executable file with the same name in the Folder. Just run it.
PS : Since you are trying out such Simple Programs. Just use
Code:http://codepad.org/
.
.
-
13th Nov 2010, 04:01 PM #3MemberWebsite's:
sborg.usTry Bloodshed Dev C++
And codepad = win!
-
13th Nov 2010, 07:09 PM #4Member
Change the o in your second for loop to 0
-
14th Nov 2010, 04:50 AM #5MemberCode:
#include <iostream.h> #include <conio.h> void main() { int n,i; float a[100]; cout<<"How Many Elements You Want To Input"; cin>>n; cout<<"\nEnter The elements of array\n"; for (i=0; i<n; i++) { cin>>a[i]; } cout<<"\nThe Array Given by you is\n"; for (i=0; i<n; i++) { cout<<a[i]; } getch(); }
-
14th Nov 2010, 09:56 AM #6OPMember
ok i will try that
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Compiling mysqli for php 5.2 windows errors in VC6
By NewEraCracker in forum Web Development AreaReplies: 1Last Post: 17th Feb 2011, 02:39 PM -
Not Selected for The Program (MEPI- Student Leaders Program)!!
By DoctorX in forum General DiscussionReplies: 0Last Post: 9th Feb 2011, 04:29 PM -
How to: Compiling PHP and Apache - cPanel
By NationWebHost in forum Technical and Security TutorialsReplies: 5Last Post: 29th Nov 2010, 06:38 PM -
Need some invoice program source code/or program only
By Nikolasr in forum Webmaster DiscussionReplies: 2Last Post: 1st Feb 2010, 10:55 AM -
Compiling gif2apng on debian
By SplitIce in forum Tutorials and GuidesReplies: 7Last Post: 29th Jan 2010, 12:37 PM
themaCreator - create posts from...
Version 3.23 released. Open older version (or...