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; | |
| int a, b; | |
| int main() { | |
| cout << "A: "; | |
| cin >> a; | |
| cout << 1 << " " << endl; | |
| for(int i = 0; i <= a; i++) { |
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 <conio.h> | |
| using namespace std; | |
| int main() { | |
| char key_press; | |
| int ascii_value; | |
| cout<<"\n\t\t\tPress Any Key To Check Its ASCII Code\n\n\t\t\tPress ESC to EXIT\n\n\n"; | |
| while(1) { | |
| key_press = getch(); |
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
| void swap(int &a, int &b) { | |
| int temp = a; | |
| a = b; | |
| b = temp; | |
| } | |
| void showArray(int arr[], int size) { | |
| for(int i = 0; i < size; i++) { | |
| cout << arr[i] << ", "; | |
| } |
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
| void swap(int &a, int &b) { | |
| int temp = a; | |
| a = b; | |
| b = temp; | |
| } | |
| void showArray(int arr[], int size) { | |
| for(int i = 0; i < size; i++) { | |
| cout << arr[i] << ", "; | |
| } |
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
| void swap(int &a, int &b) { | |
| int temp = a; | |
| a = b; | |
| b = temp; | |
| } | |
| void showArray(int arr[], int size) { | |
| for(int i = 0; i < size; i++) { | |
| cout << arr[i] << ", "; | |
| } |
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
| void swap(int &a, int &b) { | |
| int temp = a; | |
| a = b; | |
| b = temp; | |
| } | |
| void showArray(int arr[], int size) { | |
| for(int i = 0; i < size; i++) { | |
| cout << arr[i] << ", "; | |
| } |
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; | |
| #define null 0 | |
| class Student { | |
| public: | |
| string name; | |
| int age; | |
| float gpa; |
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; | |
| #define null 0 | |
| class Node { | |
| public: | |
| int data; | |
| Node *next; | |
| Node(int data) { | |
| this->data = data; |
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; | |
| #define null 0 | |
| class Node { | |
| public: | |
| int data; | |
| Node *next; | |
| Node *prev; | |
| Node(int data) { |
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; | |
| #define null 0 | |
| class StackArray { | |
| private: | |
| int size; | |
| int *stackArr; | |
| int top; | |
| void resize() { |