note_addAdd Question
mode_editWrite Article
notificationsNotifications
0
Got fxaffyt Naveen profile

Got fxaffyt Naveen Member Profile

Total Posted Questions: 0

Total Posted Answers: 4

Total Posted Articles: 0

Profession: TAPPER

Skills: Management Consulting, Front-End

City: Atlanta

State:

Country: United States

Facebook: -

Youtube: -

Linkedin: -

Website: https://thesmartphonephotographer.com



Questions

Following are the list of questions contributed by this member.

Seems this member has not contributed any question(s) yet!!

Answers

Following are the list of answers contributed by this member.

How to gain weight with lpr?

  1. eating more healthy carbohydrates, such as brown rice and fresh fruit.
  2. eating more frequent meals and snacks throughout the day.
  3. consuming nutrient-rich liquid calories, such as smoothies, milk, and meal replacement shakes.
  4. avoiding diet foods and beverages.

How to restart hyper-v virtual machine?

  1. Open Hyper-V Manager. Click Start, point to Administrative Tools, and then click Hyper-V Manager.
  2. In the navigation pane, click the name of the server if it's not already selected.
  3. In the Actions pane, click Start Service.

How to temporarily tie a balloon?

One of the easier ways of deflating your balloon without popping it is to use a twist tie . Simply hold the neck tight with one hand, and then begin securing the neck with a twist tie. Use a clothespin. Do the same process as above, only this time secure the balloon with a clothespin.

How to infix to postfix conversion (C++ Programming Language)

1
Best Solution
2
-------------------------------------------------------------------
3
#include
4
using namespace std;
5
6
int prec(char c) {
7
    if(c == '^') {
8
        return 3;
9
    }
10
    else if(c == '*' || c == '/') {
11
        return 2;
12
    }
13
    else if(c == '+' || c =='-') {
14
        return 1;
15
    }
16
    else {
17
        return -1;
18
    }
19
}
20
21
string infixToPostfix(string s) {
22
    stack<char> st;
23
    string res;
24
25
    for (int i = 0; i < s.length(); i++)
26
    {
27
        if((s[i] >= 'a' && s[i] <= 'z') || (s[i] >= 'A' && s[i] <= 'Z')) {
28
            res += s[i];
29
        }
30
        else if(s[i] == '(') {
31
            st.push(s[i]);
32
        }
33
        else if(s[i] == ')') {
34
            while (!st.empty() && st.top() != '(')
35
            {
36
                res += st.top();
37
                st.pop();
38
            }
39
            if(!st.empty()) {
40
                st.pop(); // Popping '(' here
41
            }
42
        }
43
        else {
44
            while (!st.empty() && prec(st.top()) >= prec(s[i]))
45
            {
46
                res += st.top();
47
                st.pop();
48
            }
49
            st.push(s[i]);
50
        }
51
    }
52
    
53
    while (!st.empty())
54
    {
55
       res += st.top();
56
       st.pop();
57
    }
58
    
59
    return res;
60
}
61
62
int main() {
63
    string exp = "a+b*(c^d-e)^(f+g*h)-i";
64
    cout<<infixToPostfix(exp);
65
    return 0;
66
}

Would you like to join Ask Sawal!

Why?

  1. Ask Sawal is a fast growing question and answer discussion forum.

  2. 15 lakh+ questions were answered by our Ask Sawal Members.

  3. Each day 1000s of questions asked & 1000s of questions answered.

  4. Ask any question and get answer from 2.5 Lakh+ Ask Sawal Members.

  5. Constant moderation and reporting option makes questions and answers spam free.

  6. And also, we have free blogging platform. Write an article on any topic.

  7. We have 10000+ visitors each day. So a beneficial platform for link building.

  8. We are allowing link sharing. Create backlinks to your blog site or any site.

  9. Gain extra passive income by sharing your affiliate links in articles and answers.