Posts

Showing posts from August, 2020

Concepts in c++........

Image
  Concepts in c++                                                                                   And I choose the topic for today is the concepts of c++  and first of all i will make the list for all of them than i will tell little bit about them should we start from here? I think no. We should understand the overview first that what is c++ why i am talking about the c++ so the answer of it is this that c++ is a programming language which is the fastest programming language and can access the hard of computer directly this is the reason this is the fastest language uses to make the software,games, management systems and games etc. So the topics of this language are these: 1)Introduction to c++ 2)Data types 3)header-files 4)Rules 5)if-else/if-else-if/if statements 6)loops(for,while,do-while) 7)Arrays 8)Functions(build-in+user-define) 9)Structures 10)File-Handling 11)string 12)Other vocabulary of c++ 13)Vectors                         So, why i talked about these topics so the answer

How to start programming.....

Image
 How to start Programming                             So First of all to start programming there is only thing which need is a fresh mind which every human contain. In this era there is nothing difficult to learn because in this era there is a thing which makes everything easy to learn which is internet. In this time we can afford internet easily and it is easiest way to learn in minimum cost.Therefore, we should learn something to grow yourself and start with programming is a big deal because in this time programming or coding is very important. Our world need good programmers to grow in science because after humans robots are introduced to work and to make work for them we need programming to program their computers. This can make the life easier for humans because in this way humans will get less burden of work. So, whatever after make our mind we should plan which language we should start. which language we should start:                                                              

This article can save your life

Image
 This article can save your life   In times of disaster most people fail to do the important work that can save their lives. But why does this happen? While searching for the answer, one should pay attention to the incident of September 27, 1994 in which 852 people drowned at sea. At seven in the morning that day, the ship MS Estonia departed from Tallinn port with 989 passengers. He had to cross the Baltic Sea to Stockholm. But the ship never got there. Six hours after leaving port, the ship was caught in a severe storm, its front door shattered and water began to seep in. Within an hour, the ship sank, along with 852 passengers and crew. Why 852 people drowned? The pace of the tragedy, the hurricane, the declaration of emergency half an hour after the sinking and the time for the rescue team to reach the affected people ... Despite all these, the relief experts were stunned by the death of so many people. It seems that many people drowned simply because they made no attempt to escape

Program to check odd or even number in c++ programming language

#include<iostream> using namespace std; int main() { int a; cout << "enter the value of a:"; cin >> a; if (a % 2 == 0) cout << "this number is even"; else cout << "this number is odd"; getchar(); getchar(); return 0; }

Program to check first digit between two digits that is it odd or even number

#include<iostream> using namespace std; int main() { int a,rem,rev=0; cout << "Enter the value for a:"; cin >> a; while (a!=0) { rem = a % 10; rev = rev * 10 + rem; a = a / 10; } if (rev % 2 == 0) cout << "It is even"; else cout << "It is odd"; getchar(); getchar(); return 0; } //(with easy way) #include<iostream> using namespace std; int main() { int a,rem,q=0; cout << "Enter the value for a:"; cin >> a; q = a / 10; if (q % 2 == 0) cout << "It is even"; else cout << "It is odd"; getchar(); getchar(); return 0; }

Program to find Arithmetic Mean using c++ programming language.

#include<iostream> using namespace std; int Mean234(int a, int b); int Mean234(int a, int b, int c); int Mean234(int a, int b, int c, int d); int main() { double a, b, c, d; cout << "Enter two values :" << endl; cin >> a >> b; cout << Mean234(a, b) << endl; cout << "Enter three values :" << endl; cin >> a >> b >> c; cout << Mean234(a, b, c) << endl; cout << "Enter four values :" << endl; cin >> a >> b >> c >> d; cout << Mean234(a, b, c, d) << endl; return 0; } int Mean234(int a, int b) { cout << "Arithmetic Mean is :"; return((a + b) / 2.0); } int Mean234(int a, int b, int c) { cout << "Arithmetic Mean is :"; return((a + b + c) / 3.0); } int Mean234(int a, int b, int c, int d) { cout << "Arith

Selecting Sorting

// Sorting without using function: #include<iostream> using namespace std; int main() { int size; int arr[20], temp, loc, min; cout << "Enter the size of array:"; cin >> size; for (int i = 0; i < size; i++) { cout << "Enter the values of array:"; cin >> arr[i]; } for (int i = 0; i < size - 1; i++) { min = arr[i]; loc = i; for (int j = i + 1; j < size; j++) { if (arr[j] < min) { min = arr[j]; loc = j; } } temp = arr[i]; arr[i] = arr[loc]; arr[loc] = temp; } for (int i = 0; i < size; i++) { cout << "Array elements after selction is:"; cout << arr[i] << endl; } getchar(); getchar(); return 0; } //Sorting with using function: #include<iostream> using namespace std; void values(int arr[20], int); const int size = 5; int main() { int arr[size]; for (int i = 0; i < size; i++) { cout &

Bubble Sorting

  //Sorting without using functions: #include<iostream> using namespace std; int main() { int size; int arr[20], temp, swap; cout << "Enter the size of array:"; cin >> size; for (int i = 0; i < size; i++) { cout << "Enter the values of array:"; cin >> arr[i]; } for (int i = 1; i < size; i++) { swap = 0; for (int j = 0; j < (size-i); j++) { if (arr[j] < arr[j+1]) { temp = arr[j]; arr[j] = arr[j+1]; arr[j + 1] = temp; swap = 1; } } if (swap == 0) { break; } } for (int i = 0; i < size; i++) { cout << "Array elements after selction is:"; cout << arr[i] << endl; } getchar(); getchar(); return 0; } // Sorting with using function: #include<iostream> using namespace std; void values(int arr[20], int); const int size = 5; int main() { int arr[size]; for (int i = 0; i < size; i++) { cout << "Enter th

How to Start a Business with No Money?

Image
How to Start a Business with No Money?                             Hello, friends,  Today, we will talk about the property business model How can you market your business if you want to do property business Recently, Sandeep Maheshwari ji talked about this thing in his part 2 So today I will talk about the marketing part and I have a lit bit experience of this thing also And till yet in every batch, there was one student who had the same business model So I know what problem will occur while executing it So I have added a few things through which you will always make a profit and never face looses But again I am telling you that you need to check this thing according to yourself I am showing you the path but you have to walk yourself Before starting this video I want to say thank you to Sandeep Maheshwari Ji Because the  position in which where I am now is just because of him If you see my previous videos then my body language was not good enough But personally, I am the same person th