49,755 Topics

Member Avatar for
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
263
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
216
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
335
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
127
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
164
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
71
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
165
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
235
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
132
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
172
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
114
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
106
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
230
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
87
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
220
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
95
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
99
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
215
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
57
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
89
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
55
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
100

The End.