49,755 Topics
![]() | |
We have a client who needs to make the cash withdrawal option of their ATM's Inactive once the ATM runs out of cash or if there is a cash jam. Can anyone help with this? | |
Couple statements, couple answers. I don't understand everything. If I'm wrong, correct me, but don't be mean about it. You weren't senior in your first steps either. Some of these are guarranteed wrong, because I want to taunt out the correct answer. Statements: **S1. Assembly works 1 on 1 with … | |
I am wondering if there would be any chance that someone could help me out with this, I am trying to teach myself c++ which i find it really interesting and I came accross this and would love to see how it works so i could do it and learn … | |
I am getting difficulty to work out this question,can someone work out this program for me. Write a program that organise reservation for a show with the show hall having 5 rows of seats and 9 seats per row. The rows are numbered from āAā to āEā (back to front) … | |
I'm trying to figure out how do i print a distinct enum value by using a conditional statement in my construction of array. I have a enum declaration enum Animal {Rat, Ox, Tiger, Rabbit, Dragon, Snake, Horse, Sheep, Monkey, Rooster, Dog, Pig}; And i construct my array using a voidptr … | |
Hi, I would linke to know what is the best way to synchronise the shared memory segment. is threads usage are also advisible whie synhcronising the shared memory segement. in what circumstances we should use threads or semaphore to synchronize the memory segment. | |
how to create a simple calculator for addition, subtraction, multiplication,division and factorial using switch...case statement in C++ programm | |
How do I make a line of code that would go back to a part of a program without making it a loop? For example ###Code I don't want repeated### some line for later to come back (line 2) $$$code I want to repeat$$$ jump back to line 2 | |
Hi, I am facing an issue in string to const char pointer conversion. I am doing stuff in the fun() but here i am just giving my example. Here it the code: // Helper function string fun() { string abc = "Daniweb"; // print here #1 return abc; } // … | |
I just started learning how to use pointer array and i'm trying out examples to know more about them but i get confused with them easily. So, I tried to do a simple arithmetic calculation using a pointer array. The user will input 2 string variables for addition. I then … | |
I'm doing a simple addition arithmetic using pointer array but i'm stuck at trying to print out my pointer array. int main() { string str1, str2; cout << "Enter the first string" << endl; cin >> str1; cout << "Enter the second string" << endl; cin >> str2; stringtoInt(str1, str2); … | |
In below code snippet , I am trying to add the intefeger and float values in Array template but was surprised to see below output for float value as 5.1 was expected there but getting 0 . Can anybody let me know what can be wrong here. output value=5 value=15 … | |
I'm trying to store some information in a binary file. However, i met with a problem that i can't rectify. For example, if the first order comes in, there is a struct of information that includes orderNo 1, which will be stored into the binary file. When there's a second … | |
I am writing a game in which I need to know whether or not a user preforms an action in one second or less. I can not use time() because it measures time in seconds. If the user starts the action half-way through a second it would mess with accuracy. … | |
It is a software Development and it's need me a access ,c++ java, programming,database i need me and you | |
Create a āC programā that determines whether or not a person is qualified to vote. Test for the following criteria for voting: Ask for the users first and last name (adds personalization) 18 years old or older Citizen of the United States State of residence (can only be one) Not … | |
1. FCFS non-preemptive (results provided) 2. SJF non-preemptive 3. MLFQ | |
I wrote and run this code in Windows, in DEV C++ but I am keep getting a Segmentation fault on Ubuntu's terminal when I try to run this program. Here is my whole code. #include<iostream> #include<string> #include<fstream> #include<cmath> using namespace std; int Str2NumByAscii(const string& str); // convert string to number … | |
Hello everyone..I am a newbie in DANIWEB..I really need your help guys regarding the topic i stated in the title..I am trying to create a payroll system..The system will get the data from the database, compute the NET and GROSS SALARY then afterwards save it back to the database.It is … | |
((You often need to convert Rupees into coins of 5, 2, and 1. You task is to develop a C++ program to compute a mix of coins of 5, 2 and 1 against the given amount of money. Remember that you may not always have enough coins. So the program … | |
here's my code: #include <iostream> #include <iomanip> using namespace std; int main() { char name[30], choice; int hours_worked; float wage; do { cout << "Employee Name: "; cin.getline(name,30); cout << "No of hours worked: "; cin>>hours_worked; cout << endl; wage = 80.75*hours_worked; cout << "The salary of " << name … | |
> I know that the max value for short data type is 32767 and d=2*a=2*(20000)=40000 that is greater than 32767 > therefore the result of d is in minus d= -25536 while a,b and c displayed as they are scince they are< 32767 ,but the question is from where we … | |
Hello , I have this: #include <iostream> #include <cstdio> #include <cstdlib> #include <vector> using namespace std; typedef struct { float x; float y; Point *next; } Point; int main() { Point *thePoints = new Point[2]; thePoints[0].x = 2; thePoints[0].y = 3; thePoints[1].x = 4; thePoints[1].y = 5; (thePoints[0])->next= 11; cout … | |
Hi All, I below code snippet I have been using diff-2 structure with same variable due to having different -2 default values for the variable (var) in current implementation for both the structure a and b. This way i need to create 17 structure with same variable (var) but different … | |
Write a program that prompts the user for a value for i and displays the e value, and this is all i have so far. I was told it's suppose to have two for loops but i'm not sure where and how to do it and i know my output … | |
does anyone know how to do the program that are more or less like peteranswers?? This is the website which has been using to trick people... [URL="http://www.peteranswers.com/"]http://www.peteranswers.com/[/URL] and this is the secret : [URL="http://chriswondra.com/2007/02/21/peter-answers-the-secret/"]http://chriswondra.com/2007/02/21/peter-answers-the-secret/[/URL] i'm just wondering if i'm capable to do just a simple program that is similar like … | |
i know save the Image on IStream. but what isn't saved like the original: the backcolor goes to black instead stays white. i belive that the problem is the transparent color, because isn't saved on IStream. i had tryied use the ColorPalette(Image.GetPalette() and Image.SetPalette(), but the ColorPalette.Count it's zero), but … | |
I have a notepad that consist of two data which is the title and the name. I've declared the title using an enum. The enum contain this variables. enum Title {Miss, Mrs, Mr, Dr, Unknown}; Then in my structure, I attempted to call the variables from the enum like this … | |
Ikd what the error is telling me as when it compiles, no red lines appear. Plz help me >_< ! thanx in advance #include "stdafx.h" #include <iostream> #include <stdlib.h> using namespace std; #include "Shapes.h" #include "ShapeFeatures.h" int main() cout << "\n\n\n"; return 0; } //Shapes.h #pragma once class Shapes { … |
The End.