Post is pinned.
I'm turning on post moderation because the few relevant posts are being drowned out by spammy posts and promotions.

My apologies for not enabling this earlier.

Post has attachment
Write a C++ program to swap two strings, where each strings are entered by the user.

Program Code:
#include<iostream>
#include<string.h>
#include<stdio.h>
using namespace std;
int main()
{
char str1[20], str2[20], temp[20];
int i=0, j=0, k=0;
cout<<"Enter the First String : ";
gets(str1);
cout<<endl;
cout<<"Enter the Second String : ";
gets(str2);
cout<<endl;

Post has attachment
Write the algorithm for evaluation of a postfix expression.

The postfix expression may be evaluated by making a left-to-right scan, stacking operands and evaluating operators using the correct number from the stack as operands and again placing the result onto the stack. This evaluation process is much simpler than attempting a direct evaluation from the infix notation. This process is continues till the stack is not empty. The following algorithm uses a stack data structure to calculate postfix expression. Suppose EXP is an arithmetic expression which is further written in postfix notation. The algorithm written below, which uses a STACK data structure to hold operands, evaluates EXP. This algorithm finds the RESULT of an arithmetic expression EXP written in postfix notation.

Steps which we follow when evaluating postfix expression.



1. First of all add a right parenthesis ‘)’ at the end of EXP in hand.
2. Scan EXP from left-to-right and repeat steps 3 & 4 for each data element in EXP until the ‘)’ is found in it.

Post has attachment
Write a C++ program to Calculate the sum of the series (1) + (1+2) + (1+2+3) + (1+2+3+4) + ... + (1+2+3+4+...+n), where n is entered by the user.

Program Code:
#include<iostream>
using namespace std;
int main()
{
int i,j,n;
int sum=0;
cout<<"Enter the value of n for the series : ";
cin>>n;
cout<<endl;
for(i=1;i<=n;i++)
{
for(j=1;j<=i;j++)

Post has attachment
Write a C++ program to Calculate the sum of the series (1) + (1+2) + (1+2+3) + (1+2+3+4) + ... + (1+2+3+4+...+n), where n is entered by the user.

Program Code:
#include <iostream>
using namespace std;
int main()
{
int n;
cout<<"Enter the value of n for the series : ";
cin>>n;
cout<<endl;

Post has attachment
Write a C++ program to Merge two given arrays into a third array.

Program Code:
#include<iostream>
using namespace std;
int main()
{
int a[10],b[10],c[20],i;
cout<<"Enter elements in first array : ";
for(i=0;i<5;i++)
{
cin>>a[i];
}
cout<<endl;
cout<<"Enter elements in second array : ";
for(i=0;i<5;i++)
{

Post has attachment
#What_if ??????🤔🤔🤔
your alarm clock wakes up you at 6 a.m. and then notifies your coffee maker to start brewing coffee for you?☕ What if your office equipment knew when it was running low on supplies and automatically re-ordered more?
you are on your way to a meeting; your car could have access to your calendar and already know the best route to take. If the traffic is heavy your car might send a text to the other party notifying them that you will be late.
Simply put, this is the concept of connecting any device with an on and off switch to the Internet This includes everything from cellphones, coffee makers, washing machines...else
All this is Simply the Concept of The #internet_of_things & its impact on People & #Smart_Cities
If you want to Know more or Sharing your Research Join us In the international conference On #Future_Smart_Cities #Fsc2018
Join as an #Audience
or #Submit_your_Abstract
More info : goo.gl/H2r4VL
Photo

Post has attachment
How can a friend function common to two different classes be declared in a C++ program?

In Object Oriented Programming (OOP's), friend functions are not considered class members; they are considered as normal external functions that are given special access privileges for class data members and member functions. Friends are not in the class scope and are not called using the member-selection operators (. and ->) unless they are members of another class.
Any data members which is declared private inside a class is not accessible from outside the class. So a function which is not a member or an external class can never access such private data members. But there may be some cases in real life, where a programmer will need access to the private data from non-member functions or from external classes. C++ offers some exceptions in such cases.

Post has attachment
We recently had conversations with several teachers about teaching girls engineering, and I wanted to share their thoughts. If you listen to the latest episode, you'll hear from five teachers who teach all-girls engineering classes in middle school and high school. What are their tips on engaging girls in these fields in K-12? Is it any different from engaging young students in general? http://ow.ly/ewTM30gcUNz

Post has attachment
This startup Cofounder and CEO teaches kids to code in Python. Listen to her education and business strategy in the latest episode: http://ow.ly/Q49D30fVkKi Find notes, links, and more at the podcast website: http://www.k12engineering.net/transcripts/ep50.html
Wait while more posts are being loaded