49,761 Topics
| |
vector<string> div; div.pushback("a"); div.pushback("b"); div.pushback("c"); for(int i= 0; i < div.size(); i++) { cout << "Letters: " << div[i] << endl; } cin.get(); Output: Letters: a Letters: a, b Letters: a, b, c I would like the output like this: Letters: a Letters: b Letters: c Thanks for your help … | |
hello , well i have to deliver a program that demonstraits classes and inheritance , but i don't have any ideas | |
Hello there! I'm currently doing some VC++ programming. I'm using MFC programming and DLL which is explicitly linked. I have placed my initialization and the usage of GetProcAdress inside my "buttonClicked" function. When a button is clicked, the function in the DLL should be called. [CODE] void CSample::buttonClicked(){ if(hLib){ pSampleFunc … | |
Can somebody help me with the CRC (Cyclic Redundancy Code) algorithm implementation given below: There is a three byte packet header. <--------1st byte-----><--------2nd byte-----><--------3rd byte-------------> --------------------------------------------------------------------------------------------- | 8bits | 8bits | 3 bits| 5 bits (CRC ) | --------------------------------------------------------------------------------------------- for example: 0D 0B 40 ---> Input Data stream ( 19 … | |
Hi, I am trying to use IRowsetFastLoad to insert multiple columns to a permanent SQL Server table.. The problem is, that the InsertRow returns an E_FAIL, which is a provider specific error. I am staging the column Data as follows into the memory buffer: (with Appropriate offsets for the bindings … | |
Hello there. I'm a bit new to creating DLL's. I've been learning a bit and I have created my own (finally). Well, my goal is to load my DLL to an application in VC++ and VB. I have successfully loaded my DLL in VB but having some trouble in VC++. … | |
I have an arbitary vector where I have to try all combinations (sum up different combinations) of elements within the vector. I want to use recursion for this but I have trouble in coding that. I have tried something similar but with a fixed vector size, using for loops. But … | |
Hi All, I want to play MP3 files in my C++ program. I am using MSVC++. I have already found libmpg123 but it seems to be written for Linux and I could not use it in windows. I appreciate if anybody can help me with finding some MP3 decoder/player library … | |
Below are the two lines code. Plz give a detailed explanation of these two lines while (cin.get() != '\n') continue; | |
hey all, i'm a newbie to C++ programming and i'm having some difficulties implementing this singly linked list. what it has to do is accept: nickname email address number of kills and store them in a node of the linked list in order according to number of kills. here's what … | |
Hi, I was wondering how to use TAPI in C++ to communicate with my modem. How would I accomplish this? I'm not using Visual C++. I'm using dev-c++ 4.9.9.2. | |
I have variables a, b, c = 1, 2, 3. I would like to make it a string abc. [code] int a = 1; int b = 2; int c = 3; string abc = ""; abc = a + "" + b + "" + c ; count << … | |
Hi, whenever I compile [B]any[/B] sample code for DirectX, I get this error: [Linker error] undefined reference to `D3DXCreateFontA@48'. I'm using Dev-C++ 4.9.9.2, I'm linking it with: libd3d9.a libd3dx9d.a libdinput.a libdinput8.a libdxguid.a I don't know why this is happening. Please help.:twisted: | |
Hi ! I m a new guy in software development. Recently i m assigned wit a job where i got to modify a C++ project built in Visual studio 6 to work in visual studio 2008! any one got any advise where should i start frm? | |
I believe indefinite arguments can be defined with '...', but then how do you access them? For instance for the following function: [CODE]int test(int n, ...){ return n; }[/CODE] | |
Hello guys. This is my first post on the site and I think I'll like it here very much. :) I already have the site set as my home page. So here is my dilemma. The program is supposed to do some pretty basic comparisons of two numbers typed in … | |
Hello everyone, I need help with a program I'm busy working on. I've created a test application, and I need it to move one pictureBox control (pictureBox1) to move to a random location (either 70,233 or 204,146 or 46,46) each time a button (button1) is clicked. Take note again that … | |
i have two classes. One is room and the other is container.[B]Room is the class which you write, container is a 3rd party class, you can't change the class definition of container.[/B] in the constructor of container, large amount of memory is allocated. In the ctor of room, a small … | |
Hi I'm doing a statistical mcmc model where I need some random numbers. I decided to use the ranrot-w generator. The random number only works when I call the randomnumber method directly, and not when i give the random number as an parameter to another function. that is rg.Random() !=random(rg) … | |
I want to make a real time 3d aquarium. procedural animation. What compiler should i use? hopefully not to expensive. Dev C++ is free but don't know if i need more than that. i was thinkin about visual c++ What about service packs that i read about i don't want … | |
I'm fairly new to the C++ world (did some C work in the past years ago) so I'm a little rusty on some things :) I've got a small table in a database and I'm trying to grab some date information out of a UNIX EPOCH time stamp (all seconds). … | |
I did some quick searches of google and daniweb, but i cannot find anything on how i can do this. instead of a long and probably misunderstood explanation i have this: [img]http://matrixpeckham.googlepages.com/sandscreens.jpg/sandscreens-large.jpg[/img] short explanation: is a falling sand game. list at right can change whenever a new text file is … | |
Could anyone help me with the following: Consider the microwave oven in your kitchen, using the object-oriented thinking described above. Create a table with the following four column headings: Top-Level Objects Communicates With Incoming Messages Outgoing Messages. Identity the top-level objects of the microwave. Explain some of the graphical user … | |
I heard something which firstly .NET converts all codes to MSIL language and then create .exe. If that is true, I wonder that does .NET convert C++ codes to MSIL language. Also can anybody explain me the differance between Visual C++ and Visual C++.NET? Thanks | |
i hav thiught a lot about the problem but at the end i was not even able to mave an inch forword .the problem is: we hav to develop a program that make user input a series and then will calculate the misiong term. ex: 1>4,6,9, ,14,16,19,... then the answer … | |
[COLOR="red"]can anyone help me plz ,,plz with my project which is[/COLOR] Project Title: Simple Flight Seating Arrangement Program. Description: The seating arrangement of a flight is stored in a data file flight.txt containing five lines. Each line contains four integers, a value of 1 represents a reserved seat, and a … | |
Is there a system command that I can use with system("x") to expand the prompt the program is in? Or any other way of doing it, for that matter, I just need to get it to be the size it would be if I told the computer to maximize it, … | |
Hi all, I have a program done in BCB6 (windows xp) which I need to port over to Linux. The program was originally done by someone else and there are alot of vcl components so rewritting is not possible. Borland used to provide Kylix toolkit that supposedly could compile program … | |
Greetings i need to know how to change values of specific memory addresses in c++. so far i have been using a utility for this job (cheatengine) but thought if i do this in c++ i might actually learn soemthing :-) say the process name is: "bobdole.exe" memory address: "04A96990" … | |
Hi anyone. Please help with this seperate compilation. Many thanks ! ================================== //pointerDataClass ;Header file [code=cplusplus] class pointerDataClass { public: void print() const; //Function to output the value of x and //the value of the array p. void setData(); //Function to input data into x and //into the array p. … |
The End.