49,761 Topics

Member Avatar for
Member Avatar for OmniX

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 …

Member Avatar for iamthwee
0
115
Member Avatar for amrhesham9

hello , well i have to deliver a program that demonstraits classes and inheritance , but i don't have any ideas

Member Avatar for Ancient Dragon
0
3K
Member Avatar for murderotica

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 …

Member Avatar for murderotica
0
153
Member Avatar for mfareed

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 …

0
53
Member Avatar for Kraken12

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 …

0
55
Member Avatar for murderotica

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

Member Avatar for murderotica
0
105
Member Avatar for tspj20

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 …

Member Avatar for ArkM
0
119
Member Avatar for peyman_k

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 …

Member Avatar for zcindori
0
239
Member Avatar for zahidullah

Below are the two lines code. Plz give a detailed explanation of these two lines while (cin.get() != '\n') continue;

Member Avatar for ArkM
0
112
Member Avatar for paynekiller

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 …

Member Avatar for findsyntax
1
116
Member Avatar for TheBeast32

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.

Member Avatar for Salem
0
422
Member Avatar for OmniX

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

Member Avatar for OmniX
0
163
Member Avatar for TheBeast32

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:

Member Avatar for TheBeast32
0
60
Member Avatar for nizam_khan

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?

Member Avatar for nizam_khan
0
136
Member Avatar for Kadence

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]

Member Avatar for Kadence
0
279
Member Avatar for papuccino1

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 …

Member Avatar for sparty
0
165
Member Avatar for Wiki_Tiki

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 …

Member Avatar for Wiki_Tiki
0
220
Member Avatar for kneiel

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 …

0
46
Member Avatar for monkey_king

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

Member Avatar for monkey_king
0
152
Member Avatar for BattlingMaxo

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 …

Member Avatar for msk88
0
136
Member Avatar for xcesmess

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

Member Avatar for Ancient Dragon
1
108
Member Avatar for sciwizeh

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 …

Member Avatar for sciwizeh
0
170
Member Avatar for sbbs05

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 …

Member Avatar for jencas
0
146
Member Avatar for noktasizvirgul

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

Member Avatar for Ancient Dragon
0
140
Member Avatar for abhigame

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 …

Member Avatar for papuccino1
0
121
Member Avatar for mimo77

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

Member Avatar for papuccino1
-1
196
Member Avatar for Falkoner1

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

Member Avatar for Falkoner1
0
173
Member Avatar for nu2cpp

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 …

Member Avatar for John A
0
110
Member Avatar for astropirit

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

Member Avatar for William Hemsworth
0
101
Member Avatar for Reg74

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

Member Avatar for henpecked1
0
205

The End.