43,549 Solved Topics

Remove Filter
Member Avatar for
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 …

Software Development c++
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 …

Software Development c++ display
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 …

Software Development c
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.

Software Development c c# c++
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!!!!!

Software Development c c# c++
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 …

Software Development c++ first-post
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

Software Development c++
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 …

Software Development c++
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 …

Software Development c++ gui
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 ?

Software Development c
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

Software Development c++ delphi
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 …

Software Development c++ display
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 …

Software Development c++ first-post google
Member Avatar for Narue
0
119
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, …

Software Development c
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 …

Software Development c++
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 …

Software Development c++ display
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]

Software Development c
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:

Software Development java
Member Avatar for javaLearner
0
137
Member Avatar for sunny124

hi, my next button displays next record from the database. But after i save a record, next button don't work. Im not sure but is the next button not working because the resultSet needs to be refreshed after saving a new record? I have created the statement and resultSet in …

Software Development display first-post java sql
Member Avatar for sunny124
0
112
Member Avatar for Sanirsanir

hi guys, Anybody tell me a site where free system available on C language. Thanks in Advance, Sanir

Software Development c c# c++
Member Avatar for vegaseat
0
334
Member Avatar for wewe

Hi i have a problem linking upthe files main.cpp tree.cpp tree.h and list.ct really do not know how to complie with list.ct whats the ct ? anyway inside the list.ct, are templates. it reflect linking problem.. i.e. [Linker error] [B][I]undefined reference [/I] [/B] to `Tree::cleanUp()' [B] Question:[/B] what should i …

Software Development c++
Member Avatar for wewe
0
122
Member Avatar for tendekai

#include<stdio.h> #include<conio.h> #include<string.h> FILE *fp1, *fp2; int count; struct record { char name[20]; int empnum; char depart[20]; float hours; float rate; }; void main() { struct record h; int acount=0,adcount=0,scount=0; float grosspay,totalg=0; float tax,totalt=0; float health,totalh=0; float pension,totalp=0; float netpay,totaln=0; float deductions; clrscr(); fp1=fopen("employ.dat","r"); fp2=fopen("payrol.dat","w"); count = 0; printf(" ""Page1\n"); …

Software Development c
Member Avatar for vegaseat
0
131
Member Avatar for Dani

This might sound silly. But I'm working on a C# assignment for school right now, and I can't get a simple if-else statement to work. Isn't the syntax the same as in C++ or Java? I want to do one thing if a boolean variable is true, something else if …

Software Development c#
Member Avatar for guitarded
0
421
Member Avatar for Jpowers22

Recently we have been asked to create a hybrid sort based upon quicksorting down to a certain point and insertion sorting from then on. We are to calculate the efficency based upon previous tests. I had very little problems implementing a quicksort algorithm, but for the life of me, I …

Software Development algorithm c
Member Avatar for subtronic
1
3K
Member Avatar for skywing

Is there a way to change the button's shape from rectangle to circle like those in Windows Media Player ? :?:

Software Development c
Member Avatar for vegaseat
0
150
Member Avatar for minnie

[B]Is it possible to convert from VB code to C and what is the best way to do this?[/B]

Software Development c
Member Avatar for vegaseat
0
437
Member Avatar for jaeSun

i havent been able to find anyone to help me .... i am looking to create a queue .... i cant use a stack, as that is LIFO (last in, first out) ... but i need a FIFO (first in, first out) .... i have some code for a stack …

Software Development c queue
Member Avatar for jaeSun
1
291
Member Avatar for ray96

Hi! I had 1 problem in C, now I have another one. :o Please bear with me. I am learning the C language. Please run the following calculation in a scientific calculator. When the "=" sign is shown at the end of the calculation, be sure to press the = …

Software Development c
Member Avatar for vegaseat
0
338
Member Avatar for matika

#define ENDFILE "CTRL-Z" this end the file whenever the user enter CTRL-Z what i need, i want the user 2 enter CTRL-X to end the program #define ........ "CTRL-X" ( what could i write here) so the program end whenever the user press CTRL-X

Software Development c
Member Avatar for matika
0
191
Member Avatar for Ghost

In java, how do you input something from the keyboard - the standard way(don't import anything - or add a file) Thanks!

Software Development java
Member Avatar for Ghost
0
113
Member Avatar for perky_jing

how do i make the number of my textfileds dynamic? the number of my textfield depends on the parameter passed through the method `setDetailsPanel(int s)`. the variable s determines the number of textfield i need. i'm having this type of error. i don't seem to get the reason why. D:\Program …

Software Development java java-swing
Member Avatar for perky_jing
0
1K
Member Avatar for Ghost

What's the coolest program you've ever written in regular C++, not Visual C++?

Software Development c++
Member Avatar for shouvik
0
415
Member Avatar for RobinA

hi im new to c++ (started today) and im reading a book about c++ (called C++ Programming A) Well i started to read and learned the first code and wrote it in Microsoft Visual C++ and i get a error (error C2065: 'cout' : undeclared identifier) i dont know why …

Software Development c++ first-post microsoft
Member Avatar for FireNet
1
235
Member Avatar for srthomso

Could anyone give me a hand with my mock exam, i'm on msn - [email]get_jiggy_widit@hotmail.com[/email]. I'm struggling a bit - with some of the simple things really n it's getting on my nerves. Any help would be greatly received. Thanks Steve

Software Development email java
Member Avatar for srthomso
0
136
Member Avatar for RITZY_G

ANY ONE WHO CAN PLEASE HELP........ Design and write a C++ program for the problem given below. Apply the rules of good programming style by making your program modular, and using parameters and local variables in subprograms or functions. Add comments where necessary for each function. Use meaningful variable names. …

Software Development c++
Member Avatar for RITZY_G
0
166
Member Avatar for Mr A

I need some help, heh, i have to store a twelve digit number somewhere... as i've understood it nothing like unsigned int or long double or anything won't work :-/ have i missed something? or can anyone point me to anything which i can use to be able to do …

Software Development c++
Member Avatar for The Code Poet
0
231
Member Avatar for salating

i have four combo boxes in my form, each combo box has 2 or 3 selections i need to check each combo box for a selection, if nothing is selected i need to have a error message come up in a message box each selection in the combobox is woth …

Software Development vb.net
Member Avatar for Eyrestes
0
155
Member Avatar for yadi

hi everybody i have a homework to write a program which displays leapyear it is for tmorrow pls anybody send it for me thanks in advance

Software Development c
Member Avatar for alc6379
0
146
Member Avatar for Dani

How can I read a string in from the user? For example, I am writing a console-based java application which prompt the user to enter a string and then reads that string in. What is the opposite of System.out.println? ;) System.in.readln? I can't get it to work and I'm a …

Software Development java
Member Avatar for gusano79
0
264
Member Avatar for MaxC

Hello guys, This code returns 2 errors and I dont understand why. [CODE] #include <iostream> #include <string> using namespace std; char choice; void M(); void C(); void Process(); void M(){ cout <<"Multiplication\n"; } void C(){ cout << "Calculation\n"; } void Process(){ cout << "Make a choice\n" << "C or M …

Software Development c++
Member Avatar for kc0arf
1
216
Member Avatar for onickel

Hi! Pls, somebody help me!! I'm stuck here since days. I don't know, what i'm doing wrong.

Software Development c linked-list
Member Avatar for onickel
1
116
Member Avatar for kalachylde

Hello, I need help with me homework. It's probably something simple. My program is supposed: 1) read lines from a file (rain.txt) 2) find the shortest and longest lines (I used strlen()) 3) return the line number of shortest and longest and well as their length 4) show the avg …

Software Development c++
Member Avatar for kalachylde
0
186
Member Avatar for Ronnie

I have two classes. The first collects input data and calls a second class for inputing data from a file. After the data is read I would like to use it inother classes but am having problems getting the data back. To save space I will only show part of …

Software Development java
Member Avatar for Ronnie
1
162
Member Avatar for Transworld

[color=black][font=Times New Roman]If anyone still knows Qbasic could you take a look at this code for me?[/font][/color] CLS READ nam$, addr$ DO UNTIL nam$ = "END OF DATA" PRINT nam$, addr$ READ nam$, addr$ LOOP DATA ANNE DOE, 1234 BAKER ST., BRUCE LEE, 457 HIGH ST. DATA HOPE SEW, 222 …

Software Development qbasic
Member Avatar for Transworld
0
682
Member Avatar for spikes

Hi All, I'm haveing some problems with my perl code. the script is for a mail filtering program called mimedefang, the code is the main filter. the fist bit of code is used to filter out mail based on the subject line. sub filter_begin () { my($msgSubject, $hfile) = @_; …

Software Development perl
Member Avatar for spikes
0
296
Member Avatar for keir.whitlock

hi there, i am trying to get my program to display a different bitmap in four different child windows of my win32 C program but i cant seem to do it. Any idea's? I have got the information so far off of the forgers win32 tutorial. [CODE] #include <windows.h> #include …

Software Development c display encryption
Member Avatar for Dani
0
425
Member Avatar for BountyX

Does anyone know of a good way to prevent a process from being hooked by another, or at least by detecting the hook?

Software Development c++
Member Avatar for Aaerox
0
650
Member Avatar for Turbo

HI I have written a program that reads text from the input file and writes the text to the out put file. Im using the StringTokenizer to count the number of words in the input text file. The problem is that it reads only the first line but it does …

Software Development java
Member Avatar for Turbo
0
197
Member Avatar for aeinstein

does 1 need to learn Java b4 pickup up Java 3D, or is a) Java 3D more of an IDE, or b) is it akin to Java's relationship w/Javascript - basically none?

Software Development ide java javascript
Member Avatar for samaru
0
278

The End.