49,761 Topics

Member Avatar for
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
78
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
285
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
95
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
81
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
95
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
271
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
94
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
282
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
336
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
79
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
171
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
83
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
166
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
243
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
133
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
173
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
115
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
87
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
244
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
107
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
231
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
88
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
221
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
96
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
100

The End.