49,761 Topics
| |
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 … | |
(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 = … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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>>> | |
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. … | |
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 … | |
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 … | |
| 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 … |
i am using dev c++ and i need to figure out how to declare variables. | |
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 … | |
| 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 … |
without nested loops i need a program that prints the set of numbers between any two numbers ??? help me plz | |
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 … | |
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 … | |
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 … | |
#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> … | |
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 | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.