51,593 Topics

Member Avatar for
Member Avatar for gretty

Hi I have to create a program that takes in 2 arrays (each array containing 5 values). The program will check whether the 5 values of array one contains the same values of array 2. I have done everything to make this program work [B][I]except[/I][/B] ....[B]how write an algorithm that …

Member Avatar for siddhant3s
0
4K
Member Avatar for spectrum6125

Alright so I'm working with a program that works with various email programs and I'd like to use it to automate the login process. I know I can open a browser using ShellExecute(NULL, "open", "https://various.email.com/", NULL, NULL, SW_SHOWNORMAL); but how would I actually parse the login/password strings into the text …

Member Avatar for Sky Diploma
0
115
Member Avatar for effective

You are to design a class class called Employer data members: char name[] long int ID double salary , and two constructors _Default construtor Person () _Copy constructor Person ( char n[30],long int id,double s) _setPerson (char n[30],long int id,double s) that allows user to set information for each person …

Member Avatar for ithelp
0
107
Member Avatar for Project_Panda

Hello, I unfortunately failed my advanced c++ class last semester so I need to retake it. Our first assignment is to "Define a base class person that will contain universal information, including name, address, birth date, gender and identification (student, worker etc). Derive from this class the following classes: Student …

Member Avatar for ithelp
0
116
Member Avatar for Reg74

Here's my function that i call from main. However i'm getting an error "stackType undeclared" Does anyone know what i'm doing wrong ? [CODE="CPP"] template<class Type> void removeX(queueType<Type>& Q) { stackType<Type> stackQ; while (!Q.isEmptyQueue()) { stackQ.push(Q.front()); Q.deleteQueue(); } } [/CODE]

Member Avatar for Reg74
0
91
Member Avatar for hydravien

Hi, I am hopign someone will take this on as a simple little project as it would be of great help to me. I have a CNC plasma machine which cuts sheets which are about 4ft by 10ft. however, sometimes we only use about 4*4ft of the sheet. I would …

Member Avatar for nexocentric
0
193
Member Avatar for clutchkiller

I am writing an app right now that needs winmm.lib. I tried typing winmm.lib in the project properties under the correct section, but kept saying that does not exist. So i did a little research and found that if i type -lwinmm it works. I am using dev-c++. Can anyone …

Member Avatar for clutchkiller
0
115
Member Avatar for shea279

I'm looking for some sample code which would demonstrate AES encryption using SHA 256 as the hash. 1 or two .cpp or .h files would be appreciated, I prefer not to mess with huge libraries or folders of unnecessary headers. I looked on google and found a semi-functional AES example, …

Member Avatar for ArkM
0
152
Member Avatar for iconz113

can someone help me create pseudocode. Im writing pseudocode representing a payroll application, this includes over time hours, payrate, tax and social security deductions. I need to now incorporate.................................... Your pay calculation pseudocode must be changed to accept input from a file. You need to read each record from the …

Member Avatar for ArkM
0
243
Member Avatar for trung_a10

Here is my code.... #include "stdafx.h" #include <iostream> using namespace std; #include <iomanip> int _tmain(int argc, _TCHAR* argv[]) { int a,b,c,d; cout << "Previous odometer reading: "; cin >> a; cout << "New odometer reading: "; cin >> b; cout << "Gallons added to the tank to fill: "; cin …

Member Avatar for Nick Evan
0
81
Member Avatar for vikaschndr

Hi, I have created a windows service in Visual studio 2005 C++, which will encrypt a file and send it to a server using socket. For this I am using OpenSSL, I am running in to following issues 1) I could not find the library method of OpenSSL which can …

Member Avatar for vikaschndr
0
169
Member Avatar for zoner7

There is clearly something wrong with the else statements in this code. This program essentially mirrors the attack/defense rules in the game risk. The attacker roles 3 times. The defender 2. The best two roles of the attacker are taken and compared to the defender's two roles. The defender wins …

Member Avatar for zoner7
0
93
Member Avatar for nalasimbha

Hi, I am trying to extract data from a text file into an array or even a vector. The example data in the file "data.txt" is in the following manner Home number = 123456 Mobile number = 789012 Office number = 567987 Balance = 46.56 ... ... ... I want …

Member Avatar for Lerner
0
240
Member Avatar for Liszt

I wonder if anyone know if VC++ 2008 express edition have the possibility to use Secure FTP (SFTP). As I have understood that is not possible. (I am not talking about the SSL cerificate over FTP). If not, I am searching for a library that goes with this. I have …

Member Avatar for Ancient Dragon
0
124
Member Avatar for gimst19

Working on creating a matrix with given paremeters and then solving the matrix. The matrices A and C come out just fine, but there is a seg fault when I try to run the lud files. Can anyone help? Thank you very much! [code] #ifdef HAVE_CONFIG_H #include <config.h> #endif #define …

Member Avatar for Stinomus
0
187
Member Avatar for miskeen

Hi guys, Is there any special method in c++ called get and which doesn't require instantiation? I'm investigating a c++ code and a found this method ((!h264Decoder.get() || !params.get() || !in.get() || !out.get() || !splitter.get() || (!color && !No_CC_Flag))) When i tried to find this method, I couldn't find it. …

Member Avatar for miskeen
0
95
Member Avatar for Deme

Well, once again, hello. I'm trying to figure out why when i use 2 cin.getlines after eachother it skips one of them and I cant use it. Take a look if you will: [CODE] void Join() { char* Username = new char[255]; char* Password = new char[255]; ofstream DataBase("DataBase.txt", ios::app); …

Member Avatar for Deme
0
212
Member Avatar for Lukezzz

How would it be possible to disable the closebutton(X) in the upper right corner of the form. I dont want to use this property because it takes the minimize and maximize button away also. [code] ControlBox = false; [/code] The only thing I will need on the form is the …

Member Avatar for Lukezzz
0
295
Member Avatar for ganmo

Hello, I've been struggling with a problem for a while now. I'm trying to print out information which is contained in a binary file. This what I get when I open it in notepad. [CODE]Marjorie Gestring D201 ð¿ ð¿ ð¿ ð¿ ð¿ Patricia McCormick D202 ð¿ ð¿ ð¿ ð¿ ð¿ …

Member Avatar for ganmo
0
129
Member Avatar for DevC++4.9.9.2

I am trying to read a line from the command prompt and output that line to a text box in my C# application. The only catch is i can't seem to get it to read a line at a time and display it in the text box as the command …

Member Avatar for DevC++4.9.9.2
0
1K
Member Avatar for Dilbert137

Dear All, I'm starting a new project and would like to know where can i get some IT books on antivirus and network programming. Is there some basic source code for antivirus software? where can we get the list of viruses, trojans, malware so that to remove them on the …

Member Avatar for tux4life
0
120
Member Avatar for kemarS

Hi Guys, I need your help again. There is a project I'm working on for my job attatchment. It requires that I use a progress bar to show the progress of the file I am currently uploading to the database. The program's code also contains a line counter which counts …

Member Avatar for daviddoria
0
132
Member Avatar for Talguy

I am passing a dynamically sized 2D array into a function. How would I be able to tell the row size and column size the array. I know I can do this to find the total number of elements in the array: [CODE] foo(const _T ***m_data) { int dataSize = …

Member Avatar for Narue
0
3K
Member Avatar for JaksLax

I need to use recursion to find the largest int in an array. What I have so far is [code] #include <iostream> using std::cout; using std::endl; int maxArray(int anArray[], int size); /** *The main method * *@param myArray[] The array we are searching * *@param sizeOfArray The size of the …

Member Avatar for payara111
0
7K
Member Avatar for anga08628

//Write a function: int max(int list[], int n) that recursively finds the largest integer between list[0] and list[n]. Assume at least one element in the list. Test it with a main program that takes as input an integer count followed by that many values. Output the original values followed by …

Member Avatar for payara111
0
171
Member Avatar for omarzia88

please can anyone tell me how to plot a graph in c++. in input i am having values in two dim array. i want output in the form of points.on the screen.

Member Avatar for farag
0
145
Member Avatar for newcook88

How do i sort a vector based on the frequency of its elements example my vector contains 10,11,12,10,11,13,11 i need to get the sorted out put as 11,11,11,10,10,12,13 the normal sort is sort(vec.begin(), vec.end()); how do i sort it in that way

Member Avatar for newcook88
0
163
Member Avatar for kenji

Hello, This is for an assignment I have to do, I have completed most of it just can't get one part to work correctly. The assignment is: The TextFieldLoader class will have only one constructor and MUST accept the following parameters only: 1. filename (const char *) that will be …

Member Avatar for tux4life
0
100
Member Avatar for something78

Hi, I am student doing my final term project. For my project, I am suppose to create a webpage that controls the a robot, the webpage will send out commands to allow the robot to program routines. The command will be send through serial port via the webpage. I have …

Member Avatar for mail2saion
0
77
Member Avatar for xiaojesus

Hi i have this code below i am encountering that my int a,b; got error because they are delcare in private. but the code turn out fine if i delcare them in public. is there anyway i can make them remain in private. i think need to use reference or …

Member Avatar for Sky Diploma
0
89
Member Avatar for Dannyo329

Hey, Im trying to get the user to type in a file name, and then the program will copy the file to some where else like C:\ or USB or something. So far this is what I've come up with: [CODE] #include <iostream> #include <windows.h> #include <stdlib.h> #include <conio.h> #include …

Member Avatar for Dannyo329
0
137
Member Avatar for awais.abdul

please help me solving this i want to show the composition,aggregation,simple association between the classes see attatched gif image plz help me i shall be very thank full to all

Member Avatar for Salem
0
252
Member Avatar for something78

Hi, I am student doing my final term project. For my project, I am suppose to create a webpage that controls the a robot, the webpage will send out commands to allow the robot to program routines. The command will be send through serial port via the webpage. I have …

Member Avatar for something78
0
94
Member Avatar for Lukezzz

I have a backgroundworker that is running. The problems comes when you press the closebutton on the form in the upper right corner. This makes the form stuck completely. The problem is that the Worker doesn´t get a chance to finish and return the backgroundWorker1_RunWorkerCompleted event. How can I come …

Member Avatar for Lukezzz
0
111
Member Avatar for 3beer

hey, we r asked to do a student data base using c++ and I'm having problem in appending in the file without redundancy in my code i'm dealing with strings is it possible to append on the string without creating a new one or i should chose another data type …

Member Avatar for 3beer
0
104
Member Avatar for Arystar

hi im stuck i'm making a program and i made it get maximized on open with this nice code [CODE]void Openmax() { HWND hWnd = GetConsoleWindow(); ShowWindow(hWnd,SW_SHOWMAXIMIZED); }[/CODE] but now it also needs to open in the center of the screen. i tried the SetWindowPosition() and SetConsolePos() but i couldn't …

0
55
Member Avatar for Punkis448

In this work you will materialise a algorithm that solves the problem of Stable Marriage. In this problem we aim at "n" men and "n" women and our goal is the contracting of constant marriages between men and women. Obviously each man can be wedded only one woman and one …

Member Avatar for jephthah
0
348
Member Avatar for handytxg

[code] #include <iostream> using namespace std; class person { private: string name; int age; public: person(const string &getname): name(getname), age(0){ } void addAge(const string &getname) { age++; } void getAge(void) { cout << endl; cout << name << " now " << age << " years old"; } }; int …

Member Avatar for tux4life
0
259
Member Avatar for pyramid

I have been working on this lab for a couple of days. I need to write a program (using a 'for loop') that approximates pi using the following series: pi = sqrt(6* (1/(1)2 + 1/(2)2 + 1/(3)2+ 1/(4)2 + 1/(5)2 +...... + 1/(n)2)) where n is the number of terms. …

Member Avatar for Nick Evan
0
294
Member Avatar for nanchuangyeyu

Hi, I am writing some code to model the neighborhood of an element in an 2D mathematic matrix(using 2D vector) ,e.g. to an element indexed by vec_2d[x][y], I want to present its neighborhood in form of a vector which is composed of vec_2d[x][y-1],vec_2d[x-1][y-1],vec_2d[x-1][y] and vec_2d[x-1][y+1]. And following my code is …

Member Avatar for Nick Evan
0
829
Member Avatar for leowasif

i had to make the car racing game in c++ by using classes but can't understand it, the requirement of the game r it contain speed o meter, fuel and gear system and move in all four direction plz help me.... no graphic r required just simple car game on …

Member Avatar for Nick Evan
0
317
Member Avatar for Considerate
Member Avatar for HunterFish

How to sort an xml file or a text file using gtkmm? This is the sample of the file that I want to sort. <LIST> <name> Example </name> <country> <name> Country </name> <pop> <desc> Japan </desc> <uri> 100 </uri> </pop> <pop> <desc> China </desc> <uri> 108 </uri> </pop> <pop> <desc> …

Member Avatar for HunterFish
0
205
Member Avatar for amerabdullah

Hi, would someone please help me with the following quotions (the required is to implement a simulator for processes scheduling that takes a file contains N of processes each with required details,and then after reading these information from the input file ,the scheduler should schedule the processes for execution. input:N …

Member Avatar for MosaicFuneral
0
95
Member Avatar for Deme

Alright, so i'm trying to make a type of database using file i/o where you type in a username and password and it writes it to database.txt... The issue is, i'm trying to find a correct and clean way of reading, or 'searching' for the username and password and compares …

Member Avatar for valtikz
0
988
Member Avatar for Lukezzz

I have a problem when it comes to cancel a backgroundworker from working. I start the backgroundworker successfully and the worker supports cancellation is set to true. What I do is to use a button that both can run the backgroundworker and next time you press the same button, it …

Member Avatar for Lukezzz
0
115
Member Avatar for Xellos_Moon

Help me solve this problem, dont worry, im just starting out so its all very basic...and easy to you guys, i would imagine. [QUOTE]Two strings X and Y are said to be conjugates if, by shifting the symbols of Y in a cyclic fashion zero or more times, you can …

Member Avatar for ArkM
0
91
Member Avatar for Akis2000

hi.. ok here is my problem i want to make a fuction that ask from the user which series he/she wants to use and the precision (number of digits, up to 10). If after 10000 iterations the series doesn't find the value of p, it should display an error message. …

Member Avatar for Akis2000
0
351
Member Avatar for Sky Diploma

Here is a comment stripper program from which takes input from Cin and removes the comments. [CODE=C++] #include <iostream> #include <fstream> char Getchar(); char var; int main() { char ch; do { Getchar(); switch(var) { case '/': switch(Getchar()) { case '*': Getchar(); while(true) { if(var=='*'&&Getchar()=='/') { break; } else { …

Member Avatar for tux4life
0
331
Member Avatar for ulisse0

Sometimes [ICODE]_getcwd()[/ICODE] returns the parent direcory of the current one, other times returns the folder of the current user.. Has it ever happened to you-all? Thanks in advance

Member Avatar for ArkM
0
506

The End.