Uploaded by dccfesco

Experiment No.1

advertisement
Experiment No. 1
Familiarize with the Basic C++ and Microsoft Visual Studio.
Objectives:
➢ To make students know that how to open the Microsoft visual C++ and use it to write
and execute a simple program that print a simple statement.
➢ Find and correct the errors & applying the escape characters like \n, \t,\r,\aLab Work
1- Procedure
_______________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
Page 1 of 3
Roll No.26605
2- Task-1
I-Screenshot of Coding in C++
II-Screenshot of Compiled Output
Coding
//C++ program
#include <iostream>
using namespace std;
int main()
{
cout<<"\'D\'\t\'i\'\t\'g\'\t\'e\'\t\'s\'\t\'t\'\n";
cout<<"\"Mamoon\"\n";
return 0;
}
Page 2 of 3
Roll No.26605
3- Conclusion
__________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
Page 3 of 3
Roll No.26605
Download