51,593 Topics

Member Avatar for
Member Avatar for AutoC

I need to code a linked binary min heap.Everywhere I go its an array based min heap..can someone direct me to some pseudocode for a linked min heap? Thanks for any help

Member Avatar for ArkM
0
118
Member Avatar for Spartan552

Hello, I would like to know what you think about using XML files in order to exchange informations between different processes. I know this may not be the fastest solution but Il still think It can be very effective. What do you think about that ? Advantages and cons of …

Member Avatar for ArkM
0
82
Member Avatar for Falkoner1

Hey, I was wondering what is the most popular/best network library for free download. I guess I should give my situation, as that might decide which is best for me. Basically, I want the ability for 2 or more players on different computers, on the same LAN, to be able …

Member Avatar for gusano79
0
140
Member Avatar for woody292

Hello All. I am currently working on a project that introduces us to recursion and was needing some help with my program. This is early code so i know many things aren't correct. [code] #include <iostream> #include <fstream> using namespace std; int str_length(const char[] str); int str_compare(const char[] str1, const …

Member Avatar for VernonDozier
0
113
Member Avatar for grisha83

Hello everyone, Could you please explain to me how to write the user defined functions with multiple arguments? (specifically with 2 or 3 input arguments). And also, how to make one function to manipulate different data each time it is called? (for example area of bigger circle minus area of …

Member Avatar for grisha83
0
149
Member Avatar for ryukifaiz

Can someone help me on how to write the program? The details i already upload.See the attachment.The due date is tomorrow,i hope someone can help me.Thanks!

Member Avatar for Alex Edwards
0
89
Member Avatar for icecube0045

Hi everyone. I have a homework assignment to create a program with a sales reciept. I have done pretty good so far but my only problem is I cant figure out why the cash interger isnt working. The code is suppose to subtract the cash recieved from the customer which …

Member Avatar for icecube0045
0
112
Member Avatar for Frederick2

I have not been able to obtain an answer to this question anywhere (including here) so I’ll ask it again. I can understand that folks don’t want to wade through hundreds of lines of code looking for someone else’s bug, so I’ve worked very hard to produce the very smallest …

Member Avatar for Frederick2
0
1K
Member Avatar for sunveer

could anybody tell me how to sum the sequence given using loops instead of using any other function of c++? 1 + 1/1! + 1/2! + 1/3! + .....1/n!

Member Avatar for ArkM
0
117
Member Avatar for acoxia

Hello (sorry if i break any rules on post format first time on daniweb)Have a project to make a binary to hex,Dec,octal. Now i found this code here [url]http://www.daniweb.com/forums/post598839.html#post598839[/url] and made a few changes to it but i am not familiar with a few of the parts and some help …

Member Avatar for acoxia
1
87
Member Avatar for mksakeesh

I am trying to write some cd details to a file, from a queue. First i have taken all details from keyboard to a Queue and the made to write all those to a file in ascii format. Each queue has details like CD ID, film Name, film language, film …

Member Avatar for ArkM
0
104
Member Avatar for leloo_d

Hi there, i have some problems with lists and structs (or perhaps pointers in general) I am sorry if this was already discussed, but I really spend some time searching, but I am pretty new to programming and I did not find anything. I need to use a list of …

Member Avatar for leloo_d
0
91
Member Avatar for castrohe

I am trying to make a priority queue with a specific type class 'alumnos'. I create 3 new classes (new, medium, old) who inherit from it. Then I insert the classe into de queue. I would like to use polymorphism when extracting to use the correct function 'verificarEdad' but gives …

Member Avatar for castrohe
0
9K
Member Avatar for Yellowdog428

I am working on an assignment for class and cannot for the life of me figure out how to use letters to choose a case for a switch statement. Here is my code [CODE=CPP]#include <iostream> #include <cctype> #include <cstdlib> using namespace std; // prototypes void showMenu(); int getVowels(char*, int*, int); …

Member Avatar for Yellowdog428
0
201
Member Avatar for Nemoticchigga

I am attempting to read a text file. [CODE] ifstream indata; indata.open(filename); if(!indata) { // file couldn't be opened } else { // file opened } // keep reading until end-of-file string data; while (getline(indata, data)) { //this is where i want to store values } indata.close();[/CODE] I want to …

Member Avatar for VernonDozier
0
86
Member Avatar for sfumes

Hello all, I am trying to create C++ DLLs with functions that I can call from matlab. From Matlab, I can call "loadlibrary" w/o a problem but when I want to view the functions using "libfunctions" MATLAB says "No methods for class lib.C:\Sam\MathFuncsDll\debug\MathFuncsDll or no class lib.C:\Sam\MathFuncsDll\debug\MathFuncsDll." I am using …

0
43
Member Avatar for godlike111

someone help me make a program about this triangle....... * * * * * _ * * * * _ _ * * * _ _ _ * * _ _ _ _ * can someone show me the code for this program using "FOR LOOPS" please..... thanks.....

Member Avatar for chirru
0
122
Member Avatar for NavenKumar

I almost completed the system but i'm having problem with reading/writing to text file Bcoz i can't login nor add details as its not reading from the the txt file Pls do help me Thanks In Advance

Member Avatar for NavenKumar
0
173
Member Avatar for rajesh37_p

Hello Fnd I want to be Know How to Interact Ms-Access Using c/c++ Pls kindly send ur Answer To my email <email snipped>

Member Avatar for Ancient Dragon
0
35
Member Avatar for pogosecure

when handling huge volume of data in TXT file, it is very complicate to truncate the unwanted ascii character. If there any function in C++ or C to resolve the problem. Kindly help me to resolve the problem.

Member Avatar for Ancient Dragon
0
30
Member Avatar for amt_muk

Hi, Suppose I have a char*, which holds a string value. Now I want to print the address of that char*, not the string value. Pls help me in this problem. Amit

Member Avatar for amt_muk
0
6K
Member Avatar for AutoC

Hi, Here's my situation.I'm reading a file that consists of characters including white space.Once I read them I'm counting the occurrences of each character.This means I need to count occurrences of white space as well.If I use ifstream I skip the white spaces and I dunno the filesize so I …

Member Avatar for Ancient Dragon
0
95
Member Avatar for Ninabox

Hi everybody :) here is my problem: I have a Linux cluster I have to run tests on it by using scheduler PBS and I have installed the MPI libraries. What I have done so far is writing down with the help of vi editor a simple C programs using …

Member Avatar for Ninabox
0
118
Member Avatar for amt_muk

Hello friends, Is there any problem with "Zero-Length-String" in C/C++. Pls mention if there is any type of problem in standard string library-functions like strcpy, strcat, memcpy, etc. Thanx, Amit

Member Avatar for Ancient Dragon
0
126
Member Avatar for asifjavaid

Hi all :) , I am working on video plug-in in C++.NET. I have a video file. Its size is not fixed. It can be in MBs or GBs. I have calculated sample size and sample count of video file and now I want to prepend (insert in the beginning …

Member Avatar for Ancient Dragon
0
116
Member Avatar for DegreasedMonkey

Hi all - hope someone can help me with this because I've been trawling the web looking for an answer to no avail :-( I'm trying to compile a big project (300+ files) and I seem to have no syntax errors in the code, but I get the following when …

Member Avatar for dougy83
0
107
Member Avatar for woody292

Hello all. I am working on a programming 2 lab and am unsure how to code the input and output for this assignment. Here is what the lab sheet says: "Your program will be expected to read input from the first file specified on the command line and to write …

Member Avatar for VernonDozier
0
403
Member Avatar for monkey_king

Hi, I'm doing a low-mem implementation of a matrix, than can contain values from 0-4, this is fine for my program. I input 4 values (each 2bit) into 1 char(8bit). I'm using bitpatterns and shifting to extract values. But this is of cause hidden from the user. I've done everything …

Member Avatar for ArkM
0
224
Member Avatar for phillipeharris

I am overloadin the = Operator so I can assign an Obj to another Obj. he Errors are: Error 1 error C2556: 'void BSTree::operator =(const BSTree &)' : overloaded function differs only by return type from 'BSTree &BSTree::operator =(const BSTree &)' c:\users\phil\desktop\c++\cs230\lab5\lab5\lab5\bstree.cpp 157 Error 2 error C2040: 'BSTree::operator =' : …

Member Avatar for Ancient Dragon
0
167
Member Avatar for RayvenHawk

i have an assignment I've completed except for copying a queue into another queue. According to the book the code for copying is almost the same for a stack, but when I tell my program that copy = original, it's blank. Here is the code I have so far. BTW …

Member Avatar for dougy83
0
2K
Member Avatar for alanchan

Hi, I develop the VPN accelerater card by using the C++ program. According to the explain of MSND, The function of 'CryptDestroyKey' can destroy the public key hanle and free the memory at the same time. But I got the false result when I use the function. So I wanna …

Member Avatar for alanchan
0
72
Member Avatar for SMG0723

I am a beginner and I would like to know whats wrong with my code why it is not working. I am trying to create a login form [code=csharp] private void btnSignIn_Click(object sender, EventArgs e) { string ConString; ConString = "Data Source=.;Initial Catalog=docworx;UserID=sa"; SqlConnection DbCon = new SqlConnection(ConString); m_Login = …

Member Avatar for fuzzelogic
0
74
Member Avatar for shamila08

Hello, dear all. i have another assignment such as follows: n = 1 print 1 n = 2 print 12 n = 3 print 123 n = 4 print 1234 1243 1423 how to create it by c++?

Member Avatar for raul15791
0
50
Member Avatar for nizbit

I need to design a function to find within a string a match to what is being searched and then replace that string with another. For example I need to search the string "baseball" with the string "base" and replace it with "basket". The code I have so far does …

Member Avatar for nizbit
0
151
Member Avatar for inkcoder

This doesn't work: [ICODE] if (m == 1,2,3) { cout<< "Sorry you cannot go any farther north.\n"; }[/ICODE] How can I make this work? Ink

Member Avatar for inkcoder
0
106
Member Avatar for NinjaLink

Hello all, I am creating a program, and I am currently stuck. I need someone to guide me on track on what I am doing wrong. My main goal is to get the program to run. I can't even do that. My C++ code is provided below. Thanks for all …

Member Avatar for NinjaLink
0
274
Member Avatar for ingvarorn

I'm doing a assignment for a class at my school and have written this code that follows with little help from DaniWeb users but I have one final touch problem. The problem is that if I run my strcpy function it always fills out the pzsDestination array to fill out …

Member Avatar for ingvarorn
0
150
Member Avatar for efg

its supposed to search string a for string b and once string a matches the requirments it should be printed alongside string b. anyway it does that but the output isnt c c c c c c what it should be but it shows double that for whatever reasons: [code=cplusplus] …

Member Avatar for hiraksarkardg
0
450
Member Avatar for amrith92

This is my resource file for a program: [CODE=cplusplus] #include "resource.h" // IDR_MYMENU MENU BEGIN POPUP "&File" //<=error is here BEGIN MENUITEM "&Refresh", ID_PROG_REFRESH MENUITEM "E&xit", ID_FILE_EXIT END POPUP "&Edit" BEGIN MENUITEM "&Options", ID_PROG_OPTIONS END POPUP "&About" BEGIN MENUITEM "A&bout AC", ID_PROG_ABOUT END END [/CODE] I've Checked the above over …

Member Avatar for amrith92
0
117
Member Avatar for amrith92

Here's a funny program that simulates the matrix...waaay off topic... [CODE] #include <iostream> #include <ctime> using namespace std; const int NotUsed=system("color 02"); int main() { clock(); int n; double time; char matrixwords[]=" aijk FGHIJKlmnopqrs ABCDtuvELMNO PQRS bcde fghTUVWXYwxyzZ"; char matrix[]="01001100100101011110"; clock(); for(int o=1; o<=70; o++) { cout << "/"; } …

Member Avatar for amrith92
0
187
Member Avatar for Tecfan

I'm planning to connect a MIDI-keyboard(piano) to the external sound card (in the MIDI-port, duh), and program a program that will get the status from it. So my question is: How would I get the input signal from the keyboard(piano)? Which function/library would I use? (I only need ON/OFF signal, …

0
89
Member Avatar for ingvarorn

Hi again. I'm having two issues with this code, first of then strlen only counts the characters in the first word of the line I put into console. Then the second one is that the console takes the second word put into the console in to next "cin" and does …

Member Avatar for ingvarorn
0
133
Member Avatar for ingvarorn

Hi, I'm pretty new to C++ and basically pretty new to all programming at all, have done something in java in school but never been programming something else than some scripts in work until now. My problem now is when I try to compile this code I have here then …

Member Avatar for mustafaneguib
0
197
Member Avatar for dallas81

Hi all I am new to this forum and I am having problem using the sort algortihm. My code is suppose to allow the user to enter in fractions and then sort what is entered into the array. The fraction class is only contains the public field numerator and denominator. …

0
60
Member Avatar for bhoot_jb

i am currently learning VC++ with MFC. But i am quite confused now. My dilemma is whether to use structures (which i guess are used extensively at Win32 API level) or their equivalent MFC objects. let me elaborate it. For example i want an array of points to use it …

Member Avatar for bhoot_jb
0
164
Member Avatar for nizbit

I wrote a function that compares the characters of two strings recursively. If the characters of the strings are all equal the function returns 0. If the character from string1 is smaller ie-"a" to "l" it returns the negative difference of their ASCII vaules. If the character from string2 is …

Member Avatar for ArkM
0
133
Member Avatar for bhoot_jb

i am a beginner in MFC programming and using MS VC++ 6.0. I am trying to create my own window using AfxRegisterWndClass(). My code is as follows : [CODE]Frame::Frame() { LPCTSTR className; HBRUSH brush; brush = (HBRUSH) ::GetStockObject (BLACK_BRUSH); className = ::AfxRegisterWndClass (WS_OVERLAPPEDWINDOW, AfxGetApp()->LoadStandardCursor (IDC_CROSS), brush, AfxGetApp()->LoadStandardIcon (IDI_ERROR)); Create (className, …

Member Avatar for bhoot_jb
0
171
Member Avatar for Bigboy06

hi; i need to count d number of occurrences of all the chars in a file. i can't figure out how to count how many of each char there are. this wat i have up to now. i need the to print only the ASCII code from 0-127 [code=cplusplus] #include …

Member Avatar for ArkM
0
102
Member Avatar for thetpaing
Member Avatar for thetpaing
0
75
Member Avatar for JONZ

Can anyone help me make an inventory program in c++??,.My task is to create an inventory program that reads from a file and then allows the user to manipulate the data and overwrite the file. I'm a total beginner when it comes to c++ so please use simple codes!

Member Avatar for JONZ
0
114

The End.