51,593 Topics

Member Avatar for
Member Avatar for GreenDay2001

Suppose I have created a class [B]new [/B]with arguments.I have declared this as object [B]new1[/B] in the main. [I]new new1(arguments)[/I]. Now what should i do if i want to change the values of [I]new1 [/I]object's arguments.

Member Avatar for GreenDay2001
0
90
Member Avatar for blairwitch

I would require a visualisation to respond to the music being played on the media player as well as the microphone input simultaneously using media player SDK and c++. In other words, the visualisation would need some way of differentiating between the sound coming from the microphone and the sound …

Member Avatar for Salem
0
72
Member Avatar for lavicool

Hi all, I just joined the post. Iam new to C programming. I have a question regarding a problem i found in some book. The problem is i have a input file with student ID, 5 program scores, midterm and final score. i have to check for wrong input of …

Member Avatar for lavicool
0
122
Member Avatar for peter brown

One large chemical company pays its salespeople on a commision basis. The sales people receive $200 per week plus 9 percent of their gross sales for the week. For example a sells person who sells $5000 worth of chemicals in a week receive $200 plus 9 percent of $5000, or …

Member Avatar for ~s.o.s~
2
1K
Member Avatar for gampalu

Does anyone know where to download the library from LAPACk to run under C++?

Member Avatar for ~s.o.s~
0
82
Member Avatar for confused!

Hello! I am a student taking an intro to programming class and I am completely LOST. The assignment is to write a program that simulates an adding machine. I have been working on this for 3 hours and so far I have only been able to get the first line …

Member Avatar for ~s.o.s~
0
297
Member Avatar for jack19

hi jack here,i want to which are the best websites who could offer me clear and total info and tutorials on c++ and c programming..

Member Avatar for happygeek
0
97
Member Avatar for balekic

Hello all, I am a noob to C++ and would appreciate any help that I can get. I am taking a beginner's course and got this assignment: I have to take a users input (i.e. a sentence) and capitalize the first letter of the sentence and make sure each letter …

Member Avatar for balekic
0
84
Member Avatar for super_rookie

i have this code to be written in C. i was to make an atm with a unique pin no. required. my prof gave me a copy of the program in c++ and asked me to "convert" it in C. how do you do that? there are so many seperate …

Member Avatar for Ancient Dragon
0
99
Member Avatar for Eadams20

Here is my problem I am trying to write a program that will estimate the number of boxes of tile needed for a job. A job is estimated by taking the dimensions of each room in feet and inches and converting these into a multiple of the tile size (rounding …

Member Avatar for Eadams20
0
279
Member Avatar for edek

Basicly I need to know how to refer to declared external static variables (GlobalMirror, GlobalMirror2 etc.) inside the class 'Initializer' and initialize them. The following code doesnt work (compiler doesnt see my 'extern' declarations inside the class Initializer): [code] #ifndef INITIALIZER_H #define INITIALIZER_H #include "Mirror.h" #include <iostream> extern Mirror GlobalMirror; …

Member Avatar for edek
0
98
Member Avatar for peerusman

hi every one :rolleyes: i m new in C++. and i am stuck in the programe please any body tell me what is the code of this pyramid of number. The pyramid should look like this: [IMG]http://www.daniweb.com/techtalkforums/attachment.php?attachmentid=2433&stc=1&d=1160907855[/IMG] [URL="file:///D:/Documents%20and%20Settings/Salman/My%20Documents/UserImages.bmp"] [/URL]

Member Avatar for peerusman
0
310
Member Avatar for Glorioso

Hey, I'm newish to the forum( never posted before ) but anyway. I'm thinking of writing a disassembler for z80 or a similar architecture in ally C and was wondering if anyone can give me some tips or places to get started, I've never actually wrote a disassembler before either …

Member Avatar for Ancient Dragon
0
338
Member Avatar for Matt Tacular

I want to make a program that can do two things really: 1) Detect the beat of a song 2) Output through a port, preferably the paralell port. 1) I was thinking the easiest way to do this, would be to use windows media players bars visualization, but then i …

Member Avatar for vegaseat
0
128
Member Avatar for ashokkumarreddy

Hi i have one serial cable connected to one computer and other terminal to another under linux environment. how can i transmit message from one system to another using serial cable between them. if u have any program u can help me. Regards, Ashok

Member Avatar for ~s.o.s~
0
80
Member Avatar for joey z

Hi yall, Absolute C++ newbie here. I would like to know how to prompt a user to enter yes or no, and then display a different msg depending on whether y or n was pressed. I am trying to set char y=1 or true and char n=0 or false. But …

Member Avatar for ~s.o.s~
0
173
Member Avatar for NKerb

Hi all, I'm having some problems with passing execv arguments. The following code appears to work fine, until theres between 4 and 8 arguments in the vector.... I can't see what's wrong.... have I missed something really obvious? P.S. also any suggestions as to the general level of coding would …

0
72
Member Avatar for theUnNown1

Hi peoples, Can someone tell me how I can play an avi file using C++ and VS2005? I'm designing a C++ Windows Forms Application project. Thanks in advance.

Member Avatar for bumsfeld
0
88
Member Avatar for matrimforever

We are discussing passing parameters by value and by reference in class and I need to come up with a function 'computeChange' from the following code: [code] // The function prototype int computeChange(int& changeValue, int coinValue); // some constants const int COINS[ ] = {50, 25, 10, 5, 1}; const …

Member Avatar for ~s.o.s~
0
170
Member Avatar for kararu

HI all, In my c++ program, I did the following. [code]...... class thr {private: char *d; ...... public: d =new char[35]; .... } destructor has the line delete [ ]d; i get segmentation error *** glibc detected *** /usr/bin/perl: free(): invalid next size (normal): 0x0000 000001bc7120 *** [/code] But if …

Member Avatar for kararu
0
252
Member Avatar for petzoldt01

Hello, I am kinda getting into MAME arcades and what not, and My questions is related to that. I have found many front-ends for mame that run on window and linux. There are many great ones, but none of them have one particular feature I am looking for. The feature …

Member Avatar for Ancient Dragon
0
137
Member Avatar for Joncamp

In Visual C++ you can create a 64 bit int like this... long long int xyz; But in Linux with GNU C++ you can't seem to do it. I need to manage files larger then 9 gigs, how can you get fstream to use file position seek pointers that large, …

0
70
Member Avatar for Iqbal_h_a

[code] #include<iostream> using namespace std; class test { public: void display() const { cout<<"Hai Here in class"<<endl; } }; int main() { const test b; b.display(); } [/code] When I execute the above code I got an error saying "uninitialized const b". But if I provide a default constructor it …

Member Avatar for Iqbal_h_a
0
176
Member Avatar for maxinetyl

Hello. I have a question regarding using the 'system' command in C++. Using that command, i.e. system("myfile1.exe"), the command window appears. Is there a way of preventing the command window from appearing? Or is there any other way to do this using a different command? ( I do not want …

Member Avatar for maxinetyl
0
118
Member Avatar for jakestr15

Hey everyone, I'm trying to write a simple program that allows the user to input and Amount, Yearly Interest Rate, and a Final Amount. The program is to compute how long the money should be invested to end up with the Final Amount if it is compounded monthly. I'm just …

Member Avatar for Infarction
0
90
Member Avatar for dev.cplusplus

Hi, we have the following problem: We have a code that uses the "GetTickCount" method (the return value is the number of milliseconds that have elapsed since the system was started). The Problem: Since GetTickCount returns only a 32-bit number, after about 49 days, the counter wraps. The solution we …

Member Avatar for ~s.o.s~
0
248
Member Avatar for kararu

Hi, I am doin a multithreading program in c++. ...... class thr {...... public: d =new char[35]; ...... void start(){...start thread by calling function run..} void run(){...} int joining(){..join all threads} ~thr(){delete []d;} }; In the program I am creating all threads,calling start on all thread objects and then calling …

Member Avatar for Salem
0
108
Member Avatar for slacke

Hello I'm working on an application. I need as big arrays as possible. At home I work with linux there I can declare array as big as this: char buffer[1000000]. No probleme. In work I'm working with boreland C++ 4.5 (WinXp) and I can't declare biger size of array as …

Member Avatar for ~s.o.s~
0
235
Member Avatar for hazdude

can anyone help me with some c++ coding? I want to create a piece of code that would allow me to type in any random 30 numbers and for them to come out in ascending order. Any help would be greatly appreciated Hazdude

Member Avatar for rowly
0
91
Member Avatar for DmD

So I'm working on a program where you fill in some textboxes and press a button to generate a .txt file with the texts in it... I'm working in Visual Studio Express (C++) The only thing i have so far is: [code] [COLOR=#0000ff]private[/COLOR][COLOR=#000000]: System::Void btnAdd_Click(System::Object^ sender, [/COLOR][COLOR=#000000]System::EventArgs^ e)[/COLOR] [COLOR=#000000]{[/COLOR] [COLOR=#0000ff]char[/COLOR][COLOR=#000000] …

Member Avatar for Nick Evan
0
1K
Member Avatar for Ranukano

Write a function IsOTriangle() that takes a size parameter and displays an isosceles triangle with that many lines. I have to have it with a main(), IsoTriangle(), and Spaces() Spaces() to display the leading spaces before the start of the asteriks. Normally functions and calculations don't bug me to much, …

Member Avatar for Nick Evan
0
229
Member Avatar for dmegee

I'm having problems with my program. here's what i need it to do... [LIST] [*][COLOR=#000000]Prompt the user for the name of the master file, and input it[/COLOR] [*][COLOR=#000000]Open the master file and read the names into an array (using the readNames function)[/COLOR] [*][COLOR=#000000]Print each name in the array to the …

Member Avatar for Ancient Dragon
0
98
Member Avatar for l2u

Hello.. Im working on my c++ application, and I have string (user input) where I would have to replace some variables/substrings in it.. For example lets say user give input: string str "this is test $some_variable some more text $random(1-5) $random(1-9)"; My program has a vector <string> of variables that …

Member Avatar for iamthwee
0
101
Member Avatar for F.T.L.O.T.G

I know a lot of students get on here and post threds trying to get others to do their homework, but i truly need help! I am looking for someone who is willing to tutor me by Im, e-mail, phone or anything. I have a coke machine project due next …

Member Avatar for Salem
0
235
Member Avatar for depsch

How do I call a function without actually sending any values for its arguments? For example I have the function [code] int Test ( int a, int b) { b= a * a ; } [/code] then I call this function from some place in the program, [code]Test (??,??);[/code] What …

Member Avatar for Ancient Dragon
0
61
Member Avatar for LegerdemaiN

How can I get a program to find and extract an email adress from a line and replaces the @ sign with 'AT'? I just started learning c++ and have run into a wall. I can get my screen to display everyhing from the @ sign to the end of …

Member Avatar for LegerdemaiN
0
91
Member Avatar for jippijey

hey, I'm setting up an irc-bot. this bot is connected to a 42" plasma and shud print text on the screen. the text it shoud print is whats beeing writen in the irc chanel. I've got the logger, i just need to print the log files(.txt) in the exe file …

0
47
Member Avatar for edek

I'd like to know how does Visual C++ copes with 'static initialization dependency' which is a problem which occurs when you have two(or more) files/ translation units, in one you have static global object and in other an reference to this object. When the second file will be compiled first …

0
57
Member Avatar for GreenDay2001

I am Turbo/Borland C++ programmer. I could write c++ programs. However I don't know Visual C++, and I have Visual C++ 6.0. What should be my first and next steps to learn Visual C++. Are there any online eBooks and tutorials. If so please tell me.

Member Avatar for WaltP
0
105
Member Avatar for friendz_
Member Avatar for Ancient Dragon
0
54
Member Avatar for shadowmoon

[quote] // play a wave file sound using the winmm library // For DevCpp add the library libwinmm.a to linker via // Project/Project Options/Parameters/Add Library // remember this is a console program! #include <iostream> #include <windows.h> // for PlaySound() #define SND_FILENAME 0x20000 #define SND_LOOP 8 #define SND_ASYNC 1 using namespace …

Member Avatar for andor
0
485
Member Avatar for lalalu

im trying to create a structure that contains an array of structures but i keep getting error when compiling the code (corrupt stack). just to make sure, is my struct code correct? [code] typedef struct status *StatusPointer; struct status { int item; }array[MAX_NUM]; typedef struct allStatus *AllStatusPointer; struct allStatus { …

Member Avatar for lalalu
0
989
Member Avatar for jordan2005

hello people am new to c++ i dont have much knowledge about it what is the best book for a new comer to C++

Member Avatar for Ancient Dragon
0
101
Member Avatar for amishosh

Hi! I've tried to split it up a program I made for school into 3: header.h: has the functions declarations. func.c: contains the fundctions body. body.c: uses the functoins. Here's my code: [code] /* header.h */ void kelet(char *p); void copy(char *p1,char *p2); void insert(char *p1,char *p2); void reverse(char *p1); …

Member Avatar for Anonymusius
0
151
Member Avatar for gobiv

I need to write simple program in C++! I need to write program that read information from file,which contain <50,students name and respective score.My program need to calculate average score and print out students name,who get below average mark to screen!But,i don''t know how to use string to do it.... …

Member Avatar for gobiv
0
113
Member Avatar for chicagoavonlady

Could somebody help me understand what this is asking for? I have tried different c++ codes and I don't think im reading it right... NOTE: IM NOT ASKING FOR THE ACTUAL CODE... I want to try and figure this one out 1st....but I don't think the way I'm reading it …

Member Avatar for chicagoavonlady
0
112
Member Avatar for Mistro116

I want to do something like this: class foo { private: class foo2 { ... void Print (ostream & out) .... }; ostream & operator << (ostream &out, const foo & temp); public: ... } I want it so class foo can cout << foo2 objects only in the foo …

Member Avatar for Mistro116
0
123
Member Avatar for mlawson22

Im so lost in this C++ class I have a vague idea of what to do but am getting myself confused. If anyone would help me get started on doing this assignment I would greatly appreciate it. :sad: Assignment: A mail order house sells five different products whose retail prices …

Member Avatar for WaltP
0
254
Member Avatar for Sashar400

Hi I am new to this forum and to c++.I am having problems reading data from a txt file into a 2d array. The data is in the file like this 1 5 87 3 3 24 2 4 62 4 2 22 I am only suppose to read in …

Member Avatar for Ancient Dragon
0
221
Member Avatar for moussa.eltayeb
Member Avatar for Ene Uran
0
82

The End.