49,761 Topics
| |
A little project I am doing for fun. I want to make a self extracting exe that will take files of format .scx and extract them to a location on the computer based on a registry key that I know of. The key will help locate the location of the … | |
Hiya. I have this program that gives me alternating squares that switch from full squares to hollow. The problem I am having is that the squares that should be hollow are showing up with numbers in them like this. Anyone know what my problem is? [CODE] *** *** *** 0000 … | |
Hi all, I'm writing a program to read from a stream file, one line at a time, I used getline() and fgets(), both gives a correct result, but they give a "segmentation fault" when reading the last line of the file, I think because of the NULL character at the … | |
I have the following piece of code which works fine [CODE]data[person].history[data[person].trans]= "CASH WITHDRAWAL 100.00 GBP";[/CODE] but how would I write it so instead of 100.00 it inputs a float called safe_input2 | |
Hi, Can anyone help me finding an application which can read listbox values of any other window on screen and save the list items either to clipboard or some text file, etc. This may be done by getting the handle of the window/listbox and then reading the values, etc. I … | |
for lines 14, 15 and 16 the error is that I have undeclared identifiers for a, b and c. Does anyone know how to fix this? thanks for your help. [CODE]#include <cmath> #include <iostream> #include <string> using namespace std; bool die(const string & msg); bool getDouble(double a, const string & … | |
Hi, i have this assignment to do and i dont really know what i have to do could someone tell me what i have to do in simpler language thanks Here is the assignment: Create a program which: Implements a class called Queue: The class should contain an array of … | |
here is part of a C++ function that i'm having difficulty translating [CODE]void rotate(int ls[], int n) { int j; int temp; temp = is[0]; for(j=0; j<n-1; j++) { ls[j]=ls[j+1]; } ls[n-1]=temp; }[/CODE] so far this is what i have [CODE];void rotate(int ls[], int n) j3: .EQUATE 0 temp: .EQUATE … | |
Hello Guys! it's been a while. Lately, I've been wanting to study & explore C/C++ more. Because of this, I've done a lot of exercises that was given to us at school and some more around the net, but sadly the one that I'm really looking forward to the the … | |
[QUOTE=muusa;1123806]hey sam i already sucessfully completed the project .just mail me ur info at [email]yahoo.musa@gmail.com[/email] ,would be very happy to help u out[/QUOTE] hi muusa help me i am also doing a project to develop a online c++ compiler. but i am not getting any way to start it at … | |
Hi.. please help me with this problem I want to output stars in this shape: * * * * * * * * * * * * * * * * just give me the idea to do this in an recursive function ?? i tried but its not showing … | |
Hi I'm having calculation error is the function - fraction::GCD(int& gcd, int e, int f) Example: If u enter 1/3 for both first and second fraction The unsimplified fraction would be 6/9 And when u call the GCD function and do the calculation by urself u can see that it's … | |
I'm a little new to c++. I have written a code for a base conversion program. It handles base conversion between bases 2-36 and stops when the user enters "0". I have written the program, however I still need to make it convert whole numbers instead of just integers. Ex: … | |
Hello everyone, I just wrote a source code in C++ and compiled it successfully but every time i try to run it, it gives me a linker error. ie: Linker error: Unable to open file 'TCDEF.EXE'. Please help. Blahhaha | |
i want to write a a program that will accept student name and grades and output it.use an array data structure in the implementation this program and implement the following write method that will traverses the array and allow the user to perform the following processes a) search for a … | |
I successfully configured MYSQL with VS2008, i executed the following code, and no errors were thrown. [CODE] #include <mysql.h> #include "stdafx.h" void main() { }[/CODE] Now i need to write a C++ code to retrieve some values from a Database, therefore i used the following code; [CODE] #include <mysql.h> #include … | |
this is my header: [CODE]#include <string> using namespace std; class node{ public: friend class mesh; private: int id; double x,y,z; }; class element{ public: friend class mesh; ~element(); //private: int id; int type; int groupid; int geoid; int nodNum; int *nodeid; }; class mesh{ public: mesh(string filename); void showMesh(); ~mesh(); … | |
Hokay so, i gotta make a program that reads an adjacency matrix from a data file and then outputs which nodes are adjacent to the others. In the data file there are 0's and 1's, 0 means that they are not connected and a 1 means that they are. I … | |
* Title Typo = / * Hi there, I'm working on a small section of code which will be used in a very large c++ game for my final project. I'm doing an interactive RPG/Fighting game but I'm running into an error. I have a Player class and an Enemy … | |
I have just run into ridiculous problems with arrays, and it appears I have no idea how they work, so I need some help. I have this class: [CODE]class pixelmap{ public: pixelmap(const uint& width, const uint& height); pixelmap(); ~pixelmap(); uint width; uint height; uint *values; pixel *pixels; void setValues(); void … | |
I really have no idea where to start. Please only respond if you actually want to help. Not to name names, but [B]some [/B]people on here are just rude. Here is the assignment and any advice will be [B]greatly [/B]appreciated! 1. Write a program that allows the user to enter … | |
Hey all, I'm implementing a hash table for a spell checker and need some assistance on vector const_iterator - at least I think that's where the problem lies. Can anyone assist in diagnosing how to fix these compiler errors? I initially got this error, which i think will come back … | |
Hello I am trying to read from a file. I'm followed a tutorial and had it working perfectly before, and it still does now.. But the problem is that one variable that I'm reading from the file is causing my program to crash. All the other vars I'm reading, are … | |
Hello... I wanted to know if there is a way by which I could use SPY++ or any other such application to get the list of handles and controls (as displayed on its user interface) in a text file to be used in a C++ program. | |
[CODE]#include <WinSock2.h> #include <WinSock.h> #include <process.h> #include <time.h> #include <iostream> using namespace std; class PoPSocket { public: void Socket() { const int iReqWinsockVer = 2; // Minimum winsock version required WSAData wsaData; if (WSAStartup(MAKEWORD(iReqWinsockVer,0), &wsaData)==0) { // Check if major version is at least iReqWinsockVer if (LOBYTE(wsaData.wVersion) >= iReqWinsockVer) { … | |
Hello... I want to make a program that could list down all the controls (buttons, drop down menu, text boxes, etc) of a running application(e.g. an installer, browser) whose handle information is stored within the program. Later I would like to initiate actions with the controls found (e.g. click a … | |
So here's the problem... my program is supposed to prompt the user to enter a number and use that value to determine what function the program should call via a switch block. Unfortunately, it seems that my program doesn't let the user enter an option and just keeps running the … | |
How do i get the number of items a itembox is carrying? I tried [CODE]MessageBox::Show(listBox1->Items);[/CODE]but no luck Thanks in advanced. | |
Hi everyone, I've a problem to programming a sorting function. can you help me out? input 3 1 2 3 4 5 6 7 8 9 4 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 output 1 2 4 3 5 7 … | |
[CODE]#include <iostream> #include <fstream> #include <sstream> #include <cstdlib> #include <string> using namespace std; int dectoint (string st); int hextoint (string st); int bintoint (string st); string inttobin (int n); string inttohex (int n); int main() { string st; cout<< "Enter a number in dec,hex,or binary: \n"; getline(cin,st); if (st[0]=='$') cout … |
The End.