51,593 Topics

Member Avatar for
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
242
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
116
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
121
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
432
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
169
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
65
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
138
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
282
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
169
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
225
Member Avatar for sanbal

I developed c# windows application and included a windows installer, after building the project , i am having a msi file. All the clients will install it to execute our product. We added a new dll and we give it to client through auto update. Now the dll will be …

Member Avatar for dickersonka
0
178
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
47
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
156
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
140
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
111
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
172
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
150
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
145
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
125
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
197
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
176
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
111
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
103
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
209
Member Avatar for abhigame
Member Avatar for farag

When define an template linked list inside an in order linked list I can't access the nodes of the internal template linked list by first and next functions Or in other words the template class can't be passing by reference??? :-O

Member Avatar for Ancient Dragon
0
80
Member Avatar for bomtk

Hi everyone, i have a problem with constructing a big matrix from small matrices. could you please help me figure out? my problem is: i now have 200 matrices (1000 x 5) => i now want to build them in a big matrix (1000x1000 =(5 x 200)) just store the …

Member Avatar for ArkM
0
122
Member Avatar for alex03

hello, i am trying to make a program to calculate round trip time.I know ping command can be used for this purpose but i don't know how to use this ping functionality in my c code.so can anyone help me?

0
58
Member Avatar for BattlingMaxo

I am a beginner to C++ and DirectX I tried learning on my own a few years ago but had to stop ( personal reasons) Now i would like to start again. I like graphics a lot. i wanted to program a 3d aquarium like Dream aquarium (check it out …

Member Avatar for sciwizeh
0
91
Member Avatar for c#loser

i learn the basic c++ , i would like to learn how to create a gui program, where can i find some sourse to learn ? and the static , i dun understand it mean , can any one help

Member Avatar for c#loser
0
80
Member Avatar for gispe

hi ppl, i just starte a new program, but now im having a lot of error wich "i think i wrote the code well", but cant understand what they mean... here i pass the code... [code=cplusplus] #include "stdafx.h" #include <iostream> #define ingresos_totales 5; using namespace std; int main(int argc, char* …

Member Avatar for gispe
0
265
Member Avatar for MattEvans

I have a few ( slightly related ) questions about binary i/o in C++, I can't seem to find full answers to these anywhere.. - Is there any way to tell if an i/ostream passed to a function has been opened in binary or text mode? - If not, are …

Member Avatar for MattEvans
0
192
Member Avatar for bomtk

Hi everyone, I got problem with coding of matrix-matrix multi plication; Please help me to figure out this my problem is: Having a matrix, U2[k][i][j], with dimension of 9081x84 and other matrix, U[m][i][j], with dimension of 9081x4 i now want to multiply transpose of A with B, following is my …

Member Avatar for iamthwee
0
69
Member Avatar for mksakeesh

#include<fstream.h> #include<iostream.h> #include<string.h> using namespace std; class emp { public: char *per; int i; int write2() { ofstream out("ss.txt",ios::app | ios::binary ); cout<<"Enter some character ....\n"; per = new char[100]; cin.getline(per,100,'\n') out.write("\n",1); out.write(per,strlen(per)); out<< "\n"; per = "asdfgh"; out.write(per,strlen(per)); out.write((char *)&i,5); out.write(per,strlen(per)); return 0; } int read_2() { char * …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for DigitalPackrat

I recently started coding in Linux and was using Dev C++ in Windows. I use geany as my IDE. Its simple and lightweight. I was wondering about tags after seeing a lot about ctags and stuffs. How can I add support for variable and function auto completion in geany. I …

Member Avatar for DigitalPackrat
0
161
Member Avatar for NoGood123

Ok I am new to C++ and I am having a hard time trying to figure out how to Sort the array I have created. I dont know if I am on the wrong track or if I am on the right track. Someone PLEASE help!! I have to sort …

Member Avatar for ArkM
0
332
Member Avatar for WilliamBaxter

Hey all names william I am in my first year uni - doin bachelor of computin and hence dont no much bout programming I have to submit this assingment tomorow and am confused as to what I am supposed to be doin I would appriciate any elp from any1 I …

Member Avatar for Arpy Giri
0
241
Member Avatar for RayvenHawk

I have an assignment that asks to create a program to input students names & test scores. After which the user gets the option to calculate the average and print out which students were below, and/or print out the highest score and which students had that score. Since the total …

Member Avatar for Undertech
0
136
Member Avatar for daviddoria

I have been using vector in c++ lately, but I needed to speed up my code a bit so someone recommended I use regular arrays. My question is 2 part - 1) I thought you couldn't do this!!?? For some reason it is working with no problem? [code] int a=2; …

Member Avatar for ArkM
0
150
Member Avatar for Lukezzz

I have Copied some Forms codeView into a new project and now I try to open a Form with this code but when doing this I will have a message like below. On the left side of the designView, I can see all forms that I have in my project …

0
90
Member Avatar for TKSS

Hey all, Just a quick C++ question from me...I'm sure this is info that is available on the web somewhere but a couple of searches weren't very fruitful. Would it be possible for someone to provide an example of the following? [list] [*]Calling/opening and executing a batch file from within …

Member Avatar for Salem
0
234
Member Avatar for Lukezzz

If I have 2 Forms in my application and Form1 is my startingForm. Is it possible to make Form2 as my startingForm instead. What indicates in the code that Form1 is my startingForm. Is this possible to do ?

Member Avatar for Lukezzz
0
119
Member Avatar for Alex Edwards

Hello I'm reading through Scott Meyer's book Effective C++, third Edition. I'm having an issue understanding Page 14, Item 2, paragraph 4. The below is a snippet of code with an explanation quoted from his book-- [code=c++] // Author: Scott Meyers class GamePlayer{ private: static const int NumTurns = 5; …

Member Avatar for vijayan121
0
1K
Member Avatar for Alex Edwards

I'm enjoying the book Effective C++. It has highlighted things that I've looked over, never heard of, or never even though of before! However, even with this book my understanding of C++ still doesn't seem to be solid. For some time now I've been curious about how binary data is …

Member Avatar for Alex Edwards
0
162
Member Avatar for Rawfel

I'm working on some C++ excercies in my book and now I'm supposed to write a program that converats a number of seconds into days, hours, minutes and seconds with the help of arithmetic operators and integer and float variables. Nothing to fancy that is. It ended up looking something …

Member Avatar for Ancient Dragon
0
176
Member Avatar for Risame

Hi everyone, I'm new and hope someone can help with my problem. First of all English is not my first languaje so I hope you all can be a little patient with my writing :icon_cheesygrin: Here's the thing. I'm new to C++, and I'm using Borland 3.1 (this is the …

Member Avatar for Radical Edward
0
253
Member Avatar for ichigoSJ

Hi im trying to make a maths program and im having trouble with one of my sections where im currently just using '+' incorporated in to a do while loop until the score = 10 though i'm stuck on how to make it randomly change the question between + or …

Member Avatar for Radical Edward
0
116
Member Avatar for nasnoma

I want someone to help me write a program to read the integer elements of two arrays A and B of different size from the user. And use link list to save this elements instead of arrays. And then do the following to the link lists given: 1. Sort link …

Member Avatar for Ancient Dragon
0
112
Member Avatar for FTProtocol

Main.cpp [code=cpp] #include <stdio.h> #include "CServer.cpp" class EventReceiver: public CServer { void OnClientReceive(CServer* SVR) { char* Packet = SVR->GetReceivedBuffer(); int packetsize = SVR->GetReceivedSize(); PCLIENT_HANDLE clientthatsent = SVR->GetLatestReadClient(); printf("\n Packet Recieved - %s", Packet); CLIENT_LIST_LOOP(SVR) if(CUR_CLIENT_SOCKETID != clientthatsent->sSocketId) { SVR->SendPacketToClient(Packet,packetsize,CUR_CLIENT); Sleep(250); } CLIENT_LIST_END_LOOP(SVR); } void OnClientConnection(CServer* SVR) { PCLIENT_HANDLE ConnectedClient = …

Member Avatar for mahlerfive
0
117
Member Avatar for FTProtocol

Im looking for a way to "ping" an ip and if it replies back then its "on" so it returns true else it returns false. If anyone can either show me a way to do this or point me in the right direction i would appreciate it.

Member Avatar for FTProtocol
0
90

The End.