51,593 Topics

Member Avatar for
Member Avatar for AcidG3rm5

[code] class Date { public : Date(); void getDate(int,string,int); private : int day; string mth; int year; };//end class //getdate void Date::getDate(int& inDay,string& inMth,int& inYear) const //error here { inDay=day; inMth = mth; inYear=year; } [/code] I'm doing up a date class. Am doing a class function getDate to return …

Member Avatar for Nick Evan
0
210
Member Avatar for clutchkiller

Hi guys, right now I am an amateur in the world of programming and am starting to "train" myself by thinking of ideas for a program and figuring out how to write it. So right now, my first real undertaking I have devised is to write an itemizer where the …

Member Avatar for Nick Evan
0
113
Member Avatar for Agni

Hi guys.. I'm facing a problem in my project. Basically its a small project for a retail store inbound section. The goods come in cartons and the user enters the carton ID in the UI to accept the carton. In the backend the carton details get updated in the table …

Member Avatar for Agni
0
91
Member Avatar for purplehaze13

hi i'm new to c++ and i really would appreaciate it if someone could help me plz! i have to create aprogram to identify palindromes using character arrays and pointers. it shd continue requesting the user for phrases until quit is entered. i have t o use the following: -type …

Member Avatar for ithelp
0
104
Member Avatar for Bhoot

I am developing a peer-to-peer RAT tool. The mechanism i use is as follows : client-side : connect to the server. server-side : listen and accept the incoming connection. The related code is as follows : [code] // client - side : void ClientDialog::connectToServer() { if (connectingSocket_.Connect (_T("bhoot"), PORT) == …

0
70
Member Avatar for Bhoot

I am writing a RAT in which i have also included a keylogger as a DLL file. here is my code in the keylogger.dll : [CODE] //function.h -- the file which will be referenced by my RAT project file.///////////////////////// extern "C" __declspec(dllexport) void setHook(); //keylogger.h////////////////////////////////////////////////////////////////////////////////////////// #if !defined(AFX_KEYLOGGER_H__5979CE3A_20A6_4172_BBF1_9F7C091CC182__INCLUDED_) #define AFX_KEYLOGGER_H__5979CE3A_20A6_4172_BBF1_9F7C091CC182__INCLUDED_ #if …

Member Avatar for Bhoot
0
277
Member Avatar for MosaicFuneral

I'm on Dev-C++ 4.9.9.2 default options, WinXP SP3, P4 w/ HT. When I c-shift a value, and then back I get back distorted values. Using the standard _rotr() and _rotl. [code] /*somewhere in main()*/ str = "I'm a fairy! abc xyz ABC XYZ"; printf("\n%s\n", str.c_str()); for(i = 0; i < …

Member Avatar for ArkM
0
160
Member Avatar for Gannon56789

When i compile my code i keep getting an error. *** glibc detected *** ./main: free(): invalid pointer: 0xbfb82c34 *** . I can not figure out for the life of me what the issue is. I think it may have something to do with my constructor. Any suggestions would be …

Member Avatar for Agni
0
212
Member Avatar for f.ben.isaac

Threads are scheduled to run based on their scheduling priority. Each thread is assigned a scheduling priority. The priority levels range from zero (lowest priority) to 31 (highest priority). ***Only the zero-page thread can have a priority of zero. (The zero-page thread is a system thread responsible for zeroing any …

Member Avatar for f.ben.isaac
0
83
Member Avatar for nedsnurb

hi guys am a total noob with C++ and im trying to write a program that will take a user inputted integer and displays its divisors and then tell the user whether it is a perfect number or not. So far I have [code=cplusplus] #include <iostream> using namespace std; int …

Member Avatar for MosaicFuneral
0
179
Member Avatar for skatamatic

I'm writing a function parser, which (hopefully) will be able to handle much more complex problems than basic operations. I've just completed the handling of the addition, subtraction, and brackets, but am at a loss of how to implement proper order of operations for multiplication and division. In order to …

Member Avatar for skatamatic
0
199
Member Avatar for tones1986

Hey all.. i am working on a assignment for class currently, and am having a few difficulties. Right now i have a file that i am reading in, for each value read, i call my insert() function. This insert function push_bakc(item) into a vector, and then i call a function, …

Member Avatar for tones1986
0
141
Member Avatar for mrrko

[code=cpp]#include<iostream> using namespace std; int computeDifference(int hours_par, int minutes_par, char isAM_par, int hours2_par, int minutes2_par, char isAM2_par); //Precondition: Hours and minutes are input from the keyboard, hours must be in a 12- hour notation, // between 1 and 12. Minutes should be between 0 and 59. isAM must be either …

Member Avatar for Lerner
0
90
Member Avatar for MylesDBaker

Hello everyone, I am having some difficulty with a class assignment, partially because the professor has assigned it before we have covered the material. I have created a general case for the classes, but I really don't know what the assignment is asking me to do. Any help is appreciated, …

Member Avatar for Lerner
0
201
Member Avatar for ROTC89

ok i have everything done for my program but it says i didnt declare myQ i dont understand some help would be nice here is the main #include <iostream> #include "queue.h" using namespace std; int main() { Queue myQ; int i; for(i=0;i<SIZE;i++) { myQ.enqueue(i*2); } myQ.dequeue(); myQ.dequeue(); cout<<myQ.front()<<myQ.back()<<endl; while(!myQ.empty()) { …

Member Avatar for ROTC89
0
128
Member Avatar for resduq

hi, i'm workin on a lab for an intro to computer science class which deals with c++... one of the ten parts of it says the following Read about the getline command for fetching an entire line from a input stream. Then make a text file of mixed words and …

Member Avatar for ArkM
0
168
Member Avatar for mjfall01

My name's makhtar new member. i was looking at the website and really like it. talking about that i have a huge problem and i need help. Can somebody help me urgently. You are to develop a program for an auto dealership. This program will keep track of the auto …

Member Avatar for William Hemsworth
0
269
Member Avatar for disc

Hi All, I want to set the version number of my application and show it in my form. Going through some forums, I read that I had to implement 'Version' in my resource file, so that's what I did. But... after setting the version in the resourcefile to 0.0.0.99 and …

Member Avatar for replic
0
87
Member Avatar for replic

Hi everyone, as the heading already says i want to check whether a folder is a network share or not. So far i tried to achieve this by reading the file attributes but that did not lead to the right solution. If anyone here knows how to do this please …

Member Avatar for replic
0
465
Member Avatar for Foe89

I don't usually ask for help on these but I missed a day of class and I'm a bit out of the loop. We're going over structures and for HW my instructer likes to do code fixes where theres code with errors that we need to correct. Anyways, I'm reading …

Member Avatar for vmanes
0
498
Member Avatar for DLightman

I have a bunch of sort methods in a class: [CODE=cplusplus] typedef int DataType; void bubbleSort(DataType theArray[], int n); void insertionSort(DataType theArray[], int n); void mergesort(DataType theArray[], int first, int last); void quicksort(DataType theArray[], int first, int last, char * pivot_type); void selectionSort(DataType theArray[], int n); [/CODE] In my main …

Member Avatar for DLightman
0
88
Member Avatar for Barvik

This is QT btw. I get the following error when i write "make" in the terminal window: [code]QObject::setParent: New parent must be in the same thread as the previous parent[/code] here's my headerfile: [code]#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QDate> #include <QMainWindow> #include <QTableWidget> class QAction; class QLabel; class MainWindow : …

Member Avatar for Barvik
0
257
Member Avatar for axfv

I can use ShellExecute to easily open a URL in a new default browser window. I'd like subsequent URLs to be opened in the same window, but ShellExecute always opens a new window/tab. I've been looking on google and msdn, but there doesn't appear to be a simple solution. Do …

Member Avatar for dickersonka
0
119
Member Avatar for rmlopes

Hi all, I was developing my app under Linux, using the Loki library. No I am trying to work on it using visual c++ under windows XP. I can compile without errors both my project and the loki library, which created a loki_D.lib. I include this .lib through the makefile. …

Member Avatar for rmlopes
0
205
Member Avatar for AcidG3rm5

[code] //checks for leap year bool checkLeapYr(int year) { bool isLeap; if ((year%4=0) && (year %100!=0) || (year%400=0)) //error here. Non-Ivalue assignment { isLeap=true; return isLeap; } else { isLeap=false; return isLeap; } }//end function check leap year [/code] i have the above function to check if a year is …

Member Avatar for AcidG3rm5
0
166
Member Avatar for kitty7

Hello, I'm am really new to C++; I've only been doing it for a couple of months. However, in my class, I have no idea what I've been doing wrong...I'm posting my program and the assignment because I desperately need the insight. I'm not sure if I am in the …

Member Avatar for kitty7
0
138
Member Avatar for prushik

I would like to know once and for all how to convert a double to a const char* I've tried it a few times, but have never succeeded, I know it can be done, but I haven't figured out how to yet. I've tried some different things. Sometimes it won't …

Member Avatar for Seta00
0
2K
Member Avatar for drgenius

You are the owner of a sportswear store that sells tennis shoes of three different brands. The shoes have different prices, as follows: 1. Nike: $100.95 2. Sketchers: $125.5 3. Adidas: $92.45 Write a program that does the following: • Ask the user to enter a product number (1 3: …

Member Avatar for drgenius
0
252
Member Avatar for meddlepal

I am having a major problem with a really simple File I/O operation. I have a pretty simple datafile filled with a list of names and courses. [CODE=text] Happy Singing Dopey Dancing Sneezy Etiquette Slimey Math Grumpy Mining Slinky Karate Happy Mining Dopey Mining Doc Singing Doc Math Doc Medicine …

Member Avatar for meddlepal
0
91
Member Avatar for Briterican

Hi, I'm a newbie to this site, but I will soon be an active member. Currently I'm writing a program where one of my methods has to read data from a text file and set it to an array. I then need to display that data in the console, but …

Member Avatar for WaltP
0
113
Member Avatar for Hassan87

Hello DaniWeb members, I need some help with a program I made that I couldn't figure out the logic to complete the program should make 5 random numbers between "1 and 55" and those five numbers should: *Have two or three even numbers (%66 even or %66 odd) *Have two …

Member Avatar for Hassan87
0
127
Member Avatar for ashbrenner

hi i have an image which i can get RGB values, i have to quantitize it , a new to this i think i know the principle but need a few pointers as to how to go about "mapping" the image to a range of colours. basically i am doing …

Member Avatar for vmanes
0
157
Member Avatar for JustLearning

This grap is kicking my butt. I am not sure how to do it. Can someone please help explain these to me. [code=c++] // graph.h // -- adjacency list representation of a weighted graph // #ifndef GRAPH_H #define GRAPH_H #include <string> #include "queue.h" using namespace std; class FileOpenError // Exception …

Member Avatar for JustLearning
0
371
Member Avatar for FtKShadow

I cant get this code to work it searches and finds the answer, but it gets an error once you search it. Heres the assignment. [QUOTE]a.) Create a function called howMany that will search a two dimensional array for the the number of occurences a particular number is found within …

Member Avatar for vmanes
0
111
Member Avatar for Icebone1000

I don't knof if that's the right place, since it's not c++ specific but a windows development doubt... (and sorry my english) My problem is kinda stupid, but i don't know whats happening, im tryng to show a popup menu when user press the righ mouse buttom, in the cursor …

Member Avatar for Icebone1000
0
1K
Member Avatar for vladdy191

Given this piece of code [CODE] void swap(int x, int y) { x= x + y; y= x - y; x= x - y; } main () { i = 1; a[0]=2; a[1]=1; a[2]=0; swap(i,a[i]); printf("%d %d %d %d\n", i, a[0], a[1], a[2]); swap(a[i], a[i]) printf("%d %d %d %d\n", i, …

Member Avatar for Lerner
0
82
Member Avatar for freelancelote

Hi, why is it giving me the warning: deprecated conversion from string constant to ‘char*’ How may I fix this? Any help is welcome [CODE=cpp] #include <iostream> using namespace std; class Melarki { public: Melarki(): first(""){}; Melarki(char * mimi): first(mimi){}; ~Melarki(){delete first;}; char * first; }; int main() { Melarki …

Member Avatar for freelancelote
0
622
Member Avatar for StainlessSteelR

I have to create a program for a Jewerly Store, that is a markup application that accepts the name of an item (string), the quantity, and the wholesale cost. The markup is based on the name of the item. The program needs to output a welcome statement, accept an unknown …

Member Avatar for StainlessSteelR
0
111
Member Avatar for NinjaLink

Hello.. This is what my program is suppose to do: -find length of list -check for empty list -insert in back of list -delete from front of list [B]I have everything done except finding the length of list and check for empty list.[/B] I need help getting the length of …

Member Avatar for ArkM
0
3K
Member Avatar for M00nDancer

I found a quite interesting problem on the Internet, and of course, out of curiosity, I tried to solve it. Too bad nothing came to an end :(. The task was to count the alphabet's upper letters appearing in a given text and to print on the screen all the …

Member Avatar for ArkM
0
101
Member Avatar for PhoenixInsilico

[ICODE]#include<iostream> using namespace std; class Point{ float x,y,z; public: Point(float f_x=1.0, float f_y=1.0, float f_z=1.0); void setXYZ(float X, float Y, float Z); void setX(float X); void setY(float Y); void setZ(float Z); void getXYZ(float &X, float &Y, float &Z); float getX(); float getY(); float getZ(); }; Point::Point(float f_x, float f_y, float …

Member Avatar for sidatra79
0
95
Member Avatar for bugmenot

I am using cin to input a single character from keyboard.The problem is that if 2 or more characters are entered then the rest of the characters are being considered as input for the further cin statements.Is there any way in which I can clear the inpu buffer memory after …

Member Avatar for Lerner
0
141
Member Avatar for am_mad23

Write a C++ program that would be able to manipulate a list of fruits. First, create a link list that has this fruit list: [B]apple | banana | peach | apple | mango | durian | rambutan | kiwi[/B] i. Then, sort the fruits in alphabetical order and display the …

Member Avatar for vmanes
0
128
Member Avatar for sagar_d

[code=cplusplus] template <class T> void trace(LogBuffer& msgBuffer, T& data) { data.trace(msgBuffer); } [/code] In the above template fuction we are using a generic class T, but when we are compiling on gcc4.1.3 compiler we ar getting the following error. error:request for member 'trace' in 'data', which is of non-class type …

Member Avatar for Alex Edwards
0
102
Member Avatar for afg_91320

hi guys i have a problem that asks me to work with a given structure and to set an array of 35 and initialize the elements. then i take a loop statement that will step through the entire array and display the contents of each element. since the question only …

Member Avatar for Lerner
0
3K
Member Avatar for srivtsan

i got the code for this problem but not able to find where i am wrong my problem is as follows Given an array of numbers, find the longest subsequence whose elements grow monotonically: 1 4 8 2 5 7 3 6 => 1 4 5 7 1 4 8 …

Member Avatar for invisal
0
247
Member Avatar for rubentan

hi guys, im using microsoft c# along with sql server 2k8 to build my database software, i have 2 problems.. 1st is i cant seem to make an incrementing primary key that doesnt start with 1? i wanted to make my primary key start from 00001 then increment it by …

Member Avatar for dickersonka
0
87
Member Avatar for kjsalk

hello everyone in need of a little help here.i am beginner to programing and i have to produce a program that 1 outputs a message to the moniter asking the user their age as a whole number 2 use the input method to obtain a whole number from the user …

Member Avatar for kjsalk
0
125
Member Avatar for CTOBiz

Friends, First off, I'd like to thank each one of you for setting up such a fantastic supporting network to help each other. Here's what I want to do and I think this is feasible but haven't done it myself as my focus can been more architecting web and DW …

Member Avatar for ArkM
0
130
Member Avatar for mibit

Hi there, could anybody please do me a big favour and write a complete program in C++ with at least one example of using all interface functions of the specified below ADT ( Abstract Data Type) You should implement the stack ADT using the STL vector class. Thanks :)

Member Avatar for ArkM
0
52

The End.