49,761 Topics
| |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 &, … | |
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. | |
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 … | |
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>> | |
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 … | |
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 … | |
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]); … | |
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 | |
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 … | |
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, … | |
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 | |
[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) … | |
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 … | |
hello iam new to c++ and i was wondering what kind of program would be the best for coding c++?thanks | |
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 … | |
| |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
: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 … |
The End.