Posts

Showing posts with the label User define function

Calculator of multiplication by function | Multiply two values by using function

// This is written by "Syed Ali Haider" // Student of Havjery University // Don't remove these line for legal use // Upload on Let's programming by (CEO) // For contact // key_to_programming@yahoo.com # include <iostream> using namespace std; int function( int i, int j) // function header {        int result;        result= i*j;        return result; // the return variable of the function } void main () {        cout<< "Enter the value for i: " ;        int a;        cin>>a;        cout<< "Enter the value for j:" ;        int b;        cin>>b;               int res...

Tic-Tac-Toe Game in with Artificial intelligence (Version 1.1.5)

Image
// Tic tac toe game in C++ without using 'USER DEFINE FUNCTION' // The game is written by "Syed Ali Haider" // Student of Havjery University // Don't remove these line for legal use // Upload on Let's programming by (CEO) // For more games contact // key_to_programming@yahoo.com #include <iostream> using namespace std; void main () { // body of main function start here        // variables for each cell        char c1= ' ' ;        char c2= ' ' ;        char c3= ' ' ;        char c4= ' ' ;        char c5= ' ' ;        char c6= ' ' ;        char c7= ' ' ;        char c8= ' ' ;        char c9= ' ' ;  ...