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
| //A pattern by MADAN LAL The FASTian | |
| #include<stdio.h> | |
| #include<conio.h> | |
| #include<windows.h> | |
| void gotoxy(int,int); | |
| int main() | |
| { | |
| int i,j,k; |
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
| //This is program for spiral matrix. Spiral Matrix is a matrix with | |
| //the middle element as 0 and will be incremented by 1 as it goes out spirally | |
| //eg: n=3 | |
| // 4 3 2 | |
| // 5 0 1 | |
| // 6 7 8 | |
| #include<iostream> | |
| #include<cstdlib> |
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<math.h> | |
| #include<unistd.h> | |
| #include <sys/ioctl.h> | |
| struct winsize w; | |
| using namespace std; | |
| int main() | |
| { | |
| float 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
| /* | |
| * This program will convert an Roman number in a Arabic number | |
| * Follows the rules of writing that you can find on: http://en.wikipedia.org/wiki/Roman_numerals#Reading_Roman_numerals | |
| */ | |
| #include <iostream> | |
| using namespace std; | |
| // Array of Arabic number and Roman number | |
| char NumerazioneRomana[7]={'I','V','X','L','C','D','M'}; | |
| int AraboCorrispondente[7]={1,5,10,50,100,500,1000}; |
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; | |
| int main(){ | |
| const char a = 'X'; | |
| const char d = ' '; | |
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<unistd.h> | |
| using namespace::std; | |
| int main(){ | |
| int max; | |
| cout<<"Enter number of rows:"<<endl; | |
| cin>>max; | |
| cout<<endl<<endl; | |
| for(int i=1,x=max-1,y=0;i<max&&x>0;i++,x--,y++){ | |
| for(int j=1,p=0;j<max;j++,p++,usleep(1000*3)){ |
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
| /* Project: Tutorial3 | |
| * Author: Callum Cooper | |
| * Date: 07/10/2013 | |
| * Description: Program uses a main function to take a user generated defined number to | |
| deine the size of a square and calls a drawSquare function to generate the | |
| columns and rows of the square using asterisks. | |
| */ | |
| #include <iostream> // Uses output stream | |
| using namespace std; // C++ standard library declaration |
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
| /*############################################################################*/ | |
| /* BLOCCOGAME */ | |
| /*----------------------------------------------------------------------------*/ | |
| /* Created on 24/09/2013 by Ali Tugrul PINAR */ | |
| /*----------------------------------------------------------------------------*/ | |
| /*----------------------------------------------------------------------------*/ | |
| /* DESCRIPTION */ | |
| /*------------------------- | |
| /* This program provides a simulation of a blocco game. | |
| /* Game includes five different difficulty levels. |
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 "stdafx.h" | |
| #include "string.h" | |
| #include "stdlib.h" | |
| #include "stack.cpp" | |
| #define EXPR_LENGHT 128 | |
| #define OPRS "+-*/^" | |
| #define OPE 0 | |
| #define OPR 1 | |
| #define TEST_STR "(1+3)^2" | |
| #define INT(X) (exp[X]>=48 && exp[X]<=57) |
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<dos.h> | |
| #include<stdio.h> | |
| #include<conio.h> | |
| #include<stdlib.h> | |
| #define ESC 27 | |
| #define DISPOFFX 50 | |
| #define DISPOFFY 2 | |
| #define ENDOFX 80 | |
| #define ENDOFY 25 | |
| #define SPACING 1 |