49,761 Topics

Member Avatar for
Member Avatar for daniel1977

The problem I am having is that it will not allow me to define a class without building a default constructor outside of the class. For instance if you comment out line 19 on the header file you will recieve an external linker error. The same will happen if you …

Member Avatar for daniel1977
0
352
Member Avatar for Suzie999

(edit) this is solved, was a unicode issue. Hi I'm hoping someone has used the library [pugixml](http://pugixml.org/) I'm just trying to use a simple example provided but I'm not getting the result I expect. int _tmain(int argc, _TCHAR* argv[]) { pugi::xml_document doc; pugi::xml_parse_result result = doc.load_file("tree.xml"); //pugi::char_t * c = …

0
154
Member Avatar for adison.afonso

I have this Singleton class called ZombieLand that is supposed to represent a 2D array. This 2D array is getting constantly updated and populated by different instances of my MachineState struct, which contain x and y coordinates to help me navigate through the 2D array. #pragma once #include "singleton.h" #include …

Member Avatar for Moschops
0
235
Member Avatar for evilguyme

Hey guys, I ran into a small problem, I need to make a software that does some basic calculation and saving to a custom file. To make this software i don't know how to start, do i need to make an MFC Application? and if i do then what settings …

Member Avatar for evilguyme
0
366
Member Avatar for daniel1977

Dear Friends: I am struggling to overload the operators on this exercise. It was working fine when I just had the addition operator overloaded for the extRomanType but now I can't get them to work again. I have searched through the internet and I cannot figure out what I am …

Member Avatar for daniel1977
0
291
Member Avatar for Chay Hawk

I have been learning c++ for around 4 years now but I have a learning disability so it makes it harder for me to understand things and the concept of pointers is just killing me. Classes arent near as difficult but still i have a bit of a hard time …

Member Avatar for Ancient Dragon
0
112
Member Avatar for nah094020

Just wondering how do i get all the nessecary files for my project on netbeans because, when i use the add existing item, i tend to forget where i got it from and have trouble organizing it. Is there a way to find where the file is located at?

Member Avatar for nah094020
0
192
Member Avatar for Stein102

I'm just starting to get into c++ development and am experimenting with different IDEs. I was curious about what everyone's favorite IDE is and why that made that decision. I've tried: Visual C++ 2012 express Code::Blocks Eclipse CDT So far, my favorite has to be Eclipse CDT. That may be …

Member Avatar for Stefano Mtangoo
1
192
Member Avatar for biepie70
Member Avatar for khan111

hi guys >>>>>>>>> i have question <<<<<< i need some help ,, is there anyone can help me how to draw cirvcle in c++.... and i should use star or i can use line>>>

Member Avatar for owenransen
0
82
Member Avatar for daniel1977

Dear Friends: I have the following issue: when I am trying to use the member variables of my header/trailer linked list, they are apparently not initialized. I, of course, am initializing the pointers in the class' constructor, but nonetheless they appear to not be making it out of the constructor. …

Member Avatar for daniel1977
0
128
Member Avatar for Suzie999

Hi. I'm having trouble debugging a rather large project. The first issuse is not knowing how to track the bug down. Here is the text from Assertion Error popup while running in debug mode Debug Assertion Failed > Program...nga Path\file.exe > File: f:\dd\vctools\crt_bld\self_x86\crt\src\xtoa.c > Line: 105 > > Expression: sizeInTChars …

Member Avatar for Suzie999
0
377
Member Avatar for bumrush

Hello all! So I have an assignment to create a matrix multiplication program using classes (no friend functions). To be quite frank, I am completely lost and have no idea what I'm doing here. The directions state that the private class hold 3 matricies and also that I need to …

Member Avatar for Schol-R-LEA
0
11K
Member Avatar for nova37

i write one windows service working perfect , but when i check it in windows services list then its description tab is empty so i thought to add description to it , but do not know how to add description to it , so any body have any idea how …

Member Avatar for nova37
0
218
Member Avatar for ringo861
Member Avatar for MandrewP
0
261
Member Avatar for liphoso

i hope this is the correct platform to ask this. i am doing a c++ application that incorporates qmysql, i am using qt. i have two qline edit fields being name and password. after the user has entered these two i want to use them for login. i have this …

Member Avatar for gusano79
0
169
Member Avatar for Griff0527

I am trying to write several different sorting algorithms in order to time the differences between them when reading a file of a half million integers. For testing purposes, I am only using a few hundred integers, but I am getting a stack overflow error. Also, for testing reasons, I …

Member Avatar for mike_2000_17
0
3K
Member Avatar for ayoob22

without nested loops i need a program that prints the set of numbers between any two numbers ??? help me plz

Member Avatar for DavidB
0
231
Member Avatar for pendo826

Hey my doubly linked list remove duplictes function will only work when the players in the list are together as in position 1 and 2 or 3 and 4. Otherwise if there not together it will delete the two players. For example, if i have luis suarez at position 1 …

Member Avatar for Liuqahs15
0
214
Member Avatar for preet4fun

The manager of a football stadium wants you to write a program that calculates the total ticket sales after each game. There are four types of tickets--box, sideline, premium, and general admission. After each game, data is stored in a file in the following form: ticketPrice numberOfTicketsSold ... Sample data …

Member Avatar for NathanOliver
0
2K
Member Avatar for ralph.d.abernathy.1

Hello everyone! So I wrote a program that simulates a dice game, almost like the game of Craps. I want to turn this normal console app into a dialogue based MFC. So I would create a button labeled "Roll" and the window would show two die being rolled. Here is …

Member Avatar for ktsangop
0
450
Member Avatar for annitaz

#ifndef LOTTO_H #define LOTTO_H #include <QWidget> #include <QLabel> #include <QTextEdit> #include <QPushButton> #include <QGridLayout> class lotto : public QWidget { Q_OBJECT private: //widget data members QLabel* numbersLabel; QTextEdit* numEdit; QPushButton* lotusButton; public slots: int generateLotteryNumbers (); void displayNumbers(); public: lotto(); }; #endif // LOTTO_H #include "lotto.h" #include <stdlib.h> #include <time.h> …

Member Avatar for tinstaafl
0
333
Member Avatar for maham saba

Please help me. I have a problem with this program. what will be the code of the following output? 3 6 9 12 15 18 21 24 27 30

Member Avatar for old_apache
0
138
Member Avatar for ConfusedLearner

I am getting an error saying function does not take 2 arugment. Dont know how to fix this. Please help. #include <iostream> #include <cmath> using namespace std; void set_sides(int,int,int&); int main() { int Area, Volume; cout << "Surface Area and Volume of a Cubic Prism. " << endl << "Please …

Member Avatar for NathanOliver
0
214
Member Avatar for shanki himanshu

there is function : int median(int a[], int b[]) { } how do i find the number of elements in a and b? i am doing sizeof(a)/sizeof(int) but it does not give right results. P.S. i need to submit the function only in online compiler so i dont know what …

Member Avatar for shanki himanshu
0
373
Member Avatar for TheNewbie1234

I made an object-oriented maze game. It compiles but I can't move the character around in the maze. Please help me out, thank you. Person.h file: #include <windows.h> #include <process.h> #pragma once class Person { private: int m_X; int m_Y; public: WORD Color; Person(); ~Person(); void DrawASCIICharacter(int x, int y, …

Member Avatar for Schol-R-LEA
1
1K
Member Avatar for kyle.mace.35

Alright so I have a problem with EventQueue and Event. In Event my second constructor gets an error saying expected initializer. If anyone can point me in the right direction to what is wrong that would be great. Now if i comment that out i get an error with EventQueue …

Member Avatar for kyle.mace.35
0
158
Member Avatar for adrian9989

I am trying to write a server-client application for file transfer: the client written in Java and the server written in C++. Unfortunately I have the following error: "java.net.SocketException: Connection reset by peer: socket write error". Here is my code for client: import java.io.*; import java.net.Socket; public class Proba_binar public …

Member Avatar for ktsangop
0
2K
Member Avatar for AmrMohammed

Greetings I want to know what is the difference between passing an agrument by reference as a constant and making the function itself a constant. A constant argument means that the function cannot modify it anyway and any attempt to do so, will report an error from the compiler what …

Member Avatar for deceptikon
0
160
Member Avatar for Suzie999

I'm having a little difficulty understanding why a piece of my code cannot be modified to work with stack instead of heap. Well that is just a descriptiom, I'm aware there are no gurantees where my data will be stored. As it stands my working code is... //u_char = unsigned …

Member Avatar for Suzie999
0
101

The End.