Trending questions in Edureka Community

0 votes
0 answers

When and why do I need to use cin.ignore() in C++?

In C++, I developed a simple application that requested the user to enter a number and then a string.  Surprisingly, when I ran the application, it never paused to ask for the string.  It simply ignored it.  After conducting some research on StackOverflow, I discovered that I needed to include the following line: cin.ignore(256, '\n'); before the line with the string input  That addressed the problem and allowed the software to run.  My issue is why C++ need the cin.ignore() line, and how can I forecast when I will need to use it. Here's the software I created: #include <iostream> #include <string> using namespace std; int main() { ...READ MORE

Jul 4, 2022 in C++ by Nicholas
• 7,760 points
1,104 views
0 votes
0 answers

PHP array mapping

Is there a cleaner way than foreach to get ...READ MORE

Jul 22, 2022 in PHP by narikkadan
• 86,360 points
601 views
0 votes
1 answer

parseInt with jQuery

parseInt() The parseInt() function parses a string argument ...READ MORE

Jun 10, 2022 in JQuery by gaurav
• 23,580 points
2,380 views
0 votes
1 answer

How to make a countdown timer in Android?

package com.example.countdowntimer; import java.util.concurrent.TimeUnit; import android.app.Activity; import android.os.Bundle; import android.os.CountDownTimer; import android.widget.TextView; public ...READ MORE

Jun 1, 2022 in Others by nisha
• 2,210 points
2,738 views
0 votes
0 answers

Create data frame from function in R

One function that I designed can produce ...READ MORE

Jul 9, 2022 in Data Analytics by avinash
• 1,840 points
1,130 views
0 votes
1 answer

Why is Turbo C++ showing this error in DOSBox on my Mac?

Your installation must be defective!  I have a Mac, and I'm typing this on it while using TurboC++.  Consider uninstalling and then reinstalling the programme. Download the package in the same way as you would a.dmg programme from the internet.  (For example, drag and drop the programme into the Applications folder)  Ascertain that your Applications folder is global to your system.  This is what I mean: When in Finder, select the "GO" option from the top menu bar. From the drop down option, choose "Computer." In the newly opened window, click on your hard disc. There is a "Applications" folder there.  That's where you should put TurboC++. Go to Launchpad, and start Turbo C++. ...READ MORE

Jun 28, 2022 in C++ by Damon
• 4,960 points
1,564 views
0 votes
0 answers

How can I create download link in HTML?

I am somewhat familiar with HTML. I ...READ MORE

Jul 19, 2022 in HTML by Tejashwini
• 5,380 points
700 views
0 votes
0 answers

Difference between Javascript object and Typescript object

I am trying to figure out if ...READ MORE

Aug 1, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 136 views
0 votes
1 answer

Creating a Zoom Effect on an image on hover using CSS?

Try using the following code: <style> .zoom { ...READ MORE

Jun 17, 2022 in CSS by Edureka
• 12,710 points
2,059 views
0 votes
1 answer

How to create a simple map using JavaScript/JQuery

var map = new Object(); // or ...READ MORE

Jun 27, 2022 in Web Development by rajatha
• 7,680 points
1,683 views
0 votes
1 answer

Font Awesome not working, icons showing as squares

You must have 2 classes, the fa ...READ MORE

Feb 22, 2022 in Others by Aditya
• 7,680 points
6,996 views
0 votes
0 answers

phpMyAdmin: secret passphrase?

Every time I go into phpMyAdmin using ...READ MORE

Jul 21, 2022 in PHP by narikkadan
• 86,360 points
620 views
0 votes
0 answers

Clear background if content present in textarea (jQuery)

Please see this jsFiddle: https://jsfiddle.net/Wmq6f/ I have a textarea ...READ MORE

Jul 22, 2022 in Web Development by gaurav
• 23,580 points
548 views
0 votes
0 answers

What are C++ functors and their uses?

I've been hearing a lot about functors ...READ MORE

Aug 1, 2022 in C++ by Nicholas
• 7,760 points

edited Mar 4 122 views
0 votes
0 answers

Importing Chai in Typescript

I'm trying to use chai in typescript. Chai's ...READ MORE

Aug 1, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 127 views
0 votes
1 answer

How to convert a web page(html,css,js) into android app?

I used Phonegap a lot for this, ...READ MORE

Jun 28, 2022 in CSS by Edureka
• 12,710 points
1,699 views
0 votes
0 answers

how to display an image inside SVG circle in html5?

is there a way to display an ...READ MORE

Jul 4, 2022 in HTML by Tejashwini
• 5,380 points
1,331 views
0 votes
1 answer

What is the difference between public, private, and protected inheritance in C++?

To begin answering that question, let me characterise member accessors in my own terms.  If you already know this, proceed to the section "next:". I'm aware of three types of accessors: public, protected, and private. Let: class Base { public: ...READ MORE

Jul 11, 2022 in C++ by Damon
• 4,960 points
1,046 views
0 votes
0 answers

how the iterator in c++ could be printed?

Suppose, I have declared a vector in C++ like ...READ MORE

Jul 11, 2022 in C++ by Nicholas
• 7,760 points
914 views
0 votes
1 answer

Listening for Youtube Event in JavaScript or jQuery

I'm trying to get the onStateChange event ...READ MORE

May 30, 2022 in JQuery by gaurav
• 23,580 points
2,863 views
0 votes
0 answers

Data modeling

I have a data with with multiple ...READ MORE

Aug 1, 2022 in Power BI by Priti

edited Mar 4 106 views
0 votes
1 answer

Node.js JSON.stringify() causing &quot; in output. Can't parse with Jquery

It's because when you call ...READ MORE

Jun 16, 2022 in JQuery by rajatha
• 7,680 points
2,087 views
0 votes
0 answers

What is TypeScript and why would I use it in place of JavaScript?

Could you please describe the TypeScript language? What ...READ MORE

Aug 1, 2022 in TypeSript by Elton
• 400 points

edited Mar 4 115 views
0 votes
0 answers

Instagram new logo css background

As you are all aware, Instagram just ...READ MORE

Jul 22, 2022 in CSS by Edureka
• 13,680 points
537 views
0 votes
0 answers

Fading in a background image using javascript or css on hover

I have so far been able to ...READ MORE

Jun 30, 2022 in CSS by Edureka
• 13,680 points
1,362 views
0 votes
0 answers
0 votes
0 answers

ApiNotActivatedMapError for simple html page using google-places-api

I'm attempting to make a straightforward HTML ...READ MORE

Jul 8, 2022 in HTML by Tejashwini
• 5,380 points
1,129 views
0 votes
0 answers

How to install dart on ec2 linux instance?

Many dart installation tutorials use the apt-get ...READ MORE

Apr 19, 2022 in AWS by Aditya
• 7,680 points
772 views
0 votes
0 answers

TypeScript: Typing the result of an external module's non-mutating extension function

Let's say I'm using external package "foo". ...READ MORE

Jul 18, 2022 in TypeSript by Logan
• 2,140 points
694 views
0 votes
1 answer

How do I manage MongoDB connections in a Node.js web application?

When the Node.js application starts, create a ...READ MORE

Jun 10, 2022 in Node-js by Neha
• 9,020 points
2,287 views
0 votes
0 answers

How to convert a char array to a string?

Converting a C++ string to a char ...READ MORE

Jul 14, 2022 in C++ by Nicholas
• 7,760 points
795 views
0 votes
0 answers

How to do something like border-top-left-color. [CSS]

Only border-left-color, border-right-color, border-top-color, and border-bottom-color are ...READ MORE

Jul 18, 2022 in CSS by Edureka
• 13,680 points
686 views
0 votes
1 answer

Know which exchange or wallet is behind a BTC address?

To answer your question, due to each ...READ MORE

Feb 28, 2022 in Blockchain by Soham
• 9,730 points
6,692 views
0 votes
1 answer

Check if checkbox is checked with jQuery

To check whether a Checkbox has been ...READ MORE

Jun 23, 2022 in Web Development by rajatha
• 7,680 points
1,713 views
0 votes
0 answers

How to run a function when a html5 video starts playing?

When a video begins to play, I ...READ MORE

Jul 21, 2022 in HTML by Ashwini
• 5,430 points
538 views
0 votes
0 answers

Laravel - Datatables export excel from filtered data

Hello i would like to export data ...READ MORE

Mar 28, 2022 in Database by Edureka
• 13,690 points
5,398 views
0 votes
0 answers

horizontal line and right way to code it in html, css

I need to draw a horizontal line ...READ MORE

Jul 22, 2022 in CSS by Edureka
• 13,680 points
486 views
0 votes
0 answers

C++ convert from 1 char to string?

I simply need to cast one character to string.  The inverse method is as easy as str[0]. The following suggestions did not work for me: char c = 34; string(1,c); //this doesn't work, the ...READ MORE

Jun 29, 2022 in C++ by Damon
• 4,960 points
1,410 views
0 votes
0 answers

C++ vector erase function not working properly

Here is the code I want to use to delete any entries with values more than 2 and fewer than 5. vector<int> myvector{3, 3, 3, 3, 3, 3, ...READ MORE

Jul 11, 2022 in C++ by Nicholas
• 7,760 points
853 views
0 votes
0 answers

How to traverse stack in C++?

Is traversing std::stack possible in C++? It is not possible to traverse using the following method.  Because there is no member end in std::stack. std::stack<int> foo; // .. for (__typeof(foo.begin()) it = foo.begin(); ...READ MORE

Jun 1, 2022 in C++ by Nicholas
• 7,760 points
2,649 views
0 votes
0 answers

Google Unicode Fonts not rendered properly in mpdf for PHP

I want to use Baloo2 Google Font ...READ MORE

Jun 9, 2022 in PHP by Kichu
• 19,040 points
2,284 views
0 votes
1 answer

How to display current element in jQuery?

<! DOCTYPE html> <html> <head> <script> $(document). ready(function(){ $("button"). click(function(){ $("p"). text("Welcome to ...READ MORE

Jun 27, 2022 in Web Development by rajatha
• 7,680 points
1,603 views
0 votes
0 answers

removeeventlistener for addeventlistener and render2.listen

Hi guys, does anyone know is it necessary ...READ MORE

Jul 31, 2022 in Others by andrew

edited Mar 4 116 views
0 votes
0 answers

Merge two response data in one - NodeJS

I want to merge the output from ...READ MORE

Jun 27, 2022 in Node-js by Vaani
• 7,070 points
1,559 views
0 votes
1 answer

CSS/HTML Can't align 3 pictures on the same line

div is inherently display:block you need to use something like ...READ MORE

Jun 21, 2022 in CSS by Edureka
• 12,710 points
1,802 views
0 votes
1 answer

Open Instagram user profile on android

To open instagram app- String scheme = "http://instagram.com/_u/USER"; String path ...READ MORE

May 31, 2022 in Others by nisha
• 2,210 points
2,710 views
0 votes
0 answers

What is the meaning of "generic programming" in c++?

What does generic programming in C++ mean? I'm ...READ MORE

Jul 11, 2022 in C++ by Nicholas
• 7,760 points
841 views
0 votes
1 answer

Check if element is in the list (contains)

The simplest and quickest method. You could also ...READ MORE

Jun 2, 2022 in C++ by Damon
• 4,960 points
2,598 views
0 votes
0 answers

How can I create a navigational compass using Typescript and HTML?

I'm looking to display a compass heading ...READ MORE

Jul 13, 2022 in TypeSript by Logan
• 2,140 points
865 views
0 votes
0 answers

Data frames and is.nan()

I was using sum(is.na(my.df)) to check whether ...READ MORE

Jul 22, 2022 in Data Science by avinash
• 1,840 points
465 views