51,593 Topics
![]() | |
my connnect four program will compile but nothing is displayed just a white screen i know that the code is not finished but i just need help making it display what i have so far [code]#include<u:\C Plus\LVP\gui_top.h> #include<u:\C Plus\LVP\matrix.h> //-------------------------------------------------------------------------------- class ButtonClass { public: ButtonClass(String Text, int X1,int Y1, int … | |
hi i am trying to "divide" the following code...so that it has a header file and the main file. i tried to seperate the it but when i do it says "nothing to do at all" or "nothing happened at all"(one of them) ere is the original code. can you … | |
I have two text files that I am trying to compare (test.txt and removewords.txt. If a word from removetext.txt is found in test.txt it should be excluded from the output; otherwise it should be displayed. Here is my code: [code] while ( inClientFile >> word ) { while ( inIgnoreFile … | |
<<mod edit: threads merged>> I need to write a recursion function recursiveMinimum that takes an integer array and the array size as arguments and returns the element with the smallest value in the array. The function should stop processing and return control to the caller if it receives a one-element … | |
In c++ how do I count the number of strings for the first line of a stream? | |
Hi guys, hope you can help me here. I have to write a program which does a complete shuffle of an array. For example, it would replace the array {11,22,33,44,55,66,77,88} with the array {11,55,22,66,33,77,44,88} or 12 23 34 45 56 67 78 89 90 with 12 56 23 67 34 … | |
No header file to do https in "C" Anybody knows good C based utility (not C++) that allows me to do post xml documetns via https to the server Need desperate help | |
Hi, In C++ how do I get information from a configuration file and put it in variables. A file like this one: [CODE] # # The number of inputs for each epoch # Default value if omitted: 60 # InputNumber 60 # # The maximum epochs allowed in the network … | |
Hello, I am trying to teach myself C++ and am currently studying file I/O. What I am trying to do is this (and I am sure you have heard this before): open a text file and output each word with the number of occurrences. For example, if the file contains … ![]() | |
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>> | |
hello people :) found this site via google and its helped me a great deal so far but ive hit a snag. from this topic: [url]http://www.daniweb.com/techtalkforums/thread19672.html[/url] ive managed to create an app that will sit in the system tray and can be minimised and restroed again but the problem is … | |
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 … | |
Hi All, As a non-required, ungraded, "activity", I coded the following program, and I'm wondering if there was an easier way for me to of solved the problem. Please note that this is only a second semester type course, and to this point we've only covered basic variables and constants, … | |
hi, i'm new to c++(just 3 days) and new to this forum too (so pls go easy on me). my problem is i can't remember how to use the for, while and do loops. but when i see a program with these loops in them i completely understand the program … | |
ok, quick question for those who know the standard well. when is a variable (and array and class object) set to 0 by default (all elements, all members) in C++. i know that if it's global it should be (is it?). are there any other cases? | |
hai freinds, this is pench.i have finished my psot gradution(MCA) in S.K.University.i am new to this group.plz help me if post any queris in forum. queris: 1. what is the difference between New and Malloc or Calloc in C | |
I am newbie to C. Now one urgent application i got that is.. I have to talk to the other equipment through some defined protocol using serial COM1 port in the windows environment. means i have to send 1 Command (Bytes of Hexa data) from PC as a master in … | |
Hi, I am still very new to C++ and need help with new/delete, I am posting what I wasn't able to find answers for on msn search or by myself after hours of testing.. 1. Am I using new/delete correctly? [code] char hehe[1024]; memset(hehe,0,sizeof(hehe)); sprintf(hehe,"Some Text"); char *testx; int testxlen … ![]() | |
hello, can some one pls tell me if we can ignore strings in a sentence in c++?? Eg: hello , how are you? am fine , how are you? when will you get to the party? If this is a mail then how do i ignore the word "you" in … | |
Hi! HERE IS MY PROBLEM ============== I'm interested in a function that opens for editing, then saves and closes in turn all the files in C:\DIRECTORY\ WHY THAT PROBLEM ============= The C:\DIRECTORY\ contains text files *.txt whose content should undergo some changes (that pertains to ALL THE FILES IN C:\DIRECTORY\). … | |
Hi to all, I'm new here, I start reading the forum and you have help me, now I heve the following problem, hope you can help me Thanks. Now my problem: I want to write a DLL that returns an Object I write a function in the DLL, that returns … | |
Hi all. I have been trying to teach myself a little opengl and I have the Visual C++ 2005 express edition. Now I am sure the the biggest problem is the express part, but I downloaded the windows SDK like another thread suggested. I also used the #pragma command (I … ![]() |
The End.