49,761 Topics

Member Avatar for
Member Avatar for Michelle_8

This assignment is due at midnight. i have been working on it for the better part of a week and I still can't figure out how to analyze poker hands for what kind of hand they are. I have looked around the internet for ideas to no avail. I am …

Member Avatar for AssertNull
0
966
Member Avatar for Mr.M

Hi DW. How can one read a file or change a file bits without reading the entire file. But first of all how can I read a file in such a way that I get it's bits. I want to read MP3 file and change it bits but I don't …

Member Avatar for AssertNull
0
654
Member Avatar for Avnish_2

Please tell me the all the implanted things that how to start because I am new in software development field. thank you..

Member Avatar for Reverend Jim
0
87
Member Avatar for noorullah06

QUESTION: A CAR Class Write a class named Car that has the following member variables:  year. An int that holds the car’s model year.  make. A string that holds the make of the car.  speed. An int that holds the car’s current speed. In addition, the class …

Member Avatar for tinstaafl
0
4K
Member Avatar for DS9596

After you open files (like 7 or 8) on email and download to visual studio, how come it won't let you debug right there? Do I have to save all those files, one at a time and then will it let me debug?

Member Avatar for pritaeas
0
162
Member Avatar for Zaal

Hi guys, want to convert PYTHON to C and RUBY anyone can help me with this? I have tried to find some online services, but can't find.. if someone can recommend free service, i'll be happy. I want to convert this simple code to C, RUBY,NODE JS http://hastebin.com/kibaraganu.pl Someone can …

-1
148
Member Avatar for surfingturtle

Please expound on get() function mentioned in the following code.....am not able to understand the output of this program. #include "stdafx.h" #include <iostream> using namespace std; int main() { char ch; cout<<endl<<"Enter a character:"; cin.get(ch); cout<<ch; cin.putback(ch); cin.get(ch); cout<<endl<<ch; int count=cin.gcount(); cout<<endl<<"Characters extracted in last get()= "<<count; //stuff stream with …

Member Avatar for surfingturtle
0
159
Member Avatar for lauruskamj

I have to use a class that converts number (2-9) to words ie; 368253 is double. I have a file of 100,000 words that I have to "bounce" the string of numbers off of to form any possible string of words. It also has to be able to convert a …

Member Avatar for Daren_2
0
668
Member Avatar for DavidB

I am trying to translate an old FORTRAN program to C++ and appear to have hit a brick wall. I do not understand how one of the variables returned by a sub-routine can ever take a particular value. I am not a FORTRAN master; maybe somebody here is more familiar …

Member Avatar for rubberman
0
490
Member Avatar for Fola_1

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?

Member Avatar for JamesCherrill
0
210
Member Avatar for Aeonix

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 …

Member Avatar for Reverend Jim
0
378
Member Avatar for John_133

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 …

Member Avatar for ddanbe
0
274
Member Avatar for Avishai_1

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) …

Member Avatar for tinstaafl
-1
244
Member Avatar for Bryan_5

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 …

Member Avatar for tinstaafl
0
298
Member Avatar for Tima_1
Member Avatar for can-mohan

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.

Member Avatar for rproffitt
0
457
Member Avatar for Yasir_7

how to create a simple calculator for addition, subtraction, multiplication,division and factorial using switch...case statement in C++ programm

Member Avatar for rproffitt
0
143
Member Avatar for Peter_36

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

Member Avatar for ddanbe
0
357
Member Avatar for nitin1

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; } // …

Member Avatar for AssertNull
0
3K
Member Avatar for Bryan_5

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 …

Member Avatar for deceptikon
0
354
Member Avatar for Bryan_5

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); …

Member Avatar for tinstaafl
0
364
Member Avatar for can-mohan

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 …

Member Avatar for can-mohan
0
364
Member Avatar for Bryan_5

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 …

0
229
Member Avatar for Sudo Bash

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. …

Member Avatar for Yangang
0
4K
Member Avatar for Adnan_9

It is a software Development and it's need me a access ,c++ java, programming,database i need me and you

Member Avatar for JamesCherrill
0
116
Member Avatar for lytonia

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 …

Member Avatar for ddanbe
0
353
Member Avatar for mike_36
Member Avatar for happygeek
0
288
Member Avatar for Baran_1

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 …

Member Avatar for rubberman
0
5K
Member Avatar for rennel

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 …

Member Avatar for Sean_13
0
2K
Member Avatar for Muntaha_1

((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 …

Member Avatar for tinstaafl
1
966

The End.