49,761 Topics

Member Avatar for
Member Avatar for danielle23

I have been working on this assignment for a while. I have read a couple other threads in this site regarding similar solutions but I feel mine might be a little more unique. This tic-tac-toe board is user entered, simply setup as 9 characters in 3x3 format. Input should look …

Member Avatar for VernonDozier
0
1K
Member Avatar for pri_skit

1.I'm trying to write an MFC program in EVC++ 4.0 on window CE 5.0 that lists the disk drives on the system (C:, D:, and so on). I also need to know if the drive is a hard disk or a USB. Is there a class to get this information? …

Member Avatar for pri_skit
0
70
Member Avatar for the b

Hi, I would have replied in the last thread instead of creating a new one again but I have a dial up connection and dad doesn't like me tying up the phone lines at this time in the year. In the last thread I asked how to find the cubed …

Member Avatar for DEMWilson
0
180
Member Avatar for ryan858

I'm sorry if this is the wrong place to ask, but I figure since it's a [I]C++[/I] IDE it's probably qualified... How do I compile my program without all the extra debugging stuff in Dev-C++? I looked through it but I can't find any way to do this... I know …

Member Avatar for nucleon
0
101
Member Avatar for sciwizeh

I have the eclipse for Java developers, and I have the MinGW that's distributed with Dev-C++. I just want to know what downloads need to get from the update manager of eclipse, I also don't know how i set it up to use the compiler that came with Dev-C++. I …

0
79
Member Avatar for ganbree

I'm trying to read a Unicode file using std::wifstream. On wintel. [code=c++] #include <iostream> #include <fstream> #include <string> using namespace std; int main() { wifstream File("input.txt"); wstring Line; while(!File.eof() ) { getline(File, Line); wcout << Line << endl; } system("pause"); return 0; } [/code] And this is my output [code] …

Member Avatar for seanhunt
0
581
Member Avatar for M3rcury

[code] #include <iostream> using namespace std; void round(); int main() { void round(); { double input; double output; double first; double second; double third; double decimal_fix; cout << "Please enter the Number and the Places to round off" << endl; cin >> input; cout << "DEcimal places to fix" <<endl; …

Member Avatar for Ancient Dragon
1
109
Member Avatar for viki0077

Let Wallet be a class that represents the amount of coins and bills in a purse. The class has got a data element amount of type long. The binary operator += shall be overloaded as an inline method. Identify the error in the following definition. Wallet& operator+=(Wallet& w) { // …

Member Avatar for ArkM
0
83
Member Avatar for trevorp

Hello all. I need some help on some code... function definition double Magnitude () const; function implementation double Vector::Magnitude () const {return sqrt(X*X + Y*Y + Z*Z);} Test cout<<"test 4 \n"; cout<<"VectorA ^ VectorB = " (VectorA^VectorB)<<" = "<<(VectorA^VectorB).Magnitude()<<endl; I get c2064 on the portion of code highlighted in red. …

Member Avatar for nucleon
0
190
Member Avatar for shindu

Hi, im working on a small console app that among other things calculates the mean value of all rows and columns of a matrix. I want to incorporate the mean symbol (x with an over score) into the out put but the symbol isn't included in the ASCII chart, any …

Member Avatar for shindu
0
105
Member Avatar for koliva

Hello everyone, I have a ray-tracing code and I can successfully generate images taken from different view points. My generated image has 802x802 resolution. I am applying the same procedures for every different point of view. However, my generated .bmp files always have different file size. I wonder why? They …

Member Avatar for Salem
0
93
Member Avatar for viki0077

Let class Customer { private: long id; string name; public: ... }; be part of a class definition. What is wrong with the following constructors ? Customer () { id(0); name(''X''); } Customer () ( long n, const string& s) : id(s), name(n) { } Does anyone know this?

Member Avatar for viki0077
0
119
Member Avatar for hatemstar

hi ... An error: There is missing ; before * .. What does that mean .. Plz help me the project on the attachment

Member Avatar for Comatose
0
103
Member Avatar for blerina12

Hi guys. I was wondering if you could help me with this code. I am trying to open a file and read character by character. The program compiles but when I run it it aborts with an access violation while reading from the file. I made the program output the …

Member Avatar for blerina12
0
95
Member Avatar for viki0077

Does anyone now answer to this: Suppose class X includes a data elements common declared as public. How can it be accessed by all functions in the same name space ?

Member Avatar for kbshibukumar
0
159
Member Avatar for Omega037

I have been having a serious problem relating to memory allocation and arrays/vectors in C++ using the G++ compilier on both a windows machine(Dev-C++) and linux(debian). I would post all the code, but it is proprietary technology(I'm a Graduate Student) and therefore I can't share it openly without permission. That …

Member Avatar for StuXYZ
0
186
Member Avatar for viki0077

Please can anyone tell me in few words What is wrong with the following class definition? whait's missing, etc. [code] Class Numeric { private: long x; public ... void set (long n) const { x = n; } long get () { return x; } const } [/code]

Member Avatar for winrawr
0
277
Member Avatar for Manutebecker

For instance... I have the class Deck, which represents a deck of cards, and I want another class, derived from that, called cards, I want class Deck to have a class array called Cards[52], so I can assign all the different values and strings to the individual Cards class instances …

Member Avatar for DemonGal711
0
119
Member Avatar for deepalici0us

I am using Microsoft Visual C++ to write a program, i am trying to As records secretary for Cougar High School, you have been asked by the principal to prepare a report on the grades of some of the school's top athletes. Specifically, you must print each of the athlete's …

Member Avatar for vmanes
0
263
Member Avatar for rohit joshi

hi can anyone pls suggest me website through which i can safely download a c++ software?

Member Avatar for jbennet
0
155
Member Avatar for waferstix

hello there! i badly need help on this. how do i implement a power function that: a. does not use the cmath library b. does not use repetitive multiplication c. USES repetitive Addition thanks in advance! :S

Member Avatar for daviddoria
0
37
Member Avatar for ScienceNerd

Could someone help me with this? This is the warning message [url]http://s5.tinypic.com/28ilonq.jpg[/url] Variables [url]http://s5.tinypic.com/n1a5fk.jpg[/url] I know it should be an integer for the total_gal_paint, but it keeps giving me that message

Member Avatar for daviddoria
0
120
Member Avatar for WesFox13

Hello there, I made this code for an ISBN verifier but there's a problem with it [CODE=C++] #include <iostream> #include <fstream> // REQUIRED FOR FILE STREAMS #include <cstdlib> // FOR DEFINITION OF EXIT_FAILURE #include <cctype> #include <string> using namespace std; // ASSOCIATE STREAMS WITH EXTERNAL FILE NAMES #define inFile "isbntest.txt" …

Member Avatar for daviddoria
0
85
Member Avatar for nishidh

[CODE] # Makefile for Nikunj C. Oza's code. # # Definitions of basic variables. CC = g++ LIB = -lm # CPPFLAGS = -O2 CPPFLAGS = -g # File set (only one right now) OBJ1 = bagdtstump.o bagging.o baggingnb.o bagnn.o boostdtstump.o boostdtstumpave.o boostdtstumpave2.o boostdtstumpave3.o boosting.o boostingac.o boostingave.o boostingave2.o boostingave3.o boostdttotal.o …

Member Avatar for daviddoria
0
157
Member Avatar for number87

So, what Im trying to do here is a client server socket program. The client will ask a question to the server. For example, How are you? Then the server opens a text file, compares the string from the client and outputs the answer to the client. My text file …

Member Avatar for number87
0
153
Member Avatar for southernd0529

I have written the program but I do not know if the results are correct. This is my Declaration: length width area and perimeter. My Input is length and width. The calculations are p=2*(l+w) and a=l*w. My Output is P and A. So what i want to know is, are …

Member Avatar for rudasi
-1
191
Member Avatar for cproud21

I have the following array that prints out the amount of rainfall for each month, and then uses a bubble sort to sort it in ascending order... How can I display the name of the month along with the value that is already displayed? [ICODE]#include <iostream> using namespace std; void …

Member Avatar for rudasi
0
116
Member Avatar for rekhamanoj

kindly help me to resolve this error. I have a function inside a namespace in my header file . This is my header file #ifndef _MATPACK_H_ #define _MATPACK_H_ //-----------------------------------------------------------------------------// #include "scene.h" // class Scene #include "mpmatrix3d.h" // 3d matrix template classes #include "vector.h" // vector and matrix classes #include "mpspecfun.h" …

Member Avatar for daviddoria
0
125
Member Avatar for shanexuan

can anybody help me?currently i had wrote a coding for trash recycle system.to make thing more interesting,I wish to add simulation in that coding,however,I failed to do it,since my visual C++ is just still basic only.Hope U all can lend me a hand,please.thanks

Member Avatar for StuXYZ
0
103
Member Avatar for hurbano

I was given this .h file to implement with a cpp file. the directions say to add the definitions of the functions to overload the operators +=, which implements the same operation as the unionSet(monthsSet &B) function; -=, which implements the same operation as the differenceSet(monthsSet &B) function; ==, which …

Member Avatar for VernonDozier
0
437

The End.