132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for chock

Hai All, To run the program we use F5 Key and for Pause we use the Ctrl + Break and for Debug we use F8 , is there any key like this to Stop the program running. Thank you, Chock.

Software Development visual-basic
Member Avatar for Deno
0
88
Member Avatar for Kiwiman

Hi everyone, I'm doing a beginners C++ paper at Uni and I'm stuck. Basically I need to read data from a file and then display it on the screen. So far I've got: Correct headers will be called..... int main(){ char filename[30]; FILE *in; printf("Enter file you wish to open\n"); …

Software Development c++ display file-system
Member Avatar for Dave Sinkula
0
283
Member Avatar for sarahrasheed

write a c++ program that will be used in a grocery store.the program reads a whole change amount in dirhams and prints how many 500 dirham bills,200 dirham bills,100 dirham bills ,50 dirham bills ,20 dirham bills ,10 dirham bills 5 dirham bills ,and 1 dirhams coins should the cashier …

Software Development c++
Member Avatar for fahad
0
238
Member Avatar for BountyX

Another Program needs to launch my program, but for some reason becuase its lauching it, my program looks for all the required dlls and program files with in the direcotry of the program launching it. I do not want this, and despertly need a fix, any suggestions? Additionally, is their …

Software Development c++
Member Avatar for alc6379
0
134
Member Avatar for rdn2113

Just wondering about the best way to capture keyboard input from a CEdit or CComboBox control. Any ideas from those who have already invented this wheel would be appreciated. Thanks!

Software Development c
Member Avatar for rdn2113
0
135
Member Avatar for sarahrasheed
Member Avatar for Stack Overflow
0
80
Member Avatar for bigtpsychoboy

Ok so i need to take seconds and turn them into Hours, mins, and the leftover seconds. The problem is i dont know how to use the remainders(Ex: if i had 3.98 how would i use the .98) any help is appreciated.

Software Development java
Member Avatar for jerbo
0
350
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 psylocke

here is my program and hope u could help me solve my problem on how to repeat this whole game program when the player chooses the the Yes button which indicates that he'd like to play again. [CODE]a:\master1.java[/CODE]

Software Development java
Member Avatar for psylocke
0
162
Member Avatar for psylocke

hey guys, i am on the process of finishing this program it is supposed to be finished already only that I do not know how am i going to repeat the whole game after the user chooses the Yes Button from the message box. i hope u could help me …

Software Development java
Member Avatar for psylocke
0
173
Member Avatar for h3rtz

ey there! i have a problem here regarding this maze stuff... i think using getch and gotoxy is not complicated. our teacher says he will give extra points to who can finish this.. can it be done using switch? a simple code would be much appreciated. - h3rtz-

Software Development c++
Member Avatar for Stack Overflow
0
963
Member Avatar for nanosani

I want to input a string Suppose the string was : String s = "sani"; Now I want to make "sani" the name of an object of one of the class. Suppose the name of the class is myClass. I want to : myClass sani = new myClass(); Any ideas??

Software Development java
Member Avatar for freesoft_2000
0
211
Member Avatar for servant7

i have copied a c++ source code in the net and its using graphics.h and my compilier(visual c++) cannot see the directory can anyone help me please! Godbless+

Software Development c++
Member Avatar for servant7
0
223
Member Avatar for L. Shelby

I'm spankn' new to java with no previous computer programming experience and I need help with an assignment. The assignment is to write a Java program to direct a cashier how to make change. Input guidelines: 1) Number of dollars due 2) Number of cents due 3) Number of dollars …

Software Development java
Member Avatar for L. Shelby
0
184
Member Avatar for nanosani

What is the difference between jbuilder 7 and jbuilder 9 ... I am using jbuilder 7 .. n I am thinking of buying jbuilder 9.

Software Development java
Member Avatar for nanosani
0
154
Member Avatar for rush88

:?: I got this far....but its not giving me the required output....can you give me some directions....here are my codes....thanks....please refer to my pdf file for the question. //import java.lang.*; import java.math.*; import java.io.*; class MatMulti extends Thread { static int in1[][]; static int in2[][]; static int out[][]; static int …

Software Development java pdf
Member Avatar for cosi
0
149
Member Avatar for lordofthisworld

i have a whole 2 days programming experience under my belt and i wanna do something with lots of pretty colours...... i understand i probably don't know enough yet to get into graphics - but not only do i not know how to do graphics, i'm not entirely sure what …

Software Development c++
Member Avatar for servant7
0
159
Member Avatar for Killer_Typo

A newbie to C++ here. I need help with counting array length's, I have an array that i only want the user to be able to enter up to ten characters, but lets say if i enter eleven, the array is expanded out to eleven charactes, and i dont want …

Software Development c++
Member Avatar for Stack Overflow
0
355
Member Avatar for dhanashree

Hi I want to know... can we able to create array of files and how ?????????

Software Development c
Member Avatar for kc0arf
0
205
Member Avatar for Sukhbir

char *ptr="abc"; char *ptr1; while(*ptr1++=*ptr++); //IT IS WORKING while((*ptr1)++=(*ptr)++); //ERROR PLS EXPLAIN ME.

Software Development c++
Member Avatar for Chainsaw
0
141
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 scott_6169

I have to alter my hello world program so that it prints my initials to the middle of the screen. It says i can use any of the escape sequences that help me it says. Can anyone help

Software Development c++
Member Avatar for XianBin
0
168
Member Avatar for smarkles

Our instructor asked us why its important to be able to replace values in a pointer........Here is what I came up with... By using a pointer, a block of memory is allocated at runtime, therefore a program can be more flexible than one that allocates all its memory at once(read …

Software Development c
Member Avatar for Stack Overflow
0
187
Member Avatar for mmahesh_23

its not possible for me to create a object in window for example Window obj=new Window(Window owner); or Window obj= new Window(); can u please tell me it is possible to create a windowobject or not directly without using frames

Software Development java
Member Avatar for nanosani
0
148
Member Avatar for freesoft_2000

Hi everyone, I have a text area and a button on a frame and there's some text in the text area. What i need is when the user clicks the button whatever the text selected by the user in the text area and not all the text in the text …

Software Development email java java-swing
Member Avatar for nanosani
0
107
Member Avatar for calvinnhobbes47

I'm taking AP comp sci and I'm new to JAVA. Can someone help me write this program? [B]Assignment:[/B] 1. Write a program that accepts the letter grades for a student, calculates the student's GPA, and prints it out along with one of the following five messages: Eligible Ineligible, taking less …

Software Development java
Member Avatar for server_crash
0
215
Member Avatar for scott_6169

I am a student in a first time c programming class. I amhaving problems getting my initials to print in between Hello and World in my program I am writing. I am not sure if I am declaring the variable the right way. Could you please help??

Software Development c++
Member Avatar for Dave Sinkula
0
93
Member Avatar for xxx1203

;) me is doing an assignment using java...but i meet some problem here..it is about hangman games..it is like this: if i click A button it will have to go through all the alphebert, if the 1st alphebert is A it will display 'A'

Software Development display java
Member Avatar for nanosani
0
81
Member Avatar for Darakuli

Hello everyone who reads this is Darakuli here. Me and my team have been creating a MMORPG and we are looking for some people who have experience with C++ And MMORPG's our team mostly do graphics and other stuff. We are stuck on the C++ And MMORPG's as we can …

Software Development c++ email
Member Avatar for kc0arf
0
191
Member Avatar for danielrc15

Hi, I am not a C programmer, but have been given some code to get compiled and use. We host our server with 1&1 and I can access the machine via SSH/Telnet, but when I come to run the make file, I get the following error: > make g++ -DGNU_CONSTRUCTOR_BUG …

Software Development c++
Member Avatar for kc0arf
0
127
Member Avatar for GeethaAdhi

[COLOR=Plum] [SIZE=4]:?: I want C and C++ technical Model Question and Answers for my campus interview . :sad: IT is very important to me so please if u had means send it to me.[/SIZE][/COLOR] MY E-MAIL Addrs,

Software Development c++
Member Avatar for Stack Overflow
0
219
Member Avatar for holmberg

I'm trying to add a commission calculator to my new website, and it works properly for the first two of three form entries, but I wish to add a 3rd level calculation. I'm not familiar with javascript at all really, so I have no clue what to add to the …

Software Development java javascript
Member Avatar for heymichelle
0
172
Member Avatar for ohnbabygal

my input file looks like this: 112;12 130;30 156;56 the first colum refers to keys, and the other one refers to quantity. im writin a program to search for the key and print out the quantity using hash algorithm. i used structure. so it looks like, lets say, input.getline(structure.key, sizeof(structure.key),';'); …

Software Development algorithm c++
Member Avatar for FireNet
0
148
Member Avatar for mkas82

I am a postgraduate student and I have exams in java language..I have some problems with 3 programs.Can anybody solve them for me?Can I send them to someone who loves Java?

Software Development java
Member Avatar for alc6379
0
157
Member Avatar for kelvin

i would like to add sound in my java calculator when an error occurs(e.g when operation *and / are pressed).please help me with the sound code.

Software Development java
Member Avatar for server_crash
0
117
Member Avatar for bigpoppapumpg

I have taken a few programming courses and really want to master an IDE and vastly improve my programming skills so that I oneday may be able to develop commerical quality software products and work as a programmar. I am also learning *nix right now and noticed KDE comes with …

Software Development asp.net visual-basic visual-studio
Member Avatar for 8route
0
294
Member Avatar for littletimmy

If a 2d array is allocated memory in this fashion, how should it be deleted? MyObject **lastJobs, **lastMachines ; lastJobs = new MyObject*[getNbJobs()] ; lastMachines = new MyObject*[getGreatestMachineNb()] ; does this suffice: delete[] lastJobs; delete[] lastMachines;

Software Development c++
Member Avatar for littletimmy
0
148
Member Avatar for lara_

why i have to press "enter" twice before getline can read the string... can anybody help me to solve this problem... [code] #include <iostream> #include <string> #include <new> using namespace std; int main() { string *name, hold; int num, i, j; cout << "----------------------------------------------------\n" << "This program creates a dynamic …

Software Development c++
Member Avatar for Dave Sinkula
0
323
Member Avatar for johnroach1985

the program works fine but it gives this java uses or overrides a deprecated API error after i compile the code is below it is a program that uses sql the data base is northwind.I hope you could help me its a project so any help would be welcomed. [CODE] …

Software Development api java java-swing sql
Member Avatar for johnroach1985
0
26K
Member Avatar for danny_froud

Hi, I confess I am stuck. Can anyone see a problem with the following code, to be run under Linux, compiled with g++ ? #include <stdio.h> #include <sys/types.h> #include <sys/times.h> int main () { struct tms tmp; times(&tmp); printf("stime %d \n",tmp.tms_stime); printf("utime %d \n",tmp.tms_utime); return(0); } The code compiles and …

Software Development c
Member Avatar for danny_froud
0
126
Member Avatar for damionspencer

Dear God, I've been trying to write this program that is suppose to read in a text file manipulate in and give the following out put infact here is the question Implement a program that uses a form-letter template to generate form letters. Your program should read in a form-letter …

Software Development c++
Member Avatar for soniprafull
0
167
Member Avatar for Firsttimer

Hello All, This is my first time taking Java, so I might need quite a bit of help form ya all. Anyways, I have this program that has to be in Applet, and it is comparing two floating numbers. I have to have the program decide which one is larger, …

Software Development java java-swing
Member Avatar for CodeMasterFlex
0
141
Member Avatar for Transworld

Would I have to go about doing the math manually and make my own function? Is there some built in function I can use to be lazy? Is there some totally easier way that I am oblivious to?

Software Development c++
Member Avatar for Transworld
0
675
Member Avatar for nanosani

how can I change the attributes of a file as read only .. and hidden ....... and turn back to read write .. and visible?

Software Development java
Member Avatar for cosi
0
148
Member Avatar for Squires

I need a little help connecting to a database in Java. The example in the book I have uses the following: [code] static final String JDBC_DRIVER = "com.ibm.db2j.jdbc.DB2jDriver"; static final String DATABASE_URL = "jdbc:db2j:books"; [/code] It goes on to use it: [code] System.setProperty("db2j.system.home", "C:/mysql"); Class.forName(JDBC_DRIVER); connect = DriverManager.getConnection(DATABASE_URL); [/code] First …

Software Development java mysql
Member Avatar for GeethaAdhi
0
185
Member Avatar for raar

hi all, i'm an intermediate programmer in c++ and vc++ i know little in mfc . this year is my last year in collage and i must decide a graduation project. can anyone help me by suggesting any ideas for a project thx nd sorry for time :lol:

Software Development c++
Member Avatar for FireNet
0
111
Member Avatar for Asif_NSU

I can read which key is pressed using getch(). For example i can read whether left arrow is pressed or not. But i want know whether both left arrow and up arrow is pressed at the same time or not-- I want to move an object diagonally across the screen …

Software Development c
Member Avatar for gusano79
0
184
Member Avatar for kohkohkoh

[color=blue]I've just wrote this program and when i compile, there is an error at the red color fonts.[/color] [color=blue]Can i know what's the error?[/color] [color=#0000ff]thank you.[/color] char quest; char words[50]; int count; int z; ofstream file; file.open("WORDS.txt" , ios::app); file.close(); cin.ignore(50,'\n'); cout << "\n\n Please enter the word that need …

Software Development c++ ios
Member Avatar for gusano79
0
147
Member Avatar for shouvik

help. this programme shows linking error!!! :cry: :cry: :cry: #include "diction.h" int Dictionary::find_word(char *s) { char word[81]; for (int i = 0; i < nwords; ++i) if (stricmp(words.get_word(word),s) == 0) return i; return -1; } void Dictionary::add_def(char *word, char **def) { if (nwords < Maxwords) { words[nwords].put_word(word); while (*def != …

Software Development c++
Member Avatar for Pietro
0
230
Member Avatar for BountyX

I have a list view report style. Im trying to sort by click on a header. For some reason it does nothing. This Peice of code is invoked when the column is clicked. [CODE] if (pnm->hdr.code == LVN_COLUMNCLICK) { //DialogBoxParam(ghInstance, MAKEINTRESOURCE(IDD_SORT), // NULL, (DLGPROC)SortDlgProc, 0); if(nSortDir[pnm->iSubItem]) nSortDir[pnm->iSubItem] = false; else …

Software Development c
Member Avatar for BountyX
0
963

The End.