49,757 Topics
| |
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 … | |
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 . | |
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 … | |
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 … | |
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 | |
Hi… I want to use graphics and I don’t know how. All want is few lines… | |
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...) | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 | |
Could someone write an example program that opens up firefox? I would really like to see the syntax to do that. Thanks | |
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 … | |
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 … | |
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<<" * … | |
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] … | |
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 … | |
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"); … | |
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 … |
The End.