We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Getting Started with C++ Video tutorial gives you the basics for using dev C++ for the first time.

This video tutorial gives you the basics for using dev C++ for the first time.

I believe that the first step of any activity is most often the hardest one. When you are using C++ for the first time you might be facing a lot of issues and don’t know how to resolve them.

Following are a few tips to get you started with using C++:

1 The first step is to know the version of your OS (Operating System). Whether it is x86(32 bit) or x64(64 bit). To verify this right click on My Computer (Windows 7 and previous) /This PC (Windows 8/8.1)  icon and click on Properties from pop up menu.

2 Now that you know the version of OS next step is to download the appropriate version of compiler for C++.

Various editions are available, choose one which is compatible with your OS.

32 bit:

or

64 bit:

3 Download and install the compiler and tune the compiler according to your needs.

4 Making your first program Hello World in C++.

# include <iostream>
# include <cstdlib>
using namespace std;

int main()
{

cout “Hello World” endl;
system(“pause”);
return 0;

}

5 Understanding the basic logical structure of C++ programs.

# include directive is used to include header files in your cpp program.

iostream: This header file contains the input and output interface/commands of C++. Older compilers used iostream.h header file but newer ones use iostream. I recommend using iostream without the .h extension.

cstdlib: This header file has a lot of frequently used instructions one of which is system(“pause”) that is used to  avoid the console to close until  a key is pressed.

A lot of header files are available but we will discuss them when ever we feel the need of them in our program. For the time being just make it a habit to include these two files.

int main()

There are a few variations, you can simply write mainint main or void main.The standard practice is to use int main(). Briefly speaking we can say that main is the part from where execution of program starts. All the statements which are within the opening { and closing } of main will be executed.

cout

This instruction is used to display something on the screen.

endl is used to express the end of line and move cursor to next line.

system(“pause”)

This instruction is used so that the program display does not  close until a key is pressed.

return 0

This indicates that the program executed and ended in an error free manner.

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 783

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

Note: (This is Featured Discussion)

For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

For how you can view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.

Or visit this link 

Click Here For Detail.

nice job

#include <iostream.h>

main ()
{
char chr;
int n = 1;
cout "Please enter the option e, E or o, O: ";
cin >> chr ;
switch ( chr ) {
case 'e':

cout "Even numbers from 1 to 50 " endl;
while (n <= 50) {

if ( n % 2 == 0 ) {
cout n ", ";
}

n++;
}

break;
case 'E' :

cout "Even numbers from 1 to 50 " endl;
while (n <= 50) {

if ( n % 2 == 0 ) {
cout n ", ";
}

n++;
}

break;

case 'o' :

cout "Odd numbers from 1 to 50 " endl;
while (n <= 50) {

if ( n % 2 == 1 ) {
cout n ", ";
}

n++;
}
break;

case 'O' :

cout "Odd numbers from 1 to 50 " endl;
while (n <= 50) {

if ( n % 2 == 1 ) {
cout n ", ";
}

n++;
}

break;
}

}

Hello brother check this file and guide me, i am very upset about this. please help me about this issue.
thanks

Attachments:

error 1st line mn ni 2nd line mn h ...mostly compiler jhhn error hota  h us s nechy wli ya upper wli line pr error show krta h

# include <stdlib>  correct 

but u write wrong <cstdlib>  wrong

in programming 90% error show due to wrong spelling 

:O ustani ji Asslaam o alikum :(

walikum salam

RSS

Today Top Members 

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.