49,761 Topics

Member Avatar for
Member Avatar for MasterGberry

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 …

Member Avatar for MasterGberry
0
127
Member Avatar for bookmark

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 …

Member Avatar for VernonDozier
0
127
Member Avatar for majood

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 …

Member Avatar for VernonDozier
0
1K
Member Avatar for berwick53

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

Member Avatar for berwick53
0
94
Member Avatar for codecodile

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 …

Member Avatar for rohan1020
3
390
Member Avatar for bookmark

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 & …

Member Avatar for Narue
0
274
Member Avatar for digan

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 …

Member Avatar for digan
0
95
Member Avatar for bigwhiteegg

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 …

0
67
Member Avatar for esy928

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 …

Member Avatar for Shankye
0
363
Member Avatar for jugadengg

[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 …

0
58
Member Avatar for Mona..

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 …

Member Avatar for Mona..
0
966
Member Avatar for aznlitomik3

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 …

Member Avatar for jonsca
0
147
Member Avatar for jengah27

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: …

Member Avatar for VernonDozier
0
788
Member Avatar for blahhaha

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

Member Avatar for jonsca
0
41
Member Avatar for atoivan

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 …

Member Avatar for jonsca
0
217
Member Avatar for localp

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 …

Member Avatar for localp
0
271
Member Avatar for wst

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(); …

Member Avatar for jonsca
0
161
Member Avatar for tKc

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 …

Member Avatar for mrnutty
0
473
Member Avatar for Dmiller071

* 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 …

Member Avatar for Dmiller071
0
192
Member Avatar for foliot

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 …

Member Avatar for StuXYZ
0
191
Member Avatar for gpjacks

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 …

Member Avatar for Fbody
-2
109
Member Avatar for lasl0w

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 …

Member Avatar for lasl0w
0
444
Member Avatar for Billybe

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 …

Member Avatar for Billybe
0
247
Member Avatar for rohan1020

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.

0
60
Member Avatar for MixedCoder

[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) { …

Member Avatar for MixedCoder
0
290
Member Avatar for rohan1020

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 …

Member Avatar for Agni
0
127
Member Avatar for jsav

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 …

Member Avatar for Fbody
0
846
Member Avatar for Martje

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.

Member Avatar for daviddoria
0
116
Member Avatar for kuromiyaruka

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 …

Member Avatar for daviddoria
-1
68
Member Avatar for hdb25

[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 …

Member Avatar for flukebob
0
205

The End.