49,761 Topics
| |
I'd be interested to hear your views on which IDE is best for developing in C++ - Eclipse orMS Visual Studio. What are the positives of each and what are the negatives? Many thanks Mairi | |
[COLOR="Red"][U]Need Help Making Keylogger[/U][/COLOR] Hi everyone, My name is hayzam and i want to make an advanced keylogger and what to put it in a USB So when I connect my usb it will open automatically and it must be invisible one more thing i am a newbie to C++ … | |
Hi! I have a program I'm working on for class (CSC 150). I have to read a pgm file into an array, copy it to a second array, manipulate the image and then output to a second file. I'm having a heck of a time figuring out how to do … | |
I have to load two arrays, merge the two arrays into a third array, then create a control break report on name while outputting the most frequent style, then sort the array by style and to a control break on style. Can someone look at my code and see if … | |
Hello, everyone. I'm having a hard time trying to figure out how to declare and initialize my dynamic array of objects. Here is the class definition and constructor definition: [CODE=C++]class SavingsAccount : public BankAccount { public: SavingsAccount(char, int, string, double, int, double=2.00, double=0.0, double=0.0); double getinterestR() const; double getaverageDailyBalance() const; … | |
i am trying to import into a 2d array the following: line one : gpa e.x.[2.3,5.1,....] ^ ^ | | line two : id e.x.[1 ,2 ,....] and after that to sort the gpa in a descending way but in the same time the id to follow each ones gpa. … | |
Hi, Im trying to run this program using dynamic memory i cant seem to get it to keep running it crashes on me. I have the working program so the code is correct im just haveing trouble trying to convert it correctly. Thank You, [CODE]#include <iostream> #include <fstream> using namespace … | |
hey guys, I am a beginner and am having trouble loading data from an external data file and then loading it to the screen. It is supposed to be the temperatures from everyday for a year for 2 years. 1 column is 1930 the other 2000 This is my script, … | |
Ok, so I have most of the code working but I've been up for over 24 hours and I just cannot seem to get the test score to come out. Here's my code, hopefully someone with fresh eyes can spot my error, I know it has to be something simple … | |
[CODE]void BinarySearchTree::inorder(tree_node* p) { if(p != NULL) { if(p->left) inorder(p->left); cout<<" "<<p->data<<" "; if(p->right) inorder(p->right); } else return; } [/CODE] This sample of code works fine if I use it to test valuables that are primitive, example: integer I wanted to be able to transform that, so, if for example … | |
My program runs, but I am getting this message which I am fairly sure means that I have a memory leak and it is coming from my destructor. Assignment2(779) malloc: *** error for object 0x100100120: pointer being freed was not allocated I don't know what I am doing wrong. Since … | |
what does error code -25922 means.. it is coming as a value of error in my programs line error = sPSActionControl->Play(&result, eventMake, desc000001B0, plugInDialogSilent); i want to know what this error code stands for.. please help me | |
I'm trying to move functions that I have created in my .h files into the .cpp files of my winForm application. I don't really know how to get this to work. Example code in .h: [CODE]void loadCustomerDetails() { SQLiteConnection^ ObjConnection = gcnew SQLiteConnection("Data Source=SwiftService.db3;"); SQLiteCommand^ ObjCommand = gcnew SQLiteCommand("SELECT * … | |
Hello! This is my first time attempting to get help but, alas, I'm desperate! I have been working on this program for a class (and it's due at midnight). I can't seem to grasp moving data in and out of arrays using nested for loops. it's a matter of entering … | |
Hi, I am writing a simple program modeling client/server interaction. I want the server to be capable of handling multiple connections. To implement this, I have been using _beginthreadex, passing references to sockets to the child thread. For example: [code]while(1) { SOCKET sClient = accept(ListenSocket, NULL, NULL); ... child = … | |
Hi all, I've built a Queue class which basically uses dynamic memory allocation to make an array grow with every new element inserted. It compiles and works perfectly under dev c++, but when I included the class in a VC++ 10 Express project and instantiated an object from it, the … | |
ive been told to put all my sql statement together but i jus keep getting lots of errors with local variables in my vc++ project. sql.h[CODE]#ifndef __SQL_H__ #define __SQL_H__ #include "stdafx.h" #include <iostream> #include <string> using namespace std; using namespace System::Data::SQLite; using namespace System::Data; using namespace System::Windows::Forms; using namespace System; … | |
I am using Visual C++ Express Edition on Windows, and I am look at the windows task manager and I noticed that every second, in the process tab the memory of my C++ program increases about 8 K when I am not even doing anything. Also, I've noticed that if … | |
what does it mean by "error: expected unqualified-id before '=' token|" "|error: `i' was not declared in this scope|" "error: `cout' was not declared in this scope|" "error: `endl' was not declared in this scope|" for this code. int main() { for(int = 1; i < 100; i += 2) … | |
Ok, so I want to create an alternate way of creating this: *________* **______** ***____*** ****__**** ********** ****__**** ***____*** **______** *________* Note: The right side is supposed to lookjust like the left side. Note 2: Replacing the underscores with asterisks(*) This is the code I have so far, but I … | |
I wanted to make a program to help me find the locations of some double valuse in current process memory. I found some code snippets to study, but Im failing at the first hurdle. First let me be clear that I am not the author of the below code, but … | |
Hello, I really could use some help with this hangman program. I have searched all over the internet to find an answer that i can understand. I'm a beginner at C++ programming. This program prompts the user to enter a phrase. then you guess letters. if a letter is wrong … | |
/*My problem is on line with outdata1<<A3[p]<<endl; its says no operator found, help would be much appreciated*/ #include <iostream> #include <fstream> #include <string> using namespace std; struct Data { string salesperson; string style; double price; int quantity; }; int x; int y; int i=0; struct Data A1[100], A2[100], A3[100]; int … | |
Hi I have never used vedctors before so I am just wondering if this is correct or not. If not, would you mind showing me the correct way to use it? [CODE]cout << fixed << setprecision( 2 ); vector < Employee * > employees( 4 ); employees[ 0 ] = … | |
Hello, I am trying to develop a program that will not show untill a boolian is set to [ICODE]false[/ICODE], but I am having trouble making the code work. Here is the code I am using to start the program; [CODE]#include "stdafx.h" #include "Form1.h" using namespace Program; [STAThreadAttribute] int main(array<System::String ^> … | |
Hello, Can some one give me a hand on my search algorithm? I know it's not working right and am not sure how to make it work properly. It is on line #'s 69 to 73. It has to search for the name that is already stored in the array … | |
Hey everyone, I currently am creating a Card shuffling program in C++, Ive taken care of the shuffling of the deck. Now I just need to distribute a hand of 5 cards, and determine hands. Can anyone help? Please! cardheader.h ( includes both Class Card & Deck ) [CODE] #ifndef … | |
I need some code in C Or C++ witch produces a Dialog box with an embedded active X control witch Utilities The GUID & Control name & file name to find the ActiveX control I need it to compile in borland C++ 5 & work with 9X & Nt ATL.dll … | |
Hey all, I'm writing a program that is an address book using an AVL Node structure (which was provided). I defined the [I]contact[/I] class as the ItemType of the data to be inserted in each node. Initially I encountered a Segmentation fault that occured during the assignment from the AVLClass … | |
This one seems really simple but for some reason I'm not getting it! Here's the problem: USING A FOR LOOP, read 4 lines of input from the user and display it on the screen. I made my code, which works, but it only reads the first line the user has … |
The End.