This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @author Amin Ullah Khan | |
| * @copyright Amin Ullah Khan 2013 | |
| * @licence MIT, GPL, LGPL | |
| */ | |
| #include <iostream> | |
| using namespace std; | |
| class CBox { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| class Langoor { | |
| public: | |
| // Default constructor. => 1 | |
| Langoor() { | |
| // No arguments have been provided, so we can set default values. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| class Student { | |
| private: | |
| string name; | |
| public: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| class Distance { | |
| private: | |
| int feet; | |
| double inches; | |
| public: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <string> | |
| using namespace std; | |
| class Circle { | |
| private: | |
| double radius; | |
| string color; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <cstdlib> | |
| using namespace std; | |
| int main() | |
| { | |
| int list[]={9, 1, 4, 2, 8}; | |
| int i, j; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title>My First Page</title> | |
| </head> | |
| <body> | |
| <ol type="i" start=3> | |
| <li><font face="verdana" size=2>Syed Hizbullah</font></li> | |
| <li><font face="arial" color="#ff0000">Muheeb Ullah</font></li> | |
| </ol> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <cstdlib> | |
| #include <iostream> | |
| using namespace std; | |
| // standard c++ | |
| int main(int argc, char *argv[]) | |
| { | |
| // even if (choice = 'N'), do will run once | |
| char choice = 'Y'; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream.h> | |
| void main(void) | |
| { | |
| int age = 0, ageInSeconds = 0; | |
| cout << "Enter your age: " << endl; | |
| cin >> age; | |
| ageInSeconds = age * 365 * 24 * 60 * 60; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream.h> | |
| void main(void) | |
| { | |
| int width, length, area; | |
| cout << "Enter the width of the room: " << endl; | |
| cin >> width; | |
| cout << "Enter the length of the room: " << endl; |