Weather report program in c++ using constructor Create a class named weather report that holds a daily weather report with […]
Tag: Computer Graphics
Graphics Editor code Using C++ Language
Graphics Editor code Using C++ Language Write a Graphics Editor program to develop a graphics editor which includes features like […]
Bressenham and DDA Line Drawing algorithms
Bressenham DDA Line drawing and Circle Drawing Algorithms Write a program for Bressenham and DDA Line Drawing algorithms using C++ […]
Operator Overloading on String Functions C++ Language
Operator Overloading on String Functions C++ Language Write a program to perform Operator Overloading on String Functions using C++ Language […]
Transformations computer graphics using C++ Language
Transformations computer graphics on Geometric Figures using C++ Language Write a program to Transformations computer graphics using C++ Language like […]
Boundary and Flood Fill Algorithms in C++ Language
Boundary and Flood Fill Algorithms Write a program for Boundary and Flood Fill Algorithms in C++ Language . Boundary and […]
Student Database in C Language
Student Database in C Language Accept student information (e.g. Roll No, Name, Percentage etc.). Display the data in descending order […]
Matrix Operations in C Language
Matrix Operations in C Language Implement following Matrix operations as Given Below: Addition with arrays. Multiplication without pointers to arrays […]
Student Database using Virtual functions in C++
Student Database using Virtual functions in C++ Design a base class consisting of the data members such as name of […]
Exception Handling in C++ Language
Exception Handling in C++ Language Create a class named Television that has data members to hold the model number and […]
Cricket Database project using C++
Cricket Database project utilizing C++ Cricket Database project utilizing C++ is superior stage project which makes use of […]
Friend Function Implementation using C++
Pal Perform Implementation utilizing C++ #embrace #embrace #embrace #embrace #embrace int i=0; int idno; class scholar { public: buddy void […]
Bitwise Operations using C++
Bit-wise Operations utilizing C++
1 |
#embrace<br/>#embrace<br/>#embrace void dectobi(int p)<br/>{<br/>int b,i,x,d;<br/>for(i=31;i>=0;i--)<br/>{<br/>d=1<<i;<br/>b=p&d;<br/>if(b==0)<br/>printf("0");<br/>else<br/>printf("1");<br/>}<br/>} <br/><br/>void essential()<br/>{<br/><br/>int i,j,okay,ch,n,m,a;<br/>char cho;<br/>clrscr();<br/>do<br/>{<br/>printf("enter a integern");<br/>scanf("%d",&n);<br/>dectobi(n);<br/>printf("n 1 for 1`s praise");<br/>printf("n 2 for AND opertion");<br/>printf("n 3 for OR opertion");<br/>printf("n 4 for EX-OR opertion");<br/>printf("n 5 for LEFT SHIFT opertion");<br/>printf("n 6 for RIGHT SHIFT opertion");<br/>printf("n 7 for EXITn");<br/>scanf("%d",&ch);<br/>swap(ch)<br/>m;<br/>dectobi(a);<br/>break;<br/>case 4:<br/>printf("enter intgern");<br/>scanf("%d",&m);<br/>dectobi(m);<br/>printf("after EX-ORn");<br/>a=n^m ;<br/>dectobi(a);<br/>break;<br/>case 5:<br/>printf("enter the no by u need to LEFT SHIFT");<br/>scanf("%d",&m);<br/>a=n<<m;<br/>printf("after LEFT SHIFTn");<br/>a=n<<1;<br/><!--1--> dectobi(a);<br/>break;<br/>case 6:<br/>printf("enter the no by u need to RIGHT SHIFT");<br/>scanf("%d",&m);<br/>a=n>>m;<br/>printf("after RIGHT SHIFTn");<br/>dectobi(a);<br/>break;<br/>case 7:<br/>exit(0);<br/><br/>flushall();<br/>printf("nwant to proceed (y/n)");<br/>scanf("%c",&cho);<br/>}<br/>whereas(cho!='n');<br/><br/>}<br/> |
Supply projectgeek.com
Computer graphics codes in C++ Language
Laptop graphics codes in C++ Language These Laptop graphics codes are the a part of Laptop Graphics and Object-oriented […]