49,761 Topics

Member Avatar for
Member Avatar for bhavna_816
Member Avatar for jbennet
0
62
Member Avatar for Duki

hey everyone, I am including my code and was wondering if there is a prefered way to document? I have comments which describe what does what, but I'm wondering if there is a neater and/or more efficient way to do it... /***************************************************** * COSC 230 - Structured Programming * Chapter …

Member Avatar for Duki
0
97
Member Avatar for dahlia_06

There are three main type of methods in C++ I read somewhere but I forgot where exactly and in which article did I read that. But it is something like Access methods, Modify methods and the third one.. I think it is managerial method. But not really sure. Can any …

Member Avatar for ~s.o.s~
1
537
Member Avatar for rQQt2

Hello folks I'm trying to simulate a magic square algorithm, but having some problems. The program successfully creates the magic square, but when I'm trying to print it, the VC2005 compiler says "vector subscript out of range", which it shouldnt be. Any help would be appreciated. Cheers Here's the code: …

Member Avatar for rQQt2
0
446
Member Avatar for alejo

[CODE]#include <iostream> using namespace std; int main() { char function; double num1, num2; char option; option = 'y'; cout << " Please enter two numbers: "; cin >> num1 >> num2; cout << "\n + for addition "; cout << "\n - for subtraction "; cout << "\n * for …

Member Avatar for alejo
0
108
Member Avatar for torbecire

[COLOR=DarkSlateGray]I am trying to write a file with extension h and a cpp file. When i try to compile the cpp file it gives me an error that says. [Linker error] undefined reference to `counter::counter()' . Could anyone help me out please. I am using a Dev.c++ compiler Here are …

Member Avatar for Lerner
0
94
Member Avatar for mjmythili
Member Avatar for WaltP
0
72
Member Avatar for livingsword

i want to initialize an array(set all elements to 0) . The array is to be used by different functions which r defined outside the class. obviously i cant initialize it in the class. and if i do it in a constructor or main(), it isnt recognised by all the …

Member Avatar for ~s.o.s~
0
118
Member Avatar for ctrohana

Hi guys, I need ur help. If I have character strings (data array file) as below: X001234 X001345Y002323 X00142 X001567 How do i program, if I want to enter Y002323 to the next line? and how I can add '0' character after X00142 so that the the array is like …

Member Avatar for ~s.o.s~
0
166
Member Avatar for japat

I am using c++ and would like to know the easiest way to turn decimals in to the form hours:minutes:seconds. You can assume the integer is in the form of hours (e.g. 242.4 = 242 hours 24 seconds etc) Also, I would like it so that seconds is to one …

Member Avatar for Ancient Dragon
0
72
Member Avatar for bploog

Hello, I am new to this. Hope I won't break any etiquette unknowingly. I DID my homework, I believe ... I'd like to get C/C++ code which allows me to get the path of the active application, ideally in the format of char. I wrote a program for which I …

Member Avatar for bploog
0
234
Member Avatar for dahlia_06

Hello people, I am new to this community and the only reason for why I joined here is to learn and get all my doubts clarified as I am learning C++ all by myself and also I dont have any computer literate people around me in my place. I started …

Member Avatar for dahlia_06
0
119
Member Avatar for mjmythili

Hii please help me to find a solution for this I want to display system time in 3D using Directx.for that I want to display System time(hr:min:sec) in VC++6.0.

0
72
Member Avatar for developer4321

Hey. I kindof posted tihs before but it didnt have a good title. But, I had to implement the functions of a Hash Table template... I wasn't sure exactly how to do it, but I figured out a way to get it to work. I'm not positive if I did …

Member Avatar for thekashyap
1
1K
Member Avatar for MattEvans

I'm carrying this around in my signature at the moment, because I found the statement somewhat amusing: [quote] class `Matt' is implicitly friends with itself. [/quote] (Of course, the class wasn't really called Matt. I like the look of my own name. Perhaps). Preamble aside; the more I think about …

Member Avatar for thekashyap
0
87
Member Avatar for Darkmeerkat

I'm having some trouble understanding how Exceptions thrown from constructors work... Let's say I have a class like this: [code=C++] class A { public: A() { if( error ) throw MyExp; } } [/code] If I try to define a variable of type "A" within a [inlinecode]try {} catch {}[/inlinecode] …

Member Avatar for John A
0
133
Member Avatar for nick_cim

When i start up my computer i get a Run Dll error, and during my computer time i get an error about buffer something and it causes program instability and when i click OK all my icons are gone and my task bar... and they stay away until i restart …

0
26
Member Avatar for kiethnt

Dear all, Now I have a small program to communication via RS232 cable with 3964R protocol that is written by Borland C++, however I don't under stand it can be used on Win98 only. Any body please show what I could do to use this program on Win XP. Many …

Member Avatar for vegaseat
0
94
Member Avatar for Tauren

A person ineed deserves books indeed! Umm any college like books we know of that I can get?? From C++ to the end! Maby not way end but enough to build a game! Other post disregard Noones responded to it in the last [B][I][U][COLOR=purple]48[/COLOR][/U][/I][/B] hours!

Member Avatar for jbennet
0
111
Member Avatar for degamer106

Hi, I can't get the following code to work. I have my converting constructor (second line) to change an int type to a car type but my compiler says there's something wrong with the overloaded + operator. It says here in my book that if I want to do an …

Member Avatar for ~s.o.s~
0
100
Member Avatar for daphnie

[COLOR=darkslateblue]Please help me!!![/COLOR] [COLOR=darkslateblue]How can I do the below ex. , please help me!!![/COLOR] [COLOR=red]Description: [/COLOR]In this assignment you will implement the ADT Stack. You will be using stacks in order to count the pairs of three types of brackets: {}, [], and (). The input will consist of an …

Member Avatar for Lazaro Claiborn
0
99
Member Avatar for virsa

access c++ private data members without using the " Friend" type main() can be a friend function?

Member Avatar for Laiq Ahmed
0
136
Member Avatar for degamer106

How do i dereference a pointer to something in a class without having to write another function to dereference it for me? For instance in this code: [CODE]class Fraction { public: Fraction(int left = 0, int right = 1); Fraction(Fraction & obj); ~Fraction() { delete fl; } double getFraction() { …

Member Avatar for thekashyap
0
77
Member Avatar for ammochck21

can someone tell me what is wrong with this code? We are supposed to use recursion to see if the two arrays are equal. [code] int Equal(int a[], int b[], int left, int size) { if (a == b) { return Equal(a, b, left + 1, size); } else return …

Member Avatar for John A
0
118
Member Avatar for Dave256000

Using the skeleton below #include <unistd.h> // read/write #include <sys/file.h> // open/close values #include <string.h> // strlen int main( int argc, char *argv[], char *env[] ) { // C++ or C code } Write a C++ application myrm that removes (deletes) files passed as command line argument. Use only the …

Member Avatar for Lazaro Claiborn
0
89
Member Avatar for tlly

hello everyone, i used the method substr() in a c++ program . I now need to convert my program in C. Does anyone know if there exists an equivalent of the method substr() in C???

Member Avatar for Salem
0
124
Member Avatar for paeez

iv written a code that insert a node befor a node containing a certain value(for example insert a node having value 3,befor the node containing value5),i checked the code many times,i couldnt find any mistake, but the compiler errors this part. can any one help. here is the code : …

Member Avatar for ithelp
0
118
Member Avatar for iaaan

Hi, I am reading textfiles in a structure like this: [CODE] ifstream TextFile; TextFile.open("quote.txt"); while (!TextFile.eof()) { TextFile >> Quote[RecordNumber].RefNumber; TextFile >> Quote[RecordNumber].Surname; TextFile >> Quote[RecordNumber].Initials; TextFile >> Quote[RecordNumber].TotalCost; TextFile >> Quote[RecordNumber].DeliveryCost; TextFile >> Quote[RecordNumber].Guarantee; TextFile >> ws; RecordNumber++; } TextFile.close(); [/CODE] However, this needs to be put into a …

Member Avatar for iaaan
0
110
Member Avatar for bananenflip

I'm so sorry for asking but where should I insert or save C++. I'm skilled in html css and javascript but I don't get this.

Member Avatar for bananenflip
0
298
Member Avatar for bananenflip

I'm so sorry for asking but where should I insert or save C++.:rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes: I'm skilled in html [URL="http://www.daniweb.com/techtalkforums/thread71182.html#"]css[/URL] and javascript but I don't get this. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Test</title> <script type="text/javascript"> function test() { alert("NIET KLIKKEN VERDOMME") } </script> <script type="text/javascript"> function startTime() …

Member Avatar for WaltP
0
87

The End.