49,761 Topics

Member Avatar for
Member Avatar for ethompson

Hello, I am trying to figure out this program on [B]how to make it loop if Y is pressed and exit when N is pressed at the end of the program[/B]. The other problem I'm having is that this program can not have any decimals or negatives in it when …

Member Avatar for WaltP
0
199
Member Avatar for mikki2

hi, have a little problem using fstream. first here is the code... [code] #include<iostream> #include<fstream> using namespace std; int main() { string word; ofstream outl("biscuit.txt", ios::out); cin>>word; outl<<word; system("pause"); return 0; } [/code] using this, i can type a word into the input screen and it saves whatever word i …

Member Avatar for mikki2
0
2K
Member Avatar for cas777

HI, I AM CAS ORJIOKE FROM NIGERIA. I'M A FINAL YEAR STUDENT IN ELECTRICAL AND ELECTRONICS ENGINEERING. I DESIRE KNOWLEDGE ALOT. IF THERE IS SOMEONE TO ME GAIN THE KNOWLEDGE IN C AND C++, I'LL BE VERY GRATEFUL. MY E-MAIL IS ;casorjioke777@yahoo.com.

Member Avatar for Erich K
0
185
Member Avatar for molayos

We have True 64 5.1 version of Unix that has c compiler. Also we run informix-4gl. Informix-4gl cannot do http post. But it can call "C" programs. So I need to do http post through "C". Since I am not very good at "C", I couldn't change and compile uday …

Member Avatar for molayos
0
256
Member Avatar for grautu

Hi! As a beginner in Borland C++ Builder I'm facing a Linker Error message which I have no idea of how to deal with. Concretely, my console project called as "my_proj" is calling the function my_func() whose code definition is included in the source file source.cpp (this source file is …

Member Avatar for sabuj
0
178
Member Avatar for codergem
Member Avatar for iamthwee
0
284
Member Avatar for angle188.shroff

Hi, I am new to vc++. While trying to run the vc++ code i am getting the following errors. I am posting those errors and code lines where i am getting the error. If anyone knows about these errors please help me. 1)Error: Instruction Operands must be the same size …

Member Avatar for angle188.shroff
0
150
Member Avatar for jaden403

Hello, When I compile the following code I get this single error: In constructor `Point::Point expected `{' before ':' token ()': I cannot figure out what is wrong. What am I missing? Thanks. Header file [code] #include <iostream> using std::cout; using std::endl; class Point { friend void setX( Point &, …

Member Avatar for Rashakil Fol
0
175
Member Avatar for TMcIsaac

How can I make it so if the user hits the arrow key that the program will see it as input in a console application? I am using the Dev C++ compiler.

Member Avatar for nanodano
0
256
Member Avatar for Omher

Hi I'm writing an application that should have when the aplication start working, I'm using the function of C++ "GetTickCount()", the problem is that I read that this function has a 'BUG' that after '49.7' days the function return '0'. So I'm trying to write a Custom function, I thoug …

Member Avatar for dev.cplusplus
0
427
Member Avatar for arunnic

hi frnds, can anyone help me in getting a sample code for developing an IVRS using C++.if anyone is having sample code pls send it to me.thanks in advace.my id is << email nipped by wolfpack>>

0
76
Member Avatar for vietbong87

hey i need helpin in pipping a file and using those values in the file to work with the program. ive done the program but it doesnt read the file. can someone help me here. [code] #include<iostream> #include<string.h> using namespace std; //the cost of the toll gates const double A_GATE …

Member Avatar for WolfPack
0
123
Member Avatar for aeinstein

Hi All, If the user is to input text - alphabetic or numeric, when is it advantageous to use [I]getline[/I] rather than [I]cin[/I]? It's obviously easier to code something like [inlinecode]cin >> favoriteVacationSpot;[/inlinecode] than something like [inlinecode]getline (cin, favoriteVacatioSpot);[/inlinecode], so I don't see the advantage of using [I]getline[/I]. If anyone …

Member Avatar for Dave Sinkula
0
381
Member Avatar for jaden403

Hello, I think my problem is a simple one (but probably isn't) and something that I have foolishy overlooked. I have created a class (Time) with a constructor that has as its argument a 3x3 int array. It is defined in a header file as follows: [code] public: Time(int [][columns]); …

Member Avatar for server_crash
0
1K
Member Avatar for LieAfterLie

I am extremely new to C++, can sum1 tell me a faster way to output stuff than cout? It either outputs too slow or takes too long to automatically scroll or something. I was trying to sort of output and refresh in real time w cout

Member Avatar for AhmedHan
0
422
Member Avatar for aeinstein

Hi All, Short story: How do you compile two .cpp files at once? Text excerpt: "Step-by-Step 4-1: 1. Open [B]apstring.cpp[/B] and [B]stringex.cpp[/B] into a project in your compiler. The file [B]apstring.h[/B] must also be available to your compiler." All three files are downloaded from the Instructor's Text Resources of my …

Member Avatar for aeinstein
0
365
Member Avatar for aeinstein

Hi All, The program below is returning the following data... A 1 AB (empty line) 3 9 ...when it should be returning... A 1 AB 2 ABCDEFG 7 I've tried changing the assignment code statements to read [inlinecode]MyString = MyString + "B\n"';[/inlinecode] and [inlinecode]MyString = MyString + "CDEFG\n";[/inlinecode], but that, …

Member Avatar for aeinstein
0
176
Member Avatar for Joncamp

I'm running Apache 3.0, and have a c++ cgi-bin program working fine with Apache... except the cgi-bin program wont create or even read from files it uses as a database? Anybody know the answer to this one? Thanks kindly, jon

Member Avatar for Joncamp
0
114
Member Avatar for slippygod

[LEFT]Taking a chance here, as I know this is a pretty DSP (digital signal processing) specific question... (Using C++ in Visual Studio 2005) I have a series of data points that are supposed to represent a 60 Hz sine wave. However, there is both: (1) Noise in the data (2) …

0
76
Member Avatar for halloula

please i just a hint in how to start doing this home work [B]Notes:[/B] [I]There is no need to make use of arrays. In fact using arrays to store all customers' records is a bad design.[/I] Interstate Motorway Pty Limited requires you to design a program that will produce customer …

Member Avatar for WolfPack
0
228
Member Avatar for ArNy

hello iam new to c++ and i was wondering what kind of program would be the best for coding c++?thanks

Member Avatar for ArNy
0
98
Member Avatar for newgurl

Hope people dont mind (Lerner and iamthwee), but I would like to start a new post for this assignment of mine. since I think the length of the other one is putting people off and the code is now a lot different. Can someone help me finalise this (has been …

Member Avatar for Rashakil Fol
0
202
Member Avatar for type-r

can sum1 help me think of another loop to us instead of a do loop [

Member Avatar for dwks
0
49
Member Avatar for Joncamp

I am wanting to create C++ modules to load with Linux Apache web server, to give it additional functionality while not requiring a new process to be executed. I want to do this because I believe it would be faster then cgi-bin programs which require a new process space every …

Member Avatar for Joncamp
0
92
Member Avatar for rowin

Hi, How can I do the following? I have a DBGrid and I need to get values that grid. When I click on a cell in the grid, I need to get all values in the selected row. If for example there are 3 columns named ID, name and age. …

0
50
Member Avatar for grautu

Hi! As a beginner in C/C++ I'm now practicing console applications under C++ Builder. Could anybody please tell me how to enlarge the default size of the programs' console? It is too litle for some of my applications and I wasn't able to find out an enlarging recipe in the …

Member Avatar for grautu
0
200
Member Avatar for Tamir

Hi all, I programed an addin which works with ms-word. I wish to parse the text of an active ms-word document and to replase some of its words and chars. [B]How can I retrieve the documents text?[/B] How can I write text into the document? AND [B]how can I replace …

Member Avatar for Tamir
0
482
Member Avatar for insider

Hi I want to catch if someone tries to add a tuple with some existing key value. But I could not do that. Whenever I add a record with an existing key value , I get the exception EDBEngineError with message Key violation. I want to catch this exception. Where …

0
81
Member Avatar for newgurl

Hello, I am stuck on an assignment I am working on. To be honest, the way I've structured it, it goes a bit beyond me. Can someone kindly assist? I have to get the following text: 3435344 @ L Brooks,12 Shaftsbury Road,Burwood NSW 2134 3435344 A 2005/02/22/08:22:41 3435344 A 2005/03/20/08:22:41 …

Member Avatar for newgurl
0
357
Member Avatar for lette

:sad: There's something wrong with Visual Studio .Net 2003 every code I write, it could even be a simple cout code, ends up giving me 216 build errors no matter what. All the build errors are from c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include I have a final due and I …

Member Avatar for soniona
0
910

The End.