51,593 Topics

Member Avatar for
Member Avatar for luckycharms3657

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 …

Member Avatar for luckycharms3657
0
527
Member Avatar for mikki2

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 …

Member Avatar for mikki2
0
321
Member Avatar for jaden403

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 …

Member Avatar for jetru
0
161
Member Avatar for waseem3000

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

Member Avatar for Lerner
0
269
Member Avatar for gampalu

In c++ how do I count the number of strings for the first line of a stream?

Member Avatar for Dave Sinkula
0
411
Member Avatar for hay_man

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 …

Member Avatar for tech2me
0
199
Member Avatar for molayos

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

Member Avatar for Salem
0
110
Member Avatar for gampalu

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 …

Member Avatar for gampalu
0
223
Member Avatar for l0g0rrhea

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 …

Member Avatar for iamthwee
0
217
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
203
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
186
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
266
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
181
Member Avatar for codergem
Member Avatar for iamthwee
0
287
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
153
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
178
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
259
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
440
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
77
Member Avatar for tenbellys

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 …

Member Avatar for ilovcars
0
212
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
125
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
384
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
438
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
369
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
178
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
117
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
77
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
236
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
102
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
206
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
50
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
100
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
209
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
491
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
82
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
359
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
919
Member Avatar for aeinstein

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

Member Avatar for aeinstein
0
1K
Member Avatar for mikki2

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 …

Member Avatar for Dave Sinkula
0
188
Member Avatar for invinate

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?

Member Avatar for invinate
0
90
Member Avatar for pench

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

Member Avatar for SpS
0
624
Member Avatar for lchamarthi

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 …

Member Avatar for Salem
0
168
Member Avatar for ok555

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 …

Member Avatar for iamthwee
0
243
Member Avatar for achala

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 …

Member Avatar for SpS
0
102
Member Avatar for grautu

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\). …

Member Avatar for grautu
0
199
Member Avatar for Omher

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 …

Member Avatar for WolfPack
0
228
Member Avatar for BlackManta

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 …

Member Avatar for iamthwee
0
567

The End.