49,757 Topics

Member Avatar for
Member Avatar for Q8iEnG

Hi :) I have a question, if you don't mind =] (What is the situation where quadratic probing is better than chaining?) I guess (as I'm thinking) while searching? maybe? because if the Hashtable have a lot of elements in chaining it'll take a lot of time searching the Hashtable …

Member Avatar for Q8iEnG
0
115
Member Avatar for faisaly

Dear All, Write the pseudo code for inserting a node in threaded binary tree. You code should describe how you will, 1. Set right and left child node pointers during insertion 2. Set right and left flags during insertion. Kindly guide me .

Member Avatar for Alex Edwards
0
280
Member Avatar for jack1234

I have seen SubclassDlgItem() at [url]http://functionx.com/visualc/controls/bmpbtn.htm[/url] It mentioned "The suggestion is to "subclass" your button class so the messages sent to the bitmap button would be applied effectively." I am not very clear with this statement...thus I go and find msdn [url]http://msdn.microsoft.com/en-us/library/0wx11zk9(VS.80).aspx[/url] but still not very clear. My question is …

0
78
Member Avatar for Misterguitar

Alright, the code im working on looks like this: [code] ... cin >> x; cout << ":"; cin >> y; ... [/code] and everything works fine, however when the user presses enter, it starts a new line, which ends up making everything looks wierd. Is there any way so that …

Member Avatar for Misterguitar
0
76
Member Avatar for sambafriends

Hi, guys I need good program in procedural programming language which shows there is no importance to the data It should explain the exact drawback of the procedural programming language

Member Avatar for CoolGamer48
0
139
Member Avatar for stewie griffin

Hi… I want to use graphics and I don’t know how. All want is few lines…

Member Avatar for stewie griffin
0
156
Member Avatar for jack1234

I have seen a lot of type LPSTR(and other like LPCSTR, etc) when coding using MFC. I just know it is equivalent to char*, but what LPSTR exactly is? (ie, is it a native type in C++, or a macro in C++, or a typedef in C++, or...)

Member Avatar for CoolGamer48
0
125
Member Avatar for amit1701

Hi, probably a stupid question, but I haven't been able to find anything. Is there a istream related function that let me read exactly one keystroke from the keyboard through cin? What I need it to do is this: - remove all characters currently in the input buffer - block …

Member Avatar for iamthwee
0
154
Member Avatar for justinclev

well i wanted to see if i could make a secruity program i got it set up but i wanted to make it restart the computer if the wrong passwords entered im using dev C++ please can you help

Member Avatar for Duoas
0
103
Member Avatar for originaldaemon

I am trying to create a simple database. Here is the code: [code=C++] #include <iostream> #include <fstream> #include "conio.h" #include <string> using namespace std; struct Station{ string url; string name; string genre; }temp; char userInput; string output; int fileSize; string searchParameter; int index; int results[1000]; int j;//temporary storage for a …

Member Avatar for Salem
0
95
Member Avatar for omarelmasry

I am making a c++ program and i need a function that does the following: IF u have an n (e.g: 4) digit number (IN THE FORM OF AN ARRAY) , each digit can take the vlaue from 0 to m (e.g: 5) and can exist more than once in …

Member Avatar for Alex Edwards
0
147
Member Avatar for SonxQ7

I get this error in the following code [code] //Error... error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'int' (or there is no acceptable conversion) void Menu::readDates(istream& in, Date& dates) { in >> dates.getDay() >> dates.getMonth() >> dates.getYear(); } [/code] Thought '>>' can …

Member Avatar for CoolGamer48
0
115
Member Avatar for guy40az

I am using Visual C++ version 6. I need to know how to add a .lib file to a project. I want to add it as a static lib file.

Member Avatar for guy40az
0
129
Member Avatar for gangsta gama

Hello I am new at c++ and I was wondering, how would I write variables to a file so I can open them later on. I was wondering this because I was going to make a text based game to start out with, in c++. Also I was wondering how …

Member Avatar for gangsta gama
0
173
Member Avatar for Nemoticchigga

In vs2005 there is a winsock component, how do you receive data using the component? I found a ->SendData(blah), but cant find a receive. Does anyone know how to receive with this component? Thanks.

0
53
Member Avatar for Q8iEnG

Hi my friends, how do you do? I hope everything is alright.. :) Please may I have a few mins. from your time? It'll be much more appreciated :) I have this question (Write a member function to check whether two singly linked lists have the same contents.) anyone can …

Member Avatar for Q8iEnG
0
136
Member Avatar for camproject

I have two dialogs as I told before.there is a combo box in the first dialog.i have a text box in the second dialog.when i click a button, i get the second dialog in which the text box is present.i get the data in the text box in the combo …

Member Avatar for mitrmkar
0
117
Member Avatar for SonxQ7

Hi friends, trying to pass an ifstream to a function expecting an ostream...Should this be a problem? [code] ifstream fleetin; fleetin.open (filename); read(fleetin); //Error.... : cannot convert parameter 1 from 'std::ifstream' to 'std::ostream &' [/code] My parameter is declared as ostream&, or maybe i should just remove the '&', but …

Member Avatar for Ancient Dragon
0
82
Member Avatar for sangham

friends, i am new to c++ here is my prob. how can i map a string to an object of particular class.?? eg. mapping "abc" to obj of class PQR

Member Avatar for ArkM
0
58
Member Avatar for TheBeast32

Hi, I have bought [U]Programming Windows Fifth Edition[/U] by Charles Petzold. I was wondering if there are any differences between the Win32 API talked about in this book and the one that applies to Vista or anything newer than Windows 2000. Also, my book didn't come with the CD (I …

Member Avatar for TheBeast32
0
84
Member Avatar for TheBeast32

Hi, I have been making a macro building program. I am trying to handle mouse events right now. I have made a program that hooks the mouse, then puts information into a text file which is then read by another program. The recorder writes the delay in milliseconds, so the …

Member Avatar for TheBeast32
0
337
Member Avatar for justinclev

im sorry to bother you but i wanted to know BUT I AM USEING DEV C++ I WANT TO SEE HOW TO ADD A BACKGROUND TO A PROGRAM IS THERE ANY WAY YOU COULD HELP ME THANK YOU

Member Avatar for CoolGamer48
0
145
Member Avatar for Shadoninja

Could someone write an example program that opens up firefox? I would really like to see the syntax to do that. Thanks

Member Avatar for mengqing
0
114
Member Avatar for Code Shark

Hello, I read in a thread that you could use [CODE=C++]system("start http://www.daniweb.com/");[/CODE] to get the page [URL="http://www.daniweb.com"]Daniweb[/URL] but I am wanting to write a program that the user can enter a website that he wishes to go to then the program takes the user there. I got this so far …

Member Avatar for Ancient Dragon
0
185
Member Avatar for Alex Edwards

I'd like an opinion, although it will probably be biased since I'm asking the members of the C++ forum and not the members of Java. I'd also like to apologize in advance if this topic has been done before, but I don't like bumping old topics from years ago. I …

Member Avatar for sciwizeh
0
282
Member Avatar for anuizath2007

does anyone know what the error is?????.......... [code=cpp] #include<iostream.h> #include<conio.h> #include<math.h> void main() { void mtable(int ,int); int num,n,prod; cout<<"\n\n\tEnter the no"; cin>>num; mtable(num,n) ; cout<<"\n\n\tEnter the limit"; cin>>n; cout<<"\n After one call "; mtable(5,10); mtable(7,10); getch(); } void mtable(int num,int n) int prod=1; for(int i=0;i<=n;i++) { prod=num*i; cout<<"\n"<<num<<" * …

Member Avatar for anuizath2007
0
94
Member Avatar for n.aggel

hi, i have the following structure in the "simple application": application_folder | |--makefile | +-headers | | | +----func.h | | +src | | | +------ func.c | +------ main.c | | and here are the contents of the files: *func.h [code=c] float hey(float a, float b); [/code] *func.c [code=c] …

Member Avatar for n.aggel
0
161
Member Avatar for Niner710

Hi, I was wondering if anyone knew of a good 5 day C++ class in the bay area or southern california. My company is looking to send a few of us to a week long training. The only one that I found was Hands on Training. Anyone know if this …

Member Avatar for Salem
0
296
Member Avatar for mikesharp

Sorry if this is an obvious one, I have searched but cant finds any answers :) Im trying to create the simplest little exe file that when clicked on runs a htm page in the same directory... so im using... [CODE] int main(int argc, char *argv[]) { system("start iexplore.exe %0\..\the_index.htm"); …

Member Avatar for mikesharp
0
388
Member Avatar for jack1234

Consider the following two cases: CCandyBox obj; str will be pointing to "Candy" May I know "Candy" is on heap or stack? If it is on heap, is the delete[] str; //delete the Candy to avoid memory leak line below necessary? [code]CCandyBox(char* str = "Candy") // Constructor { if (str …

Member Avatar for ArkM
0
193

The End.