49,761 Topics

Member Avatar for
Member Avatar for Traicey

Guys I have this terrible problem, damn its a long story and the code is too much and the worst part is it doesnt show a thing, I have two structs and two data files, They both have the same primary key and somewhere along the way I have to …

Member Avatar for Nick Evan
0
74
Member Avatar for kux

I have a function that recives as one of the parameters a function pointer. If i want to pass a class method as that function, how do I do it? I tryed like this: [code] class C { public: SetVector( vector<UTF16> ); }; //function prototype void function( const string sToPlace, …

Member Avatar for Duoas
0
86
Member Avatar for picass0

i understand how to create a socket and assign a port to a socket. But how can i make a for loop to auto assign 21 ports to it? need some helps!!!

Member Avatar for picass0
0
96
Member Avatar for ramya_bugbuster

hi friends.. i got the below error while compiling a simple .cpp pgm in microsoft visual studio->vc++.. tht vcspawn.exe file is in Microsoft Visual Studio\Common\IDE\IDE98 folder.. can anyone tell me abt this problem?do i have any prob in installation?do i have to change any configuration/settings?.. Configuration: sc1 - Win32 Debug-------------------- …

Member Avatar for ramya_bugbuster
-1
498
Member Avatar for bindiK

I need help immediately to solve the following question: can somebody suggest how to code the following? Write functions OpenFiles and MergeAndDisplay: OpenFiles syntax: ifstream *OpenFiles(char * const fileNames[], size_t count); Parameters: fileNames - a pointer to the first element in an array representing the names of text files to …

Member Avatar for bindiK
0
204
Member Avatar for Lukezzz

I am creating a messagebox like this. What I wonder is how it is possible to make the "Second Row" to be "centered" in the messagebox ? [code] MessageBox::Show("This Is a Message on the first row \n Second Row"); [/code]

0
66
Member Avatar for Nemoticchigga

All my communication using this delegate and function are great between forms, but this thread for receiving compiles and all, but then throws this error. I have posted the important sections of my code. If you think I need more, let me know. Thanks. I am getting a Cross thread …

Member Avatar for Ancient Dragon
0
87
Member Avatar for ryanlcs

I am wwondering when is best practice to use pointer. [CODE]class Pen{ .... }; int main(int argc, char *argv[]){ Pen myPen; Pen *myPen = new Pen; } [/CODE] These are 2 ways to create myPen object. But what's the main diff between them? When to use it as pointer and …

Member Avatar for n1337
0
78
Member Avatar for asif.ishaq

Hi, Please let me know if anybody knows that how to get schema information of a table (e.g. columns name,data type, key columns.. etc) using c++.I don't want to use system tables query and things like that.I was searching on the net and found CIndexes and other classes but not …

Member Avatar for Ancient Dragon
0
371
Member Avatar for timdog345

[code] //pg 368 #1 /* void initialize (double& h, double& r) { h=0; r=0; } void getHoursRate (double& h, double& r) { cout<<"please enter how many hours you worked. "; cin>>h; cout<<endl; cout<<"please enter your rate. "; cin>>r; cout<<endl; } double paycheck (double h, double r) { double overTime, finalAmount=0, …

Member Avatar for Nick Evan
0
128
Member Avatar for vijaymmathews

hi how to make a vc++ application run inside a web browser is there any possible ways to work the vc++ application inside the browser as if we are browsing plese provide me information and assistance for the above question

Member Avatar for hollystyles
0
75
Member Avatar for BAEdwards

I am just posting in the hopes that somenone can explain a problem I seem to be having with Turbo C++. My application basically has two forms (Form1 and Form2). Form1 is the main form and Form2 is created dynamically, as the result of a button click event, from Form1 …

Member Avatar for thekashyap
0
166
Member Avatar for shankhs

hey I want to input a string that contain spaces such as "My name is Shankhs"; i initialized a string str; then cin>>str; but str is not taking words after spaces as if spaces are acting as a delimiter... i tried gets,getline but they does not seem to work for …

Member Avatar for shankhs
0
97
Member Avatar for zawpai

Hi, Could anyone please check my sample code? I am a beginner in C++. This code is for file comparison. Whenever I run it, the compiling result is always "Usage: compiles <file1> <file2>". I think something is wrong. Please give me some suggestions how to go through the code. Best …

Member Avatar for mitrmkar
0
156
Member Avatar for bhoot_jb

i am writing a code for a stack within stack...or nested stack...whatever.. in the code..and the mainstack is a stack of substack, which in turn, is a stack of integer data.. i thought of using class template for both the stacks - mainstack and substack..but am confused with how to …

0
58
Member Avatar for bindiK

Hi, I need solution to this immediately. Can somebdy suggest what needs to be done in the following program: Write functions OpenFile and DisplayColumns: OpenFile syntax: void OpenFile(const char *fileName, ifstream &inFile); Parameters: fileName - a pointer to the name of the file to be opened inFile - a reference …

Member Avatar for Nick Evan
0
123
Member Avatar for toolbox03

The problem is with this line inCustomerDetails[i].getCustomerProduct(productName, productID, unitCost, quantityPurchased, x); data.txt 5 Angie Ang S1234567 Y 4 Choco P0001 5.50 2 Rice P0002 10.00 1 Bread P0003 2.00 1 Chicken P0004 7.50 1 program code [code=cplusplus] #include <iostream> #include <fstream> #include <string> #include <algorithm> using namespace std; class Product …

Member Avatar for Nick Evan
0
144
Member Avatar for cobaltbass

I'm having a little trouble with some code. I'm writing a library management program. I need to be able to input title, author, isbn, etc. in the program. When the program asks for the isbn it behaves as expected. When I enter any words the program terminates, but if I …

Member Avatar for Nick Evan
0
106
Member Avatar for Hockeyfreak889

I need to make a program that outputs a random number between 1 and 10 every half of a second. Right now i dont know how to generate random numbers or use a timer so i need lots of helf here.

Member Avatar for Ancient Dragon
0
90
Member Avatar for C-+

I am having a problem trying to divide a number. So in my in my program I have a number and I want it to divide it by 10. The problem is that the result is going to be decimal. I run my program I put the number it divdes …

Member Avatar for n1337
0
136
Member Avatar for Lukezzz

I want to delete a Folder that consist of .txt Files. I am trying with this code below but the member :: Delete says that it only can emty an emty folder but this folder contains .txt files. So I wonder what other technique could be used ? [code] System::IO::Directory::Delete( …

Member Avatar for Lukezzz
0
207
Member Avatar for calichik

I need help with a RetailStore class. The class is supposed to do this Design and implement a class named RetailStore that holds data about an item in a retail store. The class should have the following private data members: 1. name - a string that holds the name of …

Member Avatar for calichik
0
97
Member Avatar for Magic Hands

I am wondering if there is a way to read an audio file to determine when the beat is greater than a given Hz? Such as every time the bass drum hits it will tell me. I do not have any code yet, I know how to play a simple …

Member Avatar for Magic Hands
0
84
Member Avatar for Jennifer84

This code Gets the last Write Time from a .txt file. My Question here. [B]1.[/B] When doing that operation. Will this file be opened or is the file closed ? [B]2. [/B]If the file was opened will the file Close automatically after the Check ? [code] CurrentSourceTime = System::IO::File::GetLastWriteTime(SourcePath); [/code] …

Member Avatar for Jennifer84
0
212
Member Avatar for h_ghoor

im a beginer in C and im writing a program that ables the user to repeatedly enter positive and integers, until the user enters a value <=0. Then prints the min and max value entered. I wrote the program but for some reason the min and max functions that i …

Member Avatar for VernonDozier
0
94
Member Avatar for Sairobi

okay I need to write a program that will basically be pulling strings from a text file based on what the user inputs. I can make a program run that gets the text file to input to the screen but I am having trouble with jumping around the file. example: …

Member Avatar for Sairobi
0
85
Member Avatar for Cybulski

I'm starting writing class that should read configuration file and initialize some members with data from file. I decided to read this file in constructor. What should constructor do, if something goes wrong, and further construction of object have no sense? For now it displays message: [code] MultiReader::MultiReader(const char* m_sPath) …

Member Avatar for Cybulski
0
95
Member Avatar for QuantNeeds

The following is my code. I am just getting started in C++ so there are few concepts I am still stuck on. This program works well except for one issue – the data type is integer but it is not catching decimal numbers. In my other programs this worked but …

Member Avatar for n1337
0
79
Member Avatar for nanodano

Hi, I'm trying to write a program using named pipes, and I'm having trouble opening it. In another program I call this line: [code] mkfifo("./fife", 0777); [/code] So my named pipe exists and I see it in my list of files. Then I run the program I included below, but …

Member Avatar for Salem
0
177
Member Avatar for mghmgh

I need to write a program that read of input a number N numbric & calculate N! that's number (should be simulator of multiply into program because us want number N ) & should be Number of character for e.g char s[20].

Member Avatar for n1337
0
261

The End.