Questions




Answers
1
Want to convert infix to postfix in C but getting error empty stack

I write a C code to convert infix expression to postfix expression. The expression may include '^' , "+", "-" , "/", "*" and all three types of brackets i.e." ({[ ". The code should first check whether the brackets are balanced or not and then do the conversion. But the code is showing an empty stack at the output.

Here is my sample code

...
Read More
Answers
2
How to enable JavaScript debugging in visual studio 2019 or 2017

How Can I enable Javascript debugging in Chrome using Visual Studio 2017 or 2019? I have been using Visual Studio 2017, but I am not able to debug Javascript code by placing debug in the Visual Studio Javascript code.

So, how can I achieve it and check line by line output of the Javascript code? I have checked this article ("How to debug in visual studio? ( Tutorial to debug C# code )") but it shows debugging C# code in Visual Studio.

...
Read More
Answers
1
Can anybody help me to convert a infix expression into a postfix expression which deals with all three brackets i.e. ({[ in c language?

This is the pseudo code. Create a function that takes an infix expression as input and converts it to a postfix expression. It should  

take pointers to two strings as input; one containing the infix expression, and second to which this

function will write the postfix expression i.e. the declaration should be

void infixToPostfix(char *infix, char *postfix, int str_size);

The algorithm is as follows:

Iterate over the infix expression’s string. For each character c,

• If c is an operand, concatenate it with the postfix expression.

• If c is an operator, check if top of stack, say m, is an operator. If so, check if the operator

precedence of m is higher or equal to the operator precedence of c; if yes, concatenate m with

postfix expression, and pop it from the stack. Keep doing this until the top of stack is not an

operator with operator precedence higher or equal to the operator precedence of c. Then push

c on the stack.

• After completely processing input expression, TopAndPop remaining operators from stack and

concatenate each with postfix expression, in the order they are popped.

You can perform string concatenation using strcat().

...
Read More
Answers
2
How do I clear local storage using javascript?

Hello, I am able to add localStorage using Item keys using Javascript, with below sample code

...
Read More
Answers
2
How to rename a file and directory in C#?

I am working with files and directory in C#, so I would like to know how can I rename a file and directory in C#? I would like to rename file first and then in some cases would have to rename directory also.

I see there is File.Move Method, but is there any other method or way to rename a file and what about Directory, how to rename directory?

...
Read More
Answers
2
How to convert seconds into hh:mm:ss in C#?

I am trying to work on Audio file and have seconds as int in C#, but I would like to convert seconds into hh:mm:ss ( hours, minutes and seconds) format, so How can I do it easily in C#?

For example: 20 Seconds = 00:00:20 in hour,minutes,seconds format.

...
Read More
Answers
1
Character encoding html not showing correct output (Â)

I am using Spanish lanuguage on our .NET MVC website, when page is loading it is not showing correct character like changing "á" into "Â", something like below image

character-not-loading-correctly-utf-encoding-min.png

I am already using below HTML code for settings content type with "charset=UTF-8"

...
Read More
Answers
1
GoogleWebAuthorizationBroker.AuthorizeAsync is not working on Server

GoogleWebAuthorizationBroker.AuthorizeAsync is not working on localhost but not working in server

...
Read More
Answers
3
How to get all files inside folder using C# easily?

I have been reading this article to read file in C#, but how can I read all files inside folders, so basically how to get all files from directory or folder using C# and then read them?

...
Read More
Answers
1
How can I convert values in euro currency?

How i can convert values in euro currency

For Example:- if There is 25000 then output will be €25.000

If There is 995 then €9,95

...
Read More

Page 5 of 51