49,757 Topics

Member Avatar for
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
190
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
449
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
Member Avatar for fakhruddin.fiqri

Develop a C++ program that uses a while statement to determine the gross pay for each of several employees. The company pays 10 RM per hour for the first 40 hours worked by each employee and pays 20 RM per hour for all hours worked in excess of 40 hours. …

Member Avatar for tinstaafl
-1
112
Member Avatar for s11086050

You have been hired by a school management to design a software program which will act as a Math Tutor for the students. The following are basic guidelines as to how the program should function. “Two unique random numbers in the range 0 to 99 are to be generated each …

Member Avatar for tinstaafl
0
103
Member Avatar for ztdep

*Dear friends: I need a quick algorithm to find the common faces of polyhedrons meshes for the finite volume computation. Each plolyhedron is recorded with the indexes of its six vertices(hexahedron) or four vertices(tetrahedron). Each polyhedron has only one common face with its neighboring polyhdrons. The common face can be …

Member Avatar for ztdep
0
175
Member Avatar for victoria.lim.773124

#include<iostream> #include<cstdlib> #include<string> using namespace std; class Menu { public: Menu(); virtual void showMenu(); private: }; Menu::Menu() { } void Menu::showMenu() { cout<<"\nFood Selection:"<<endl<<endl; cout<<" ~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*\n"; cout<<" Food Category "<<endl; cout<<" __________________________________\n"; cout<<" 1. Appetizer *"<<endl; cout<<" 2. Main Course *"<<endl; cout<<" 3. Drinks *"<<endl; cout<<" 4. Dessert *"<<endl; cout<<" …

Member Avatar for victoria.lim.773124
0
258
Member Avatar for nick.rechtien.5

In this program I am writing for class, I have to make a Paper Rock Scissor game using functions. I got everything written and everything seems to work until I quit the program and it's supposed to display the stats. It seems that the variables arent storing and being passed …

Member Avatar for NathanOliver
0
149

The End.