64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for justbboying

hi .... i have written a programm which solves the math equation : x = -b +- square root of b ^ 2 - 4 (a)(c) all / 2(a) programm is really short since am still a beginner so heer it is : import java.awt.*; import java.applet.Applet; public class MathEqu …

Member Avatar for justbboying
0
136
Member Avatar for irish

I am taking a class in C and I am having a problem bringing an int through scanf. I have to create a function that will check a date in this format (MMDDYY). So I have set up a scanf for the users input and then I bring it into …

Member Avatar for vegaseat
0
158
Member Avatar for fero45

Hi Integers ahve a range from -32.767 to +32,767. How come I can use the following code: int a = 1000000; int b = 5000000; int c = a + b; cout << c << endl; ... and it works? Thanks Frank

Member Avatar for fero45
0
153
Member Avatar for skeet123

Can someone point me in the right direction on implementing a merge sort. Here is what the main program will look like. THanks. [CODE]int main(void) { int ar[100]; int i, v, len; for (i=0; i<100; i++) { cout << "enter a number (-1 to quit): "; cin >> v; if …

Member Avatar for vegaseat
0
189
Member Avatar for dalaharp

hi, in turbo C the maximum array size i am able to specify is array[250][250].. what should i do to enlarge this size to say..array[512][512].. i dont know a thing about memory allocation, so please help me out/.. :-|

Member Avatar for vegaseat
0
166
Member Avatar for sridarravi

I am new to C++ and so how do i start my first programs. Can some one tell me what i need to do first. Also can someone send a free online C++ book?

Member Avatar for vegaseat
0
120
Member Avatar for tyalangan

Hey everyone. Been doing C for a little while now and this website has helped me in advancing my knowledge and skills in C programming. I have another question now... it's really bugging me actually... I'm trying to make a program basically just encode and decode. It seems too simple …

Member Avatar for vegaseat
0
161
Member Avatar for rangers10

hi, just a quick question i have created a program to input 6 numbers, but the problem is that i need it to subract the highest and lowest numbers then add the remaining numbers left. im new to "c" and cant figure this out i just need someone to point …

Member Avatar for alc6379
0
163
Member Avatar for missy

i am trying to avg scores but i keep getting errors, can someone please help me. [code] #include "stdafx.h" #include <iostream> using namespace std; const int SIZE =3; int main() { int sum=0; int tests[SIZE]={0}; float average; char terminate; cout<<" Enter test1:"; cin>> tests[0]; cout<<"Enter test2:"; cin>> tests[1]; cout<<" Enter …

Member Avatar for vegaseat
0
126
Member Avatar for lizjci

im studying programming fundamentals..I dont know what is the commands and syntax of c language, pls can u give me some definition and information about c language...thnks!!!!!!!!! ;)

Member Avatar for Sphyenx
0
714
Member Avatar for see_moonlight

How can i find out the Max and Min value from a Vector, what's the function can i use to do that? max_find() e.g. double x[]; double x_max; double x_min; x_max = max_find( x ); x_min = min_find ( x ) ;

Member Avatar for britt_boy
0
882
Member Avatar for potential

guys, i need your help. please... i need to make a function which compares 2 values if they are equal up to 1,2,3,4,5 significant figures. it needs 3 parameters: x1, x2 (the values to be compared) and sf (the # of sign. figures) i think i need to subtract x1 …

Member Avatar for anastacia
0
122
Member Avatar for Reagan

I am working on a time card program in Visual C++ (FYI: I am VERY new to this, so, please, be gentle with me) :) It compiles with 0 errors and 0 warnings, but when it executes I get an error message that the program needs to close. When I …

Member Avatar for Reagan
0
534
Member Avatar for C++Newbie

Hello, This is my first post. Anyway.. I am having trouble with my c++ program. My assignment is to read from a file a 2-Dimensional array. However, when attempting to do so with my code, which i'm guessing is faulty, I keep getting this error while using Borland Turbo C++ …

Member Avatar for jwenting
0
564
Member Avatar for netjet

I can't figure out how to keep it from running off the array and going crazy. I tried a few functions, but they either get rid of my output or funk it up. I want the knight to be a 3 the kill spots a zero and everything else a …

Member Avatar for netjet
0
108
Member Avatar for Starlight620

I ran my C++ program and got these error messages. I have no idea what they mean. :?: Will somone please help. error LNK2019: unresolved external symbol "int __cdecl GetInformation(int,int,int,char (* const)[15],char (* const)[15],float * const,float * const,float * const,float * const,float * const)" (?GetInformation@@YAHHHHQAY0P@D0QAM1111@Z) referenced in function _main fatal …

Member Avatar for nvanevski
0
179
Member Avatar for AllenN

New boy -easy question - doing a tutorial and the compile and run work but the only time I see the program partially running is when I put in a cin - I have looked but I cannot find how to put in a pause and allow me to see …

Member Avatar for vegaseat
0
183
Member Avatar for santa_barbarian

I am a java programmer trying to understand a c++ oddity that I ran into. My c++ program writes a few MB of data using ofstream. Just before the program ends I close the ofstream. However when the program terminates, the amount of free memory on my linux box has …

Member Avatar for santa_barbarian
0
185
Member Avatar for CNewbie

I am trying to write a program that takes a series of numbers input by a user and performs some calculations on it. While I have most of the code put together and working perfectly fine, I haven't been able to write code that will refuse the users input if …

Member Avatar for vegaseat
0
165
Member Avatar for Faramba

Please help me with this: Declare an integer array named "scores" to contain 50 elements. & Generate a code (a loop) that will initialize every element in the array from the above declaration("scores") to the value 75.

Member Avatar for jwenting
0
148
Member Avatar for nowmn
Member Avatar for Moo The Cow

Hi, this is the first time that I've used C. Anyway, I downloaded a C compiler (dev-C++), and I typed in this: #include <stdio.h> main() { printf("Hello, world!\n"); return 0; } When I run the program, it doesn't print the "Hello, world!", but I just see a dos window quickly …

Member Avatar for harshchandra
0
156
Member Avatar for loveboy23

can anyone explain this programing codes? proc1.c #include <stdio.h> int main() { int fork_return; fork_return = fork(); printf("PID=%d, PPID=%d, fork_return=%d\n", getpid(), getppid (), fork_return); sleep(10); /* wait for 10 sec */ return 0; } proc2.c #inlcude <stdio.h> int main() { int chpid=fork(); if (chpid < 0) { printf("ERROR\n"); exit(1); } …

Member Avatar for vegaseat
-1
116
Member Avatar for chunguy

hi anybody out there, i need help, how do i change the value of a URL argument? Example: URL: http://localhost/main.php?name='abc'&age='24' how do i change the value of argument "name" and resend the information back to main.php without changing the age value.

Member Avatar for chunguy
0
227
Member Avatar for b3h_05

hi..im new here and i am having trouble with my program..using DOS-based C++, i have to create a program that will use a mouse pointer but unfortunately i don't know how to create one because that is beyond our topic..so if anyone could help me..please give me the code and …

Member Avatar for jwenting
0
133
Member Avatar for skamen

Hi, This is really a logic problem more so than a stright up C++ problem. For class I have written a program that takes dates from a text file and then finds the number of days from January 1st 1800 that days is. The program also has to be able …

Member Avatar for vegaseat
0
2K
Member Avatar for harshchandra

Can anyone tell me the complete algorithm analysis of Tower of Hanoi for n pegs and n disks.I really need it :sad:

Member Avatar for harshchandra
0
270
Member Avatar for Nyika

I am writing a turtle graphics program and I need help with 2 characters to show when the direction of my turtle is up or down. I am using cout << ">"; cout << ">"; for right and left and right directions. Any help will be greatly appreciated since my …

Member Avatar for vegaseat
0
1K
Member Avatar for paynekiller

hey all, what would be the calculations needed for making a simple sprite opject point towards the cursor position? ta

Member Avatar for vegaseat
0
137
Member Avatar for elum

Here is my problem. My code consist of two edit boxes: IDC_BOX_1 and IDC_BOX_2. and one button to Execute. The idea is for someone to enter a number in the first edit box, IDC_BOX_1, and after pushing the Execution button, the number in IDC_BOX_1, gets multiplied by two and displayed …

Member Avatar for elum
-1
113
Member Avatar for fivetoesonefoot

hey i was wondering if someone could help me with this problem. i am so incredibly and utterly confused. here it is... write a simple phone directory program that looks up phone numbers in a file containing a list of names and phone numbers (called input.txt). the user should be …

Member Avatar for Tresa
0
203
Member Avatar for bajanstar

Hi, I am very new to this forum and i have a problem with my C assignment. Im using Borland C++ 4.52 and i keep getting an error saying: General Protection Exception 0x241F:0X41C1 NONAME02(1)0X241F:0X41C1 Processor Fault It not the computer its the code at least thats what i figured because …

Member Avatar for bajanstar
0
127
Member Avatar for Der_sed

the typical question which ask user to display THIS * ** *** **** ***** ****** ******* ******** ********* ********** using a single cout<<"*" & cout " " with the help of [B]for loops ONLY[/B]. :) ive come to this this prgram but can anyone tell me where i am going …

Member Avatar for Der_sed
0
113
Member Avatar for SelArom

it's really frustrating to be looking in my textbook and see something like [CODE]void apd(vector& a, int j, int n) for (j = vector[a]; n > j; j--) j++; [/CODE] I would change it to something like [code] void functionName(vector& theArray, int position, n target) [/code] that way I know …

Member Avatar for Chainsaw
1
162
Member Avatar for Young Teck 06

I need some help, what would everybody out there recommend for a C++ Compiler. I am thinking about paying $110 for Visual C++ "Standard". Does anybody know if this software is great and what are the best features of it. Other recommendations are also welcome.

Member Avatar for vegaseat
0
369
Member Avatar for zack_rage

im studying programing fundamentals. I dont know what is the commands and syntax of c language..can u give me some information and tutorials about this c language....coz, i can't find any website about c language, is there any tips on creating basic programs..thnks!!!!!

Member Avatar for zack_rage
0
177
Member Avatar for epsos

hi everyone i have been using ict for about 6 years now and want to learncomputing e.g programming and was wondering where to start becaause people post codes and i have no idea what they are on with and was wondering if there is any good sites where u can …

Member Avatar for epsos
0
186
Member Avatar for Tresa

hai can anyone please tell me whether it is possible to make graphics work in borland c++? thanks Tresa

Member Avatar for Narue
0
119
Member Avatar for hopeolicious

I dont know what they mean by undetermined character constant [code] #include <iostream.h> #include <stdlib.h> class student { char st_name[25]; char st_major[25]; int i_test1; int i_test2; int i_test3; int i_average; char ch_grade; char ch_option; public: void getdata(); void processdata(); void putdata(); }; int main() { do{ student.getdata(); student.processdata(); student.putdata(); cout …

Member Avatar for vegaseat
0
283
Member Avatar for vegaseat

I found this neat little GUI calculator program on the net. It uses a function called _gcvt(double val,int limit,string cBuf), which seems to be used to convert a double val to a string cBuf, with some formatting and limiting. I replaced it with sprintf(), but the output looks rather crude …

Member Avatar for vegaseat
0
301
Member Avatar for boshkash1986

Please i want the code of the function which could get the serial number of the Hard-disk of any computer Please Can anyone help ?

Member Avatar for vegaseat
0
116
Member Avatar for tsverrir

Hi there. Im new to C++ programming, but I know my way around Delphi. I'm doing a project that must be made in Borland C++ Builder. My problem is right aligning items in TListBox and TComboBox. Any help would be appreciated. kv.TSverrir

Member Avatar for vegaseat
0
234
Member Avatar for lost_c++_dude

I've been working on this for hours I know the errors are staring me in the face but I just can't see them. Any help would be greatly appreciated. //prb01-1.cpp //This program calculates the total surface area of a pool #include <iostream.h> #include<iomanip.h> //using namespace std: int main() { const …

Member Avatar for frrossk
0
422
Member Avatar for phr0stbyt3

hi... im a bit new to this forum. i saw it on google and decided to join up... im working on a calender like program for my computer science 102 course. the parameters are as follows: Make a program that, when given the mm/dd/yyyy, can decide what DAY the user …

Member Avatar for Narue
0
119
Member Avatar for Ness1879

The computer is a Dell Optiplex GX270, running Windows XP Pro., and Office 97 Pro. I've had Office 97 running on this computer for a few months and Access was fine. I went to open it and got an error saying it couldn't be opened because there was no license …

Member Avatar for woofy
0
146
Member Avatar for tionik06

:rolleyes: This is a program where the user enters how much they owe, then they enter how much they are gonna pay, like (30 dollars for a $25.63 amount), and their change is calculated back to them in ten dollar bills, five dollar bills, one dollar bills, quarters, dimes, nickels, …

Member Avatar for vegaseat
0
149
Member Avatar for willow

I have tried various break statements and I cannot get my program to break correctly. Original program is a nested loop asking user for input for either an ascending or descending triangle. That works. But when I try to add a break, it either runs after entering how I want …

Member Avatar for vegaseat
0
124
Member Avatar for dcving

I fixed the whole program. :twisted: . I compiled it after each step to make sure there were no errors, if so I corrected them. :mrgreen: . I do, however, have 2 questions. :?: . How do I get the highlighted lines [COLOR=Red]below[/COLOR] to center above the [COLOR=Red]****************[/COLOR] :?: And …

Member Avatar for N3wbi3C0d3r
0
197
Member Avatar for kakilang

can someone explain to me what does below code do?? [PHP]keybd_event(VK_MENU,0x38,0,0); keybd_event(VK_RETURN,0x1c,0,0); keybd_event(VK_RETURN,0x1c,KEYEVENTF_KEYUP,0); keybd_event(VK_MENU,0x38,KEYEVENTF_KEYUP,0); [/PHP]

Member Avatar for Narue
0
352
Member Avatar for javaLearner

hi. more or less a stupid question, but anyway.. why have a 'finally' statement in java exception handling -why not just clean up in the 'catch' clause?? is it for when an exception cannot be caught?? if not, then 'finally' seems a little redundant to me.. cheers. :eek:

Member Avatar for javaLearner
0
137

The End.